diff --git a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md
index b2ceff0d8706..508007b8e4cb 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md
+++ b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md
@@ -3,16 +3,15 @@
## 5.1.0b1 (Unreleased)
**New features**
-- We are now targeting the service's v3.1-preview.1 API as the default. If you would like to still use version v3.0 of the service,
+- We are now targeting the service's v3.1-preview API as the default. If you would like to still use version v3.0 of the service,
pass in `v3.0` to the kwarg `api_version` when creating your TextAnalyticsClient
-- We have added an API `recognize_pii_entities` which returns entities containing personal information for a batch of documents. Only available for API version v3.1-preview.1 and up.
- - In API version v3.1-preview.2 and up, the redacted text of the document is returned on the top-level result object `RecognizePiiEntitiesResult` through property `redacted_text`.
-- Added `offset` and `length` properties for `CategorizedEntity`, `SentenceSentiment`, and `LinkedEntityMatch`. These properties are only available for API versions v3.1-preview.1 and up.
+- We have added an API `recognize_pii_entities` which returns entities containing personally identifiable information for a batch of documents. Only available for API version v3.1-preview and up.
+- Added `offset` and `length` properties for `CategorizedEntity`, `SentenceSentiment`, and `LinkedEntityMatch`. These properties are only available for API versions v3.1-preview and up.
- `length` is the number of characters in the text of these models
- `offset` is the offset of the text from the start of the document
- We now have added support for opinion mining. To use this feature, you need to make sure you are using the service's
-v3.1-preview.1 API. To get this support pass `show_opinion_mining` as True when calling the `analyze_sentiment` endpoint
-- Add property `bing_entity_search_api_id` to the `LinkedEntity` class. This property is only available for v3.1-preview.2 and up, and it is to be
+v3.1-preview API. To get this support pass `show_opinion_mining` as True when calling the `analyze_sentiment` endpoint
+- Add property `bing_entity_search_api_id` to the `LinkedEntity` class. This property is only available for v3.1-preview and up, and it is to be
used in conjunction with the Bing Entity Search API to fetch additional relevant information about the returned entity.
## 5.0.0 (2020-07-27)
diff --git a/sdk/textanalytics/azure-ai-textanalytics/README.md b/sdk/textanalytics/azure-ai-textanalytics/README.md
index b0288ee39f00..9d8059b24516 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/README.md
+++ b/sdk/textanalytics/azure-ai-textanalytics/README.md
@@ -305,7 +305,7 @@ and [supported types][linked_entities_categories].
### Recognize PII entities
[recognize_pii_entities][recognize_pii_entities] recognizes and categorizes Personally Identifiable Information (PII) entities in its input text, such as
-Social Security Numbers, bank account information, credit card numbers, and more. This endpoint is only available for v3.1-preview.1 and up.
+Social Security Numbers, bank account information, credit card numbers, and more. This endpoint is only available for v3.1-preview and up.
```python
from azure.core.credentials import AzureKeyCredential
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 8d60ff8dbf9d..8b5ce51ee546 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
@@ -14,11 +14,7 @@ class TextAnalyticsApiVersion(str, Enum):
"""Text Analytics API versions supported by this package"""
#: this is the default version
- V3_1_PREVIEW_1 = "v3.1-preview.1"
-
- # 3.1-preview.2 is not yet the default version since we don't have a
- # reliable endpoint
- V3_1_PREVIEW_2 = "v3.1-preview.2"
+ V3_1_PREVIEW = "v3.1-preview.2"
V3_0 = "v3.0"
def _authentication_policy(credential):
@@ -40,7 +36,7 @@ def __init__(self, endpoint, credential, **kwargs):
self._client = _TextAnalyticsClient(
endpoint=endpoint,
credential=credential,
- api_version=kwargs.pop("api_version", TextAnalyticsApiVersion.V3_1_PREVIEW_1),
+ api_version=kwargs.pop("api_version", TextAnalyticsApiVersion.V3_1_PREVIEW),
sdk_moniker=USER_AGENT,
authentication_policy=_authentication_policy(credential),
custom_hook_policy=TextAnalyticsResponseHookPolicy(**kwargs),
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/__init__.py
index ffe1820f1f27..b64fe33ea84d 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/__init__.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/__init__.py
@@ -6,5 +6,5 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from ._text_analytics_client_async import TextAnalyticsClient
+from ._text_analytics_client import TextAnalyticsClient
__all__ = ['TextAnalyticsClient']
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_configuration_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_configuration.py
similarity index 100%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_configuration_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_configuration.py
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py
similarity index 88%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py
index 541d9b11f705..21d8aa60ea33 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py
@@ -47,11 +47,11 @@ async def entities_linking(
"""
api_version = self._get_api_version('entities_linking')
if api_version == 'v3.0':
- from ..v3_0.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.1':
- from ..v3_1_preview_1.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.2':
- from ..v3_1_preview_2.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
@@ -90,11 +90,11 @@ async def entities_recognition_general(
"""
api_version = self._get_api_version('entities_recognition_general')
if api_version == 'v3.0':
- from ..v3_0.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.1':
- from ..v3_1_preview_1.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.2':
- from ..v3_1_preview_2.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
@@ -142,9 +142,9 @@ async def entities_recognition_pii(
"""
api_version = self._get_api_version('entities_recognition_pii')
if api_version == 'v3.1-preview.1':
- from ..v3_1_preview_1.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.2':
- from ..v3_1_preview_2.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
@@ -182,11 +182,11 @@ async def key_phrases(
"""
api_version = self._get_api_version('key_phrases')
if api_version == 'v3.0':
- from ..v3_0.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.1':
- from ..v3_1_preview_1.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.2':
- from ..v3_1_preview_2.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
@@ -225,11 +225,11 @@ async def languages(
"""
api_version = self._get_api_version('languages')
if api_version == 'v3.0':
- from ..v3_0.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.1':
- from ..v3_1_preview_1.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.2':
- from ..v3_1_preview_2.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
@@ -268,11 +268,11 @@ async def sentiment(
"""
api_version = self._get_api_version('sentiment')
if api_version == 'v3.0':
- from ..v3_0.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.1':
- from ..v3_1_preview_1.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
elif api_version == 'v3.1-preview.2':
- from ..v3_1_preview_2.aio.operations_async import TextAnalyticsClientOperationsMixin as OperationClass
+ from ..v3_1_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py
similarity index 97%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py
index 7e0a9761b860..7e0ad529d83d 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py
@@ -14,8 +14,8 @@
from azure.profiles import KnownProfiles, ProfileDefinition
from azure.profiles.multiapiclient import MultiApiClientMixin
-from ._configuration_async import TextAnalyticsClientConfiguration
-from ._operations_mixin_async import TextAnalyticsClientOperationsMixin
+from ._configuration import TextAnalyticsClientConfiguration
+from ._operations_mixin import TextAnalyticsClientOperationsMixin
class _SDKClient(object):
def __init__(self, *args, **kwargs):
"""This is a fake class to support current implemetation of MultiApiClientMixin."
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/__init__.py
index ffe1820f1f27..b64fe33ea84d 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/__init__.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/__init__.py
@@ -6,5 +6,5 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from ._text_analytics_client_async import TextAnalyticsClient
+from ._text_analytics_client import TextAnalyticsClient
__all__ = ['TextAnalyticsClient']
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_configuration_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_configuration.py
similarity index 100%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_configuration_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_configuration.py
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client.py
similarity index 95%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client.py
index 5a55c01e842e..23c10e40524f 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client.py
@@ -15,8 +15,8 @@
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
-from ._configuration_async import TextAnalyticsClientConfiguration
-from .operations_async import TextAnalyticsClientOperationsMixin
+from ._configuration import TextAnalyticsClientConfiguration
+from .operations import TextAnalyticsClientOperationsMixin
from .. import models
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/__init__.py
similarity index 100%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/__init__.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/__init__.py
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/_text_analytics_client_operations_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py
similarity index 100%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/_text_analytics_client_operations_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/__init__.py
deleted file mode 100644
index e6429ee824b7..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations_async/__init__.py
+++ /dev/null
@@ -1,13 +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 ._text_analytics_client_operations_async import TextAnalyticsClientOperationsMixin
-
-__all__ = [
- 'TextAnalyticsClientOperationsMixin',
-]
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/__init__.py
deleted file mode 100644
index ca973ce68900..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/__init__.py
+++ /dev/null
@@ -1,16 +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 ._text_analytics_client import TextAnalyticsClient
-__all__ = ['TextAnalyticsClient']
-
-try:
- from ._patch import patch_sdk # type: ignore
- patch_sdk()
-except ImportError:
- pass
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_configuration.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_configuration.py
deleted file mode 100644
index e216512dcf2e..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_configuration.py
+++ /dev/null
@@ -1,68 +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 typing import TYPE_CHECKING
-
-from azure.core.configuration import Configuration
-from azure.core.pipeline import policies
-
-if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
- from typing import Any
-
- from azure.core.credentials import TokenCredential
-
-VERSION = "unknown"
-
-class TextAnalyticsClientConfiguration(Configuration):
- """Configuration for TextAnalyticsClient.
-
- Note that all parameters used to create this instance are saved as instance
- attributes.
-
- :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).
- :type endpoint: str
- """
-
- def __init__(
- self,
- credential, # type: "TokenCredential"
- endpoint, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> None
- if credential is None:
- raise ValueError("Parameter 'credential' must not be None.")
- if endpoint is None:
- raise ValueError("Parameter 'endpoint' must not be None.")
- super(TextAnalyticsClientConfiguration, self).__init__(**kwargs)
-
- self.credential = credential
- self.endpoint = endpoint
- self.credential_scopes = kwargs.pop('credential_scopes', ['https://cognitiveservices.azure.com/.default'])
- kwargs.setdefault('sdk_moniker', 'ai-textanalytics/{}'.format(VERSION))
- self._configure(**kwargs)
-
- def _configure(
- self,
- **kwargs # type: Any
- ):
- # type: (...) -> None
- self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
- self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
- self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
- self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
- self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs)
- self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
- self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
- self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
- self.authentication_policy = kwargs.get('authentication_policy')
- if self.credential and not self.authentication_policy:
- self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_metadata.json b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_metadata.json
deleted file mode 100644
index 5f68576f923e..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_metadata.json
+++ /dev/null
@@ -1,131 +0,0 @@
-{
- "chosen_version": "v3.1-preview.1",
- "total_api_version_list": ["v3.1-preview.1"],
- "client": {
- "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.1-preview.1\u0027",
- "azure_arm": false,
- "has_lro_operations": false
- },
- "global_parameters": {
- "sync_method": {
- "credential": {
- "method_signature": "credential, # type: \"TokenCredential\"",
- "description": "Credential needed for the client to connect to Azure.",
- "docstring_type": "~azure.core.credentials.TokenCredential",
- "required": true
- },
- "endpoint": {
- "method_signature": "endpoint, # type: str",
- "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).",
- "docstring_type": "str",
- "required": true
- }
- },
- "async_method": {
- "credential": {
- "method_signature": "credential, # type: \"AsyncTokenCredential\"",
- "description": "Credential needed for the client to connect to Azure.",
- "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
- "required": true
- },
- "endpoint": {
- "method_signature": "endpoint, # type: str",
- "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).",
- "docstring_type": "str",
- "required": true
- }
- },
- "constant": {
- },
- "call": "credential, endpoint"
- },
- "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
- },
- "operation_groups": {
- },
- "operation_mixins": {
- "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 string_index_type=\"TextElements_v8\", # 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_1_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 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_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_1_preview_1.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 string_index_type: Optional[Union[str, \"models.StringIndexType\"]] = \"TextElements_v8\",\n **kwargs\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_1_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 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_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_1_preview_1.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
- },
- "call": "documents, model_version, show_stats, 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 domain=None, # type: Optional[str]\n string_index_type=\"TextElements_v8\", # type: Optional[Union[str, \"models.StringIndexType\"]]\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_1_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 domain: (Optional) if set to \u0027PHI\u0027, response will contain only PHI entities.\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_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_1_preview_1.models.EntitiesResult\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 domain: Optional[str] = None,\n string_index_type: Optional[Union[str, \"models.StringIndexType\"]] = \"TextElements_v8\",\n **kwargs\n) -\u003e \"models.EntitiesResult\":\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_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 domain: (Optional) if set to \u0027PHI\u0027, response will contain only PHI entities.\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_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_1_preview_1.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
- },
- "call": "documents, model_version, show_stats, domain, string_index_type"
- },
- "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 string_index_type=\"TextElements_v8\", # 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_1_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 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_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_1_preview_1.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 string_index_type: Optional[Union[str, \"models.StringIndexType\"]] = \"TextElements_v8\",\n **kwargs\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_1_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 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_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_1_preview_1.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
- },
- "call": "documents, model_version, show_stats, 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 **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_1_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: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_preview_1.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 **kwargs\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_1_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: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_preview_1.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
- },
- "call": "documents, model_version, show_stats"
- },
- "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",
- "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_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: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_preview_1.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 **kwargs\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_1_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: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_preview_1.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
- },
- "call": "documents, model_version, show_stats"
- },
- "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 opinion_mining=None, # type: Optional[bool]\n string_index_type=\"TextElements_v8\", # 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(aspects) and opinions.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_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 opinion_mining: (Optional) if set to true, response will contain input and document\n level statistics including 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_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_1_preview_1.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 opinion_mining: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"models.StringIndexType\"]] = \"TextElements_v8\",\n **kwargs\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(aspects) and opinions.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_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 opinion_mining: (Optional) if set to true, response will contain input and document\n level statistics including 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_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_1_preview_1.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
- },
- "call": "documents, model_version, show_stats, opinion_mining, string_index_type"
- }
- },
- "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"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\", \"Union\"]}}}",
- "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"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\", \"Union\"]}}}"
-}
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_text_analytics_client.py
deleted file mode 100644
index 965fad9c811b..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/_text_analytics_client.py
+++ /dev/null
@@ -1,61 +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 typing import TYPE_CHECKING
-
-from azure.core import PipelineClient
-from msrest import Deserializer, Serializer
-
-if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
- from typing import Any
-
- from azure.core.credentials import TokenCredential
-
-from ._configuration import TextAnalyticsClientConfiguration
-from .operations import TextAnalyticsClientOperationsMixin
-from . import models
-
-
-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).
- :type endpoint: str
- """
-
- def __init__(
- self,
- credential, # type: "TokenCredential"
- endpoint, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> None
- base_url = '{Endpoint}/text/analytics/v3.1-preview.1'
- self._config = TextAnalyticsClientConfiguration(credential, endpoint, **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._deserialize = Deserializer(client_models)
-
-
- def close(self):
- # type: () -> None
- self._client.close()
-
- def __enter__(self):
- # type: () -> TextAnalyticsClient
- self._client.__enter__()
- return self
-
- def __exit__(self, *exc_details):
- # type: (Any) -> None
- self._client.__exit__(*exc_details)
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/__init__.py
deleted file mode 100644
index ffe1820f1f27..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/__init__.py
+++ /dev/null
@@ -1,10 +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 ._text_analytics_client_async import TextAnalyticsClient
-__all__ = ['TextAnalyticsClient']
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_text_analytics_client_async.py
deleted file mode 100644
index 3d61ef8310e9..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_text_analytics_client_async.py
+++ /dev/null
@@ -1,55 +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 typing import Any, TYPE_CHECKING
-
-from azure.core import AsyncPipelineClient
-from msrest import Deserializer, Serializer
-
-if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
- from azure.core.credentials_async import AsyncTokenCredential
-
-from ._configuration_async import TextAnalyticsClientConfiguration
-from .operations_async import TextAnalyticsClientOperationsMixin
-from .. import models
-
-
-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).
- :type endpoint: str
- """
-
- def __init__(
- self,
- credential: "AsyncTokenCredential",
- endpoint: str,
- **kwargs: Any
- ) -> None:
- base_url = '{Endpoint}/text/analytics/v3.1-preview.1'
- self._config = TextAnalyticsClientConfiguration(credential, endpoint, **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._deserialize = Deserializer(client_models)
-
-
- async def close(self) -> None:
- await self._client.close()
-
- async def __aenter__(self) -> "TextAnalyticsClient":
- await self._client.__aenter__()
- return self
-
- async def __aexit__(self, *exc_details) -> None:
- await self._client.__aexit__(*exc_details)
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/__init__.py
deleted file mode 100644
index e6429ee824b7..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/__init__.py
+++ /dev/null
@@ -1,13 +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 ._text_analytics_client_operations_async import TextAnalyticsClientOperationsMixin
-
-__all__ = [
- 'TextAnalyticsClientOperationsMixin',
-]
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/_text_analytics_client_operations_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/_text_analytics_client_operations_async.py
deleted file mode 100644
index e617843153cf..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/operations_async/_text_analytics_client_operations_async.py
+++ /dev/null
@@ -1,501 +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 typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union
-import warnings
-
-from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
-from azure.core.pipeline import PipelineResponse
-from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
-
-from ... import models
-
-T = TypeVar('T')
-ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
-
-class TextAnalyticsClientOperationsMixin:
-
- async def entities_recognition_general(
- self,
- documents: List["models.MultiLanguageInput"],
- model_version: Optional[str] = None,
- show_stats: Optional[bool] = None,
- string_index_type: Optional[Union[str, "models.StringIndexType"]] = "TextElements_v8",
- **kwargs
- ) -> "models.EntitiesResult":
- """Named Entity Recognition.
-
- The API returns a list of general named entities in a given document. For the list of supported
- entity types, check :code:`Supported Entity Types in Text
- Analytics API`. See the :code:`Supported languages in Text
- 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_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: bool
- :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_1_preview_1.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_1_preview_1.models.EntitiesResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.entities_recognition_general.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]
- 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 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('EntitiesResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore
-
- async def entities_recognition_pii(
- self,
- documents: List["models.MultiLanguageInput"],
- model_version: Optional[str] = None,
- show_stats: Optional[bool] = None,
- domain: Optional[str] = None,
- string_index_type: Optional[Union[str, "models.StringIndexType"]] = "TextElements_v8",
- **kwargs
- ) -> "models.EntitiesResult":
- """Entities containing personal information.
-
- The API returns a list of entities with personal information (\"SSN\", \"Bank Account\" etc) in
- the document. For the list of supported entity types, check :code:`Supported Entity Types in Text Analytics API`. See the
- :code:`Supported languages in Text 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_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: bool
- :param domain: (Optional) if set to 'PHI', response will contain only PHI entities.
- :type domain: 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_1_preview_1.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_1_preview_1.models.EntitiesResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.entities_recognition_pii.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]
- 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 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')
-
- # 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('EntitiesResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- entities_recognition_pii.metadata = {'url': '/entities/recognition/pii'} # type: ignore
-
- async def entities_linking(
- self,
- documents: List["models.MultiLanguageInput"],
- model_version: Optional[str] = None,
- show_stats: Optional[bool] = None,
- string_index_type: Optional[Union[str, "models.StringIndexType"]] = "TextElements_v8",
- **kwargs
- ) -> "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
- the :code:`Supported languages in Text 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_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: bool
- :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_1_preview_1.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_1_preview_1.models.EntityLinkingResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.EntityLinkingResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.entities_linking.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]
- 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 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('EntityLinkingResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- entities_linking.metadata = {'url': '/entities/linking'} # type: ignore
-
- async def key_phrases(
- self,
- documents: List["models.MultiLanguageInput"],
- model_version: Optional[str] = None,
- show_stats: Optional[bool] = None,
- **kwargs
- ) -> "models.KeyPhraseResult":
- """Key Phrases.
-
- The API returns a list of strings denoting the key phrases in the input text. See the :code:`Supported languages in Text 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_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: 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_1_preview_1.models.KeyPhraseResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.KeyPhraseResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.key_phrases.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]
- 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('KeyPhraseResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore
-
- async def languages(
- self,
- documents: List["models.LanguageInput"],
- model_version: Optional[str] = None,
- show_stats: Optional[bool] = None,
- **kwargs
- ) -> "models.LanguageResult":
- """Detect Language.
-
- The API returns the detected language and a numeric score between 0 and 1. Scores close to 1
- indicate 100% certainty that the identified language is true. See the :code:`Supported languages in Text Analytics API` for the list of
- enabled languages.
-
- :param documents:
- :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.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
- :param show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: 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_1_preview_1.models.LanguageResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.LanguageResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.languages.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]
- 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('LanguageResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- languages.metadata = {'url': '/languages'} # type: ignore
-
- async def sentiment(
- self,
- documents: List["models.MultiLanguageInput"],
- model_version: Optional[str] = None,
- show_stats: Optional[bool] = None,
- opinion_mining: Optional[bool] = None,
- string_index_type: Optional[Union[str, "models.StringIndexType"]] = "TextElements_v8",
- **kwargs
- ) -> "models.SentimentResponse":
- """Sentiment.
-
- The API returns a detailed sentiment analysis for the input text. The analysis is done in
- multiple levels of granularity, start from the a document level, down to sentence and key terms
- (aspects) and opinions.
-
- :param documents: The set of documents to process as part of this batch.
- :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: bool
- :param opinion_mining: (Optional) if set to true, response will contain input and document
- level statistics including aspect-based sentiment analysis results.
- :type opinion_mining: bool
- :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_1_preview_1.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_1_preview_1.models.SentimentResponse
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.SentimentResponse"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.sentiment.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]
- 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 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('SentimentResponse', pipeline_response)
-
- if cls:
- 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_preview_1/models/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/__init__.py
deleted file mode 100644
index 5009714787ec..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/__init__.py
+++ /dev/null
@@ -1,125 +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.
-# --------------------------------------------------------------------------
-
-try:
- from ._models_py3 import AspectConfidenceScoreLabel
- from ._models_py3 import AspectRelation
- from ._models_py3 import DetectedLanguage
- from ._models_py3 import DocumentEntities
- from ._models_py3 import DocumentError
- from ._models_py3 import DocumentKeyPhrases
- from ._models_py3 import DocumentLanguage
- from ._models_py3 import DocumentLinkedEntities
- from ._models_py3 import DocumentSentiment
- from ._models_py3 import DocumentStatistics
- from ._models_py3 import EntitiesResult
- from ._models_py3 import Entity
- from ._models_py3 import EntityLinkingResult
- from ._models_py3 import ErrorResponse
- from ._models_py3 import InnerError
- from ._models_py3 import KeyPhraseResult
- from ._models_py3 import LanguageBatchInput
- from ._models_py3 import LanguageInput
- from ._models_py3 import LanguageResult
- from ._models_py3 import LinkedEntity
- from ._models_py3 import Match
- from ._models_py3 import MultiLanguageBatchInput
- from ._models_py3 import MultiLanguageInput
- from ._models_py3 import RequestStatistics
- from ._models_py3 import SentenceAspect
- from ._models_py3 import SentenceOpinion
- from ._models_py3 import SentenceSentiment
- from ._models_py3 import SentimentConfidenceScorePerLabel
- from ._models_py3 import SentimentResponse
- from ._models_py3 import TextAnalyticsError
- from ._models_py3 import TextAnalyticsWarning
-except (SyntaxError, ImportError):
- from ._models import AspectConfidenceScoreLabel # type: ignore
- from ._models import AspectRelation # type: ignore
- from ._models import DetectedLanguage # type: ignore
- from ._models import DocumentEntities # type: ignore
- from ._models import DocumentError # type: ignore
- from ._models import DocumentKeyPhrases # type: ignore
- from ._models import DocumentLanguage # type: ignore
- from ._models import DocumentLinkedEntities # type: ignore
- from ._models import DocumentSentiment # type: ignore
- from ._models import DocumentStatistics # type: ignore
- from ._models import EntitiesResult # type: ignore
- from ._models import Entity # type: ignore
- from ._models import EntityLinkingResult # type: ignore
- from ._models import ErrorResponse # type: ignore
- from ._models import InnerError # type: ignore
- from ._models import KeyPhraseResult # type: ignore
- from ._models import LanguageBatchInput # type: ignore
- from ._models import LanguageInput # type: ignore
- from ._models import LanguageResult # type: ignore
- from ._models import LinkedEntity # type: ignore
- from ._models import Match # type: ignore
- from ._models import MultiLanguageBatchInput # type: ignore
- from ._models import MultiLanguageInput # type: ignore
- from ._models import RequestStatistics # type: ignore
- from ._models import SentenceAspect # type: ignore
- from ._models import SentenceOpinion # type: ignore
- from ._models import SentenceSentiment # type: ignore
- from ._models import SentimentConfidenceScorePerLabel # type: ignore
- from ._models import SentimentResponse # type: ignore
- from ._models import TextAnalyticsError # type: ignore
- from ._models import TextAnalyticsWarning # type: ignore
-
-from ._text_analytics_client_enums import (
- AspectRelationType,
- DocumentSentimentValue,
- ErrorCodeValue,
- InnerErrorCodeValue,
- SentenceSentimentValue,
- StringIndexType,
- TokenSentimentValue,
- WarningCodeValue,
-)
-
-__all__ = [
- 'AspectConfidenceScoreLabel',
- 'AspectRelation',
- 'DetectedLanguage',
- 'DocumentEntities',
- 'DocumentError',
- 'DocumentKeyPhrases',
- 'DocumentLanguage',
- 'DocumentLinkedEntities',
- 'DocumentSentiment',
- 'DocumentStatistics',
- 'EntitiesResult',
- 'Entity',
- 'EntityLinkingResult',
- 'ErrorResponse',
- 'InnerError',
- 'KeyPhraseResult',
- 'LanguageBatchInput',
- 'LanguageInput',
- 'LanguageResult',
- 'LinkedEntity',
- 'Match',
- 'MultiLanguageBatchInput',
- 'MultiLanguageInput',
- 'RequestStatistics',
- 'SentenceAspect',
- 'SentenceOpinion',
- 'SentenceSentiment',
- 'SentimentConfidenceScorePerLabel',
- 'SentimentResponse',
- 'TextAnalyticsError',
- 'TextAnalyticsWarning',
- 'AspectRelationType',
- 'DocumentSentimentValue',
- 'ErrorCodeValue',
- 'InnerErrorCodeValue',
- 'SentenceSentimentValue',
- 'StringIndexType',
- 'TokenSentimentValue',
- 'WarningCodeValue',
-]
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models.py
deleted file mode 100644
index 840441c257d7..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models.py
+++ /dev/null
@@ -1,1230 +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 AspectConfidenceScoreLabel(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(AspectConfidenceScoreLabel, self).__init__(**kwargs)
- self.positive = kwargs['positive']
- self.negative = kwargs['negative']
-
-
-class AspectRelation(msrest.serialization.Model):
- """AspectRelation.
-
- All required parameters must be populated in order to send to Azure.
-
- :param relation_type: Required. The type related to the aspect. Possible values include:
- "opinion", "aspect".
- :type relation_type: str or ~azure.ai.textanalytics.v3_1_preview_1.models.AspectRelationType
- :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(AspectRelation, self).__init__(**kwargs)
- self.relation_type = kwargs['relation_type']
- self.ref = kwargs['ref']
-
-
-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_1_preview_1.models.Entity]
- :param warnings: Required. Warnings encountered while processing document.
- :type warnings: list[~azure.ai.textanalytics.v3_1_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_1_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_1_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 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_1_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_1_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_1_preview_1.models.DetectedLanguage
- :param warnings: Required. Warnings encountered while processing document.
- :type warnings: list[~azure.ai.textanalytics.v3_1_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_1_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_1_preview_1.models.LinkedEntity]
- :param warnings: Required. Warnings encountered while processing document.
- :type warnings: list[~azure.ai.textanalytics.v3_1_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_1_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_1_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_1_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_1_preview_1.models.SentimentConfidenceScorePerLabel
- :param sentences: Required. Sentence level sentiment analysis.
- :type sentences: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceSentiment]
- :param warnings: Required. Warnings encountered while processing document.
- :type warnings: list[~azure.ai.textanalytics.v3_1_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_1_preview_1.models.DocumentEntities]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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 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, 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 for the entity text.
- :type offset: int
- :param length: Required. Length 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
- """
-
- _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_1_preview_1.models.DocumentLinkedEntities]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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 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_1_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 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_1_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_1_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 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_1_preview_1.models.DocumentKeyPhrases]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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 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_1_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_1_preview_1.models.DocumentLanguage]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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_1_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
- """
-
- _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'},
- }
-
- 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']
-
-
-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_1_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 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 SentenceAspect(msrest.serialization.Model):
- """SentenceAspect.
-
- All required parameters must be populated in order to send to Azure.
-
- :param sentiment: Required. Aspect level sentiment for the aspect in the sentence. Possible
- values include: "positive", "mixed", "negative".
- :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.TokenSentimentValue
- :param confidence_scores: Required. Aspect level sentiment confidence scores for the aspect in
- the sentence.
- :type confidence_scores:
- ~azure.ai.textanalytics.v3_1_preview_1.models.AspectConfidenceScoreLabel
- :param offset: Required. The aspect offset from the start of the sentence.
- :type offset: int
- :param length: Required. The length of the aspect.
- :type length: int
- :param text: Required. The aspect text detected.
- :type text: str
- :param relations: Required. The array of either opinion or aspect object which is related to
- the aspect.
- :type relations: list[~azure.ai.textanalytics.v3_1_preview_1.models.AspectRelation]
- """
-
- _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': 'AspectConfidenceScoreLabel'},
- 'offset': {'key': 'offset', 'type': 'int'},
- 'length': {'key': 'length', 'type': 'int'},
- 'text': {'key': 'text', 'type': 'str'},
- 'relations': {'key': 'relations', 'type': '[AspectRelation]'},
- }
-
- def __init__(
- self,
- **kwargs
- ):
- super(SentenceAspect, 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 SentenceOpinion(msrest.serialization.Model):
- """SentenceOpinion.
-
- All required parameters must be populated in order to send to Azure.
-
- :param sentiment: Required. Opinion level sentiment for the aspect in the sentence. Possible
- values include: "positive", "mixed", "negative".
- :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.TokenSentimentValue
- :param confidence_scores: Required. Opinion level sentiment confidence scores for the aspect in
- the sentence.
- :type confidence_scores:
- ~azure.ai.textanalytics.v3_1_preview_1.models.AspectConfidenceScoreLabel
- :param offset: Required. The opinion offset from the start of the sentence.
- :type offset: int
- :param length: Required. The length of the opinion.
- :type length: int
- :param text: Required. The aspect text detected.
- :type text: str
- :param is_negated: Required. The indicator representing if the opinion 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': 'AspectConfidenceScoreLabel'},
- '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(SentenceOpinion, 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_1_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_1_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 aspects: The array of aspect object for the sentence.
- :type aspects: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceAspect]
- :param opinions: The array of opinion object for the sentence.
- :type opinions: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceOpinion]
- """
-
- _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'},
- 'aspects': {'key': 'aspects', 'type': '[SentenceAspect]'},
- 'opinions': {'key': 'opinions', 'type': '[SentenceOpinion]'},
- }
-
- 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.aspects = kwargs.get('aspects', None)
- self.opinions = kwargs.get('opinions', 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_1_preview_1.models.DocumentSentiment]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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 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".
- :type code: str or ~azure.ai.textanalytics.v3_1_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_1_preview_1.models.InnerError
- :param details: Details about specific errors that led to this reported error.
- :type details: list[~azure.ai.textanalytics.v3_1_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_1_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_1_preview_1/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models_py3.py
deleted file mode 100644
index 88585d7ebe3c..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_models_py3.py
+++ /dev/null
@@ -1,1382 +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 typing import Dict, List, Optional, Union
-
-from azure.core.exceptions import HttpResponseError
-import msrest.serialization
-
-from ._text_analytics_client_enums import *
-
-
-class AspectConfidenceScoreLabel(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(AspectConfidenceScoreLabel, self).__init__(**kwargs)
- self.positive = positive
- self.negative = negative
-
-
-class AspectRelation(msrest.serialization.Model):
- """AspectRelation.
-
- All required parameters must be populated in order to send to Azure.
-
- :param relation_type: Required. The type related to the aspect. Possible values include:
- "opinion", "aspect".
- :type relation_type: str or ~azure.ai.textanalytics.v3_1_preview_1.models.AspectRelationType
- :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, "AspectRelationType"],
- ref: str,
- **kwargs
- ):
- super(AspectRelation, self).__init__(**kwargs)
- self.relation_type = relation_type
- self.ref = ref
-
-
-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_1_preview_1.models.Entity]
- :param warnings: Required. Warnings encountered while processing document.
- :type warnings: list[~azure.ai.textanalytics.v3_1_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_1_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_1_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 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_1_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_1_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_1_preview_1.models.DetectedLanguage
- :param warnings: Required. Warnings encountered while processing document.
- :type warnings: list[~azure.ai.textanalytics.v3_1_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_1_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_1_preview_1.models.LinkedEntity]
- :param warnings: Required. Warnings encountered while processing document.
- :type warnings: list[~azure.ai.textanalytics.v3_1_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_1_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_1_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_1_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_1_preview_1.models.SentimentConfidenceScorePerLabel
- :param sentences: Required. Sentence level sentiment analysis.
- :type sentences: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceSentiment]
- :param warnings: Required. Warnings encountered while processing document.
- :type warnings: list[~azure.ai.textanalytics.v3_1_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_1_preview_1.models.DocumentEntities]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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 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, 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 for the entity text.
- :type offset: int
- :param length: Required. Length 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
- """
-
- _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_1_preview_1.models.DocumentLinkedEntities]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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 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_1_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 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_1_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_1_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 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_1_preview_1.models.DocumentKeyPhrases]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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 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_1_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_1_preview_1.models.DocumentLanguage]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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_1_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
- """
-
- _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'},
- }
-
- def __init__(
- self,
- *,
- name: str,
- matches: List["Match"],
- language: str,
- url: str,
- data_source: str,
- 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
-
-
-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_1_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 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 SentenceAspect(msrest.serialization.Model):
- """SentenceAspect.
-
- All required parameters must be populated in order to send to Azure.
-
- :param sentiment: Required. Aspect level sentiment for the aspect in the sentence. Possible
- values include: "positive", "mixed", "negative".
- :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.TokenSentimentValue
- :param confidence_scores: Required. Aspect level sentiment confidence scores for the aspect in
- the sentence.
- :type confidence_scores:
- ~azure.ai.textanalytics.v3_1_preview_1.models.AspectConfidenceScoreLabel
- :param offset: Required. The aspect offset from the start of the sentence.
- :type offset: int
- :param length: Required. The length of the aspect.
- :type length: int
- :param text: Required. The aspect text detected.
- :type text: str
- :param relations: Required. The array of either opinion or aspect object which is related to
- the aspect.
- :type relations: list[~azure.ai.textanalytics.v3_1_preview_1.models.AspectRelation]
- """
-
- _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': 'AspectConfidenceScoreLabel'},
- 'offset': {'key': 'offset', 'type': 'int'},
- 'length': {'key': 'length', 'type': 'int'},
- 'text': {'key': 'text', 'type': 'str'},
- 'relations': {'key': 'relations', 'type': '[AspectRelation]'},
- }
-
- def __init__(
- self,
- *,
- sentiment: Union[str, "TokenSentimentValue"],
- confidence_scores: "AspectConfidenceScoreLabel",
- offset: int,
- length: int,
- text: str,
- relations: List["AspectRelation"],
- **kwargs
- ):
- super(SentenceAspect, self).__init__(**kwargs)
- self.sentiment = sentiment
- self.confidence_scores = confidence_scores
- self.offset = offset
- self.length = length
- self.text = text
- self.relations = relations
-
-
-class SentenceOpinion(msrest.serialization.Model):
- """SentenceOpinion.
-
- All required parameters must be populated in order to send to Azure.
-
- :param sentiment: Required. Opinion level sentiment for the aspect in the sentence. Possible
- values include: "positive", "mixed", "negative".
- :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_1.models.TokenSentimentValue
- :param confidence_scores: Required. Opinion level sentiment confidence scores for the aspect in
- the sentence.
- :type confidence_scores:
- ~azure.ai.textanalytics.v3_1_preview_1.models.AspectConfidenceScoreLabel
- :param offset: Required. The opinion offset from the start of the sentence.
- :type offset: int
- :param length: Required. The length of the opinion.
- :type length: int
- :param text: Required. The aspect text detected.
- :type text: str
- :param is_negated: Required. The indicator representing if the opinion 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': 'AspectConfidenceScoreLabel'},
- '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: "AspectConfidenceScoreLabel",
- offset: int,
- length: int,
- text: str,
- is_negated: bool,
- **kwargs
- ):
- super(SentenceOpinion, 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_1_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_1_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 aspects: The array of aspect object for the sentence.
- :type aspects: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceAspect]
- :param opinions: The array of opinion object for the sentence.
- :type opinions: list[~azure.ai.textanalytics.v3_1_preview_1.models.SentenceOpinion]
- """
-
- _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'},
- 'aspects': {'key': 'aspects', 'type': '[SentenceAspect]'},
- 'opinions': {'key': 'opinions', 'type': '[SentenceOpinion]'},
- }
-
- def __init__(
- self,
- *,
- text: str,
- sentiment: Union[str, "SentenceSentimentValue"],
- confidence_scores: "SentimentConfidenceScorePerLabel",
- offset: int,
- length: int,
- aspects: Optional[List["SentenceAspect"]] = None,
- opinions: Optional[List["SentenceOpinion"]] = 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.aspects = aspects
- self.opinions = opinions
-
-
-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_1_preview_1.models.DocumentSentiment]
- :param errors: Required. Errors by document id.
- :type errors: list[~azure.ai.textanalytics.v3_1_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_1_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 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".
- :type code: str or ~azure.ai.textanalytics.v3_1_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_1_preview_1.models.InnerError
- :param details: Details about specific errors that led to this reported error.
- :type details: list[~azure.ai.textanalytics.v3_1_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_1_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_1_preview_1/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_text_analytics_client_enums.py
deleted file mode 100644
index 840d2dbc7f59..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/models/_text_analytics_client_enums.py
+++ /dev/null
@@ -1,95 +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 enum import Enum, EnumMeta
-from six import with_metaclass
-
-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 AspectRelationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
- """The type related to the aspect.
- """
-
- OPINION = "opinion"
- ASPECT = "aspect"
-
-class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
- """Predicted sentiment for document (Negative, Neutral, Positive, or Mixed).
- """
-
- POSITIVE = "positive"
- NEUTRAL = "neutral"
- NEGATIVE = "negative"
- MIXED = "mixed"
-
-class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
- """Error code.
- """
-
- INVALID_REQUEST = "InvalidRequest"
- INVALID_ARGUMENT = "InvalidArgument"
- INTERNAL_SERVER_ERROR = "InternalServerError"
- SERVICE_UNAVAILABLE = "ServiceUnavailable"
-
-class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
- """Error code.
- """
-
- INVALID_PARAMETER_VALUE = "InvalidParameterValue"
- INVALID_REQUEST_BODY_FORMAT = "InvalidRequestBodyFormat"
- EMPTY_REQUEST = "EmptyRequest"
- MISSING_INPUT_RECORDS = "MissingInputRecords"
- INVALID_DOCUMENT = "InvalidDocument"
- MODEL_VERSION_INCORRECT = "ModelVersionIncorrect"
- INVALID_DOCUMENT_BATCH = "InvalidDocumentBatch"
- UNSUPPORTED_LANGUAGE_CODE = "UnsupportedLanguageCode"
- INVALID_COUNTRY_HINT = "InvalidCountryHint"
-
-class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
- """The predicted Sentiment for the sentence.
- """
-
- POSITIVE = "positive"
- NEUTRAL = "neutral"
- NEGATIVE = "negative"
-
-class StringIndexType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
-
- TEXT_ELEMENTS_V8 = "TextElements_v8" #: 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 written in .Net Framework or .Net Core and you will be using StringInfo.
- UNICODE_CODE_POINT = "UnicodeCodePoint" #: Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python.
- UTF16_CODE_UNIT = "Utf16CodeUnit" #: Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript.
-
-class TokenSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
- """Aspect level sentiment for the aspect in the sentence.
- """
-
- POSITIVE = "positive"
- MIXED = "mixed"
- NEGATIVE = "negative"
-
-class WarningCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
- """Error code.
- """
-
- LONG_WORDS_IN_DOCUMENT = "LongWordsInDocument"
- DOCUMENT_TRUNCATED = "DocumentTruncated"
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/_text_analytics_client_operations.py
deleted file mode 100644
index 59d9790a6e63..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/operations/_text_analytics_client_operations.py
+++ /dev/null
@@ -1,511 +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 typing import TYPE_CHECKING
-import warnings
-
-from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
-from azure.core.pipeline import PipelineResponse
-from azure.core.pipeline.transport import HttpRequest, HttpResponse
-
-from .. import models
-
-if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
- from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union
-
- T = TypeVar('T')
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
-
-class TextAnalyticsClientOperationsMixin(object):
-
- def entities_recognition_general(
- self,
- documents, # type: List["models.MultiLanguageInput"]
- model_version=None, # type: Optional[str]
- show_stats=None, # type: Optional[bool]
- string_index_type="TextElements_v8", # 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
- entity types, check :code:`Supported Entity Types in Text
- Analytics API`. See the :code:`Supported languages in Text
- 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_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: bool
- :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_1_preview_1.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_1_preview_1.models.EntitiesResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.entities_recognition_general.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]
- 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 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('EntitiesResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore
-
- def entities_recognition_pii(
- self,
- documents, # type: List["models.MultiLanguageInput"]
- model_version=None, # type: Optional[str]
- show_stats=None, # type: Optional[bool]
- domain=None, # type: Optional[str]
- string_index_type="TextElements_v8", # type: Optional[Union[str, "models.StringIndexType"]]
- **kwargs # type: Any
- ):
- # type: (...) -> "models.EntitiesResult"
- """Entities containing personal information.
-
- The API returns a list of entities with personal information (\"SSN\", \"Bank Account\" etc) in
- the document. For the list of supported entity types, check :code:`Supported Entity Types in Text Analytics API`. See the
- :code:`Supported languages in Text 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_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: bool
- :param domain: (Optional) if set to 'PHI', response will contain only PHI entities.
- :type domain: 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_1_preview_1.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_1_preview_1.models.EntitiesResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.EntitiesResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.entities_recognition_pii.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]
- 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 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')
-
- # 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('EntitiesResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- entities_recognition_pii.metadata = {'url': '/entities/recognition/pii'} # type: ignore
-
- def entities_linking(
- self,
- documents, # type: List["models.MultiLanguageInput"]
- model_version=None, # type: Optional[str]
- show_stats=None, # type: Optional[bool]
- string_index_type="TextElements_v8", # 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
- the :code:`Supported languages in Text 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_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: bool
- :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_1_preview_1.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_1_preview_1.models.EntityLinkingResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.EntityLinkingResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.entities_linking.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]
- 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 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('EntityLinkingResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- entities_linking.metadata = {'url': '/entities/linking'} # type: ignore
-
- def key_phrases(
- self,
- documents, # type: List["models.MultiLanguageInput"]
- model_version=None, # type: Optional[str]
- show_stats=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:`Supported languages in Text 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_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: 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_1_preview_1.models.KeyPhraseResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.KeyPhraseResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.key_phrases.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]
- 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('KeyPhraseResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore
-
- def languages(
- self,
- documents, # type: List["models.LanguageInput"]
- model_version=None, # type: Optional[str]
- show_stats=None, # type: Optional[bool]
- **kwargs # type: Any
- ):
- # type: (...) -> "models.LanguageResult"
- """Detect Language.
-
- The API returns the detected language and a numeric score between 0 and 1. Scores close to 1
- indicate 100% certainty that the identified language is true. See the :code:`Supported languages in Text Analytics API` for the list of
- enabled languages.
-
- :param documents:
- :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.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
- :param show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: 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_1_preview_1.models.LanguageResult
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.LanguageResult"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.languages.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]
- 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('LanguageResult', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- languages.metadata = {'url': '/languages'} # type: ignore
-
- def sentiment(
- self,
- documents, # type: List["models.MultiLanguageInput"]
- model_version=None, # type: Optional[str]
- show_stats=None, # type: Optional[bool]
- opinion_mining=None, # type: Optional[bool]
- string_index_type="TextElements_v8", # 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
- multiple levels of granularity, start from the a document level, down to sentence and key terms
- (aspects) and opinions.
-
- :param documents: The set of documents to process as part of this batch.
- :type documents: list[~azure.ai.textanalytics.v3_1_preview_1.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 show_stats: (Optional) if set to true, response will contain request and document level
- statistics.
- :type show_stats: bool
- :param opinion_mining: (Optional) if set to true, response will contain input and document
- level statistics including aspect-based sentiment analysis results.
- :type opinion_mining: bool
- :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_1_preview_1.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_1_preview_1.models.SentimentResponse
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.SentimentResponse"]
- error_map = {404: ResourceNotFoundError, 409: ResourceExistsError}
- 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"
-
- # Construct URL
- url = self.sentiment.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]
- 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 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)
- 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(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error)
-
- deserialized = self._deserialize('SentimentResponse', pipeline_response)
-
- if cls:
- 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_preview_1/py.typed b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/py.typed
deleted file mode 100644
index e5aff4f83af8..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/py.typed
+++ /dev/null
@@ -1 +0,0 @@
-# Marker file for PEP 561.
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/__init__.py
index ffe1820f1f27..b64fe33ea84d 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/__init__.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/__init__.py
@@ -6,5 +6,5 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from ._text_analytics_client_async import TextAnalyticsClient
+from ._text_analytics_client import TextAnalyticsClient
__all__ = ['TextAnalyticsClient']
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_configuration_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_configuration.py
similarity index 100%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_1/aio/_configuration_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_configuration.py
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_configuration_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_configuration_async.py
deleted file mode 100644
index 033d80c38005..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_configuration_async.py
+++ /dev/null
@@ -1,64 +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 typing import Any, TYPE_CHECKING
-
-from azure.core.configuration import Configuration
-from azure.core.pipeline import policies
-
-if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
- from azure.core.credentials_async import AsyncTokenCredential
-
-VERSION = "unknown"
-
-class TextAnalyticsClientConfiguration(Configuration):
- """Configuration for TextAnalyticsClient.
-
- Note that all parameters used to create this instance are saved as instance
- attributes.
-
- :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).
- :type endpoint: str
- """
-
- def __init__(
- self,
- credential: "AsyncTokenCredential",
- endpoint: str,
- **kwargs: Any
- ) -> None:
- if credential is None:
- raise ValueError("Parameter 'credential' must not be None.")
- if endpoint is None:
- raise ValueError("Parameter 'endpoint' must not be None.")
- super(TextAnalyticsClientConfiguration, self).__init__(**kwargs)
-
- self.credential = credential
- self.endpoint = endpoint
- self.credential_scopes = kwargs.pop('credential_scopes', ['https://cognitiveservices.azure.com/.default'])
- kwargs.setdefault('sdk_moniker', 'ai-textanalytics/{}'.format(VERSION))
- self._configure(**kwargs)
-
- def _configure(
- self,
- **kwargs: Any
- ) -> None:
- self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
- self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
- self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
- self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
- self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs)
- self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs)
- self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
- self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs)
- self.authentication_policy = kwargs.get('authentication_policy')
- if self.credential and not self.authentication_policy:
- self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_text_analytics_client.py
similarity index 95%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_text_analytics_client_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_text_analytics_client.py
index 17d7e258b509..cd8b14f4ad6f 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_text_analytics_client_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/_text_analytics_client.py
@@ -15,8 +15,8 @@
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
-from ._configuration_async import TextAnalyticsClientConfiguration
-from .operations_async import TextAnalyticsClientOperationsMixin
+from ._configuration import TextAnalyticsClientConfiguration
+from .operations import TextAnalyticsClientOperationsMixin
from .. import models
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations_async/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations/__init__.py
similarity index 85%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations_async/__init__.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations/__init__.py
index e6429ee824b7..4384511c0346 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations_async/__init__.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations/__init__.py
@@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from ._text_analytics_client_operations_async import TextAnalyticsClientOperationsMixin
+from ._text_analytics_client_operations import TextAnalyticsClientOperationsMixin
__all__ = [
'TextAnalyticsClientOperationsMixin',
diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations_async/_text_analytics_client_operations_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations/_text_analytics_client_operations.py
similarity index 100%
rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations_async/_text_analytics_client_operations_async.py
rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_2/aio/operations/_text_analytics_client_operations.py
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 a7e9b657535c..1e25740e30c0 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py
@@ -147,7 +147,7 @@ class RecognizePiiEntitiesResult(DictMixin):
:vartype entities:
list[~azure.ai.textanalytics.PiiEntity]
:ivar str redacted_text: Returns the text of the input document with all of the PII information
- redacted out. Only returned for API versions v3.1-preview.2 and up.
+ redacted out. Only returned for API versions v3.1-preview and up.
:ivar warnings: Warnings encountered while processing document. Results will still be returned
if there are warnings, but they may not be fully accurate.
:vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning]
@@ -157,7 +157,7 @@ class RecognizePiiEntitiesResult(DictMixin):
~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 RecognizePiiEntitiesResult.
- .. versionadded:: v3.1-preview.2
+ .. versionadded:: v3.1-preview
The *redacted_text* parameter.
"""
@@ -226,13 +226,13 @@ class CategorizedEntity(DictMixin):
:ivar subcategory: Entity subcategory, such as Age/Year/TimeRange etc
:vartype subcategory: str
:ivar int offset: The entity text offset from the start of the document.
- Returned in unicode code points. Only returned for API versions v3.1-preview.1 and up.
+ Returned in unicode code points. Only returned for API versions v3.1-preview and up.
:ivar int length: The length of the entity text. Returned
- in unicode code points. Only returned for API versions v3.1-preview.1 and up.
+ in unicode code points. Only returned for API versions v3.1-preview and up.
:ivar confidence_score: Confidence score between 0 and 1 of the extracted
entity.
:vartype confidence_score: float
- .. versionadded:: v3.1-preview.1
+ .. versionadded:: v3.1-preview
The *offset* and *length* properties.
"""
@@ -632,8 +632,8 @@ class LinkedEntity(DictMixin):
:vartype data_source: str
:ivar str bing_entity_search_api_id: Bing Entity Search unique identifier of the recognized entity.
Use in conjunction with the Bing Entity Search SDK to fetch additional relevant information.
- Only available for API version v3.1-preview.2 and up.
- .. versionadded:: v3.1-preview.2
+ Only available for API version v3.1-preview and up.
+ .. versionadded:: v3.1-preview
The *bing_entity_search_api_id* property.
"""
@@ -683,11 +683,11 @@ class LinkedEntityMatch(DictMixin):
:vartype confidence_score: float
:ivar text: Entity text as appears in the request.
:ivar int offset: The linked entity match text offset from the start of the document.
- Returned in unicode code points. Only returned for API versions v3.1-preview.1 and up.
+ Returned in unicode code points. Only returned for API versions v3.1-preview and up.
:ivar int length: The length of the linked entity match text. Returned
- in unicode code points. Only returned for API versions v3.1-preview.1 and up.
+ in unicode code points. Only returned for API versions v3.1-preview and up.
:vartype text: str
- .. versionadded:: v3.1-preview.1
+ .. versionadded:: v3.1-preview
The *offset* and *length* properties.
"""
@@ -797,17 +797,17 @@ class SentenceSentiment(DictMixin):
:vartype confidence_scores:
~azure.ai.textanalytics.SentimentConfidenceScores
:ivar int offset: The sentence offset from the start of the document. Returned
- in unicode code points. Only returned for API versions v3.1-preview.1 and up.
+ in unicode code points. Only returned for API versions v3.1-preview and up.
:ivar int length: The length of the sentence. Returned
- in unicode code points. Only returned for API versions v3.1-preview.1 and up.
+ in unicode code points. Only returned for API versions v3.1-preview and up.
:ivar mined_opinions: The list of opinions mined from this sentence.
For example in "The food is good, but the service is bad", we would
mind these two opinions "food is good", "service is bad". Only returned
if `show_opinion_mining` is set to True in the call to `analyze_sentiment` and
- api version is v3.1-preview.1 and up.
+ api version is v3.1-preview and up.
:vartype mined_opinions:
list[~azure.ai.textanalytics.MinedOpinion]
- .. versionadded:: v3.1-preview.1
+ .. versionadded:: v3.1-preview
The *offset*, *length*, and *mined_opinions* properties.
"""
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 7c68034c9de8..a9551bdaac9e 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
@@ -300,7 +300,7 @@ def recognize_pii_entities( # type: ignore
except NotImplementedError as error:
if "APIVersion v3.0 is not available" in str(error):
raise NotImplementedError(
- "'recognize_pii_entities' endpoint is only available for API version v3.1-preview.1 and up"
+ "'recognize_pii_entities' endpoint is only available for API version v3.1-preview and up"
)
raise error
except HttpResponseError as error:
@@ -469,7 +469,7 @@ def analyze_sentiment( # type: ignore
aspect-based sentiment analysis). If set to true, the returned
:class:`~azure.ai.textanalytics.SentenceSentiment` objects
will have property `mined_opinions` containing the result of this analysis. Only available for
- API version v3.1-preview.1.
+ API version v3.1-preview and up.
: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.
If not set, uses "en" for English as default. Per-document language will
@@ -479,7 +479,7 @@ def analyze_sentiment( # type: ignore
be used for scoring, e.g. "latest", "2019-10-01". If a model-version
is not specified, the API will default to the latest, non-preview version.
:keyword bool show_stats: If set to true, response will contain document level statistics.
- .. versionadded:: v3.1-preview.1
+ .. versionadded:: v3.1-preview
The *show_opinion_mining* parameter.
:return: The combined list of :class:`~azure.ai.textanalytics.AnalyzeSentimentResult` and
:class:`~azure.ai.textanalytics.DocumentError` in the order the original documents were
@@ -519,7 +519,7 @@ def analyze_sentiment( # type: ignore
except TypeError as error:
if "opinion_mining" in str(error):
raise NotImplementedError(
- "'show_opinion_mining' is only available for API version v3.1-preview.1 and up"
+ "'show_opinion_mining' is only available for API version v3.1-preview and up"
)
raise error
except HttpResponseError as error:
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 45c9a4d17027..37987e4d290f 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
@@ -31,7 +31,7 @@ def __init__(self, endpoint, credential, **kwargs):
self._client = _TextAnalyticsClient(
endpoint=endpoint,
credential=credential,
- api_version=kwargs.pop("api_version", TextAnalyticsApiVersion.V3_1_PREVIEW_1),
+ api_version=kwargs.pop("api_version", TextAnalyticsApiVersion.V3_1_PREVIEW),
sdk_moniker=USER_AGENT,
authentication_policy=_authentication_policy(credential),
custom_hook_policy=TextAnalyticsResponseHookPolicy(**kwargs),
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 f7c6290665ba..7c918f60d6d1 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
@@ -303,7 +303,7 @@ async def recognize_pii_entities( # type: ignore
except NotImplementedError as error:
if "APIVersion v3.0 is not available" in str(error):
raise NotImplementedError(
- "'recognize_pii_entities' endpoint is only available for API version v3.1-preview.1 and up"
+ "'recognize_pii_entities' endpoint is only available for API version v3.1-preview and up"
)
raise error
except HttpResponseError as error:
@@ -469,7 +469,7 @@ async def analyze_sentiment( # type: ignore
aspect-based sentiment analysis). If set to true, the returned
:class:`~azure.ai.textanalytics.SentenceSentiment` objects
will have property `mined_opinions` containing the result of this analysis. Only available for
- API version v3.1-preview.1.
+ API version v3.1-preview and up.
: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.
If not set, uses "en" for English as default. Per-document language will
@@ -479,7 +479,7 @@ async def analyze_sentiment( # type: ignore
be used for scoring, e.g. "latest", "2019-10-01". If a model-version
is not specified, the API will default to the latest, non-preview version.
:keyword bool show_stats: If set to true, response will contain document level statistics.
- .. versionadded:: v3.1-preview.1
+ .. versionadded:: v3.1-preview
The *show_opinion_mining* parameter.
:return: The combined list of :class:`~azure.ai.textanalytics.AnalyzeSentimentResult` and
:class:`~azure.ai.textanalytics.DocumentError` in the order the original documents were
@@ -520,7 +520,7 @@ async def analyze_sentiment( # type: ignore
except TypeError as error:
if "opinion_mining" in str(error):
raise NotImplementedError(
- "'show_opinion_mining' is only available for API version v3.1-preview.1 and up"
+ "'show_opinion_mining' is only available for API version v3.1-preview and up"
)
raise error
except HttpResponseError as error:
diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md
index 00760dfa3ae5..f2e325374610 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md
+++ b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md
@@ -62,7 +62,7 @@ what you can do with the Azure Text Analytics client library.
|**Advanced Sample File Name**|**Description**|
|----------------|-------------|
-|[sample_analyze_sentiment_with_opinion_mining.py][sample_analyze_sentiment_with_opinion_mining] and [sample_analyze_sentiment_with_opinion_mining_async.py][sample_analyze_sentiment_with_opinion_mining_async]|Analyze sentiment in documents with granular analysis into individual opinions present in a sentence. Only available with API version v3.1-preview.1.|
+|[sample_analyze_sentiment_with_opinion_mining.py][sample_analyze_sentiment_with_opinion_mining] and [sample_analyze_sentiment_with_opinion_mining_async.py][sample_analyze_sentiment_with_opinion_mining_async]|Analyze sentiment in documents with granular analysis into individual opinions present in a sentence. Only available with API version v3.1-preview and up.|
|[sample_get_detailed_diagnostics_information.py][get_detailed_diagnostics_information] and [sample_get_detailed_diagnostics_information_async.py][get_detailed_diagnostics_information_async]|Get the request batch statistics, model version, and raw response in JSON format through a callback|
[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity
diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py
index fc0811c6f37b..058c1752d9c8 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py
@@ -12,7 +12,7 @@
DESCRIPTION:
This sample demonstrates how to analyze sentiment on a more granular level, mining individual
opinions from reviews (also known as aspect-based sentiment analysis).
- This feature is only available for clients with api version v3.1-preview.1.
+ This feature is only available for clients with api version v3.1-preview and up.
In this sample, we will be a customer who is trying to figure out whether they should stay
at a specific hotel. We will be looking at which aspects of the hotel are good, and which are
diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py
index 2d5bfbdb98d9..1fc0c04458b6 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py
@@ -11,7 +11,7 @@
DESCRIPTION:
This sample demonstrates how to recognize personally identifiable information in a batch of documents.
- The endpoint recognize_pii_entities is only available for API version v3.1-preview.1 and up.
+ The endpoint recognize_pii_entities is only available for API version v3.1-preview and up.
USAGE:
python sample_recognize_pii_entities_async.py
diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py
index 3cd161b93b8a..e3bfb9628f59 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py
@@ -12,7 +12,7 @@
DESCRIPTION:
This sample demonstrates how to analyze sentiment on a more granular level, mining individual
opinions from reviews (also known as aspect-based sentiment analysis).
- This feature is only available for clients with api version v3.1-preview.1.
+ This feature is only available for clients with api version v3.1-preview and up.
In this sample, we will be a customer who is trying to figure out whether they should stay
at a specific hotel. We will be looking at which aspects of the hotel are good, and which are
diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py
index 49f527763b46..e159db0a0bca 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py
@@ -11,7 +11,7 @@
DESCRIPTION:
This sample demonstrates how to recognize personally identifiable information in a batch of documents.
- The endpoint recognize_pii_entities is only available for API version v3.1-preview.1 and up.
+ The endpoint recognize_pii_entities is only available for API version v3.1-preview and up.
USAGE:
python sample_recognize_pii_entities.py
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 a70a42de12ab..1d2c328c5e49 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 546ef146-2055-49be-945d-8b4d95870565
+ - 6b290991-4885-41e7-b595-0a80607d8de9
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:50 GMT
+ - Thu, 10 Sep 2020 15:25:19 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:
- - '84'
+ - '85'
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 9c89c4291803..b798d7266afc 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - ee67d363-828c-4a5b-92ee-4a943a9aa020
+ - 1ad16a34-44d9-4afc-98df-be0bdbc8cd2d
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:50 GMT
+ - Thu, 10 Sep 2020 15:25:20 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:
- - '95'
+ - '91'
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 7ca065da90f9..9e84cf32b294 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:31:56 GMT
+ - Thu, 10 Sep 2020 15:25:20 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 9331b76b5a8c..56473b8df82d 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,20 +14,20 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
apim-request-id:
- - 600cfe88-8c7b-4017-a50e-ef0c30a546a4
+ - 79e24ad7-44c2-45e4-a6ed-505b4a44e889
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:56 GMT
+ - Thu, 10 Sep 2020 15:25:20 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'
+ - '7'
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 77196ef1175c..f9cc0d8a2030 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - e63eddb4-ac2c-4b1d-bfa8-ff78dc65076f
+ - 03911926-ef7e-4abf-9d63-216055b1c156
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:50 GMT
+ - Thu, 10 Sep 2020 15:25:22 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'
+ - '9'
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 d78e04aa30cb..86e76abaa877 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 22ce0f08-e152-4611-bf63-9cc9ae125568
+ - f972bf18-1a09-4fe0-844f-de17dc4c67e8
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:50 GMT
+ - Thu, 10 Sep 2020 15:25:19 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 d46ce44ab955..d40036b24733 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - f43fb317-26ff-4149-b5bc-d56d11c8854a
+ - 380712cc-c0a1-49b8-811c-36a8ad107be3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:51 GMT
+ - Thu, 10 Sep 2020 15:25:20 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:
- - '102'
+ - '91'
status:
code: 200
message: OK
@@ -62,9 +62,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 774b2e78-39be-49f0-8fd9-0aa021a39f2f
+ - a3aeae9c-b649-4730-8987-044cb7abac1f
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:51 GMT
+ - Thu, 10 Sep 2020 15:25:20 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -108,9 +108,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 6538bfb7-2e2e-488f-b935-ead59d26f8d8
+ - 5fe2308f-ba51-4eee-abec-9ed8559ce512
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:52 GMT
+ - Thu, 10 Sep 2020 15:25:20 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:
- - '111'
+ - '91'
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 ca83f30ce45b..bf9a7a5a839f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 7f10c39c-4c45-4b6f-a4a9-d842331d000b
+ - 75001b70-19f7-4d64-9de1-da1d6e21b6c2
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:56 GMT
+ - Thu, 10 Sep 2020 15:25:19 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 95e92d12c8f0..6a9d381d47ed 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 06198e70-ea3e-4cbc-9cd2-ae78adf4d46c
+ - fc056837-688f-44ff-917c-1a58fe2de382
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '2'
+ - '3'
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 6a99680cb40b..55a32eca47d1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?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":"2020-04-01"}'
headers:
apim-request-id:
- - 084681fc-8373-4fe8-8439-f2e5827b6303
+ - e39a857d-ccba-4385-b277-8d7f6aa3a242
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:20 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:
- - '3'
+ - '2'
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 1cd5ace0dd70..59fdb59f189f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 3d9a766a-43e3-4985-86b9-4bb2dd1930ec
+ - e214b62b-d773-42c8-8366-8619902996a1
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:51 GMT
+ - Thu, 10 Sep 2020 15:25:22 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:
- - '90'
+ - '95'
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 d07ed6337f67..17df19d62668 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 1c0ab972-6593-48b1-af4f-4b138ab0c43f
+ - df0574b7-cbfb-4928-8e9b-63d6257fd53e
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:50 GMT
+ - Thu, 10 Sep 2020 15:25:21 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'
+ - '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 36eb9dd6039e..9e84cf32b294 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:31:52 GMT
+ - Thu, 10 Sep 2020 15:25:20 GMT
status:
code: 401
message: PermissionDenied
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 092b7a364d74..69dd6bc4f61f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?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":"2020-04-01"}'
headers:
apim-request-id:
- - 838a1ab2-8281-4f97-b7ff-717051401ae8
+ - 2d7bdfe5-4842-4a47-aae7-9f40850eb8bb
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:56 GMT
+ - Thu, 10 Sep 2020 15:25:19 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:
- - '3'
+ - '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 189fdded1afa..0497c2631461 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -30,13 +30,13 @@ interactions:
language code. Supported languages: de,en,es,fr,it,ja,ko,nl,no,pt-PT,tr,zh-Hans,zh-Hant"}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - ed04dab2-5bf4-450b-93b3-05c049cced7e
+ - 5629398b-4c8a-414c-a06d-54036b5cc7e3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:20 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:
- - '79'
+ - '91'
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 b469eaf6f684..f4238f9d8765 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?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: de,en,es,fr,it,ja,ko,nl,no,pt-PT,tr,zh-Hans,zh-Hant"}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 690eec45-cc48-49a4-a6e8-ee2f7e9d91b0
+ - 3bb492dd-7dd8-4adc-b9ab-815293ac3af6
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:21 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:
- - '2'
+ - '1'
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 d050acfdaa1b..ddf01f7f40a6 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?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: de,en,es,fr,it,ja,ko,nl,no,pt-PT,tr,zh-Hans,zh-Hant"}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - d3b407d4-9dbf-41c9-8652-6eec212619e0
+ - e635387f-e36f-46b0-ace4-a12c5802d2ac
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:51 GMT
+ - Thu, 10 Sep 2020 15:25:23 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 15ac36bfb206..7278bea5462d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 6947c482-7c9a-4806-86cf-bfec2236e37d
+ - 99712a57-29c8-433a-8901-ee8088a0cae1
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:51 GMT
+ - Thu, 10 Sep 2020 15:25:21 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:
- - '100'
+ - '119'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_length_v3_sentence_sentiment.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_length_v3_sentence_sentiment.yaml
index 175a126fa750..6f28fd354a64 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_length_v3_sentence_sentiment.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_length_v3_sentence_sentiment.yaml
@@ -14,9 +14,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
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:
- - 94e0a047-a7be-4d12-a4ec-81ef3f496950
+ - 0e2ccaf0-207b-494d-a94d-cba1246086a4
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 20:56:20 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '78'
+ - '83'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset_length.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset_length.yaml
index 8b9f602bd5a4..75a1d7ee1fe3 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset_length.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset_length.yaml
@@ -14,9 +14,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - c1dc9d16-85c8-420d-95a1-76b21edbb06f
+ - 913bac7c-7802-40c1-a259-5106eb194176
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 18:31:18 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '81'
+ - '76'
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 cee800d086ff..585637b1ec92 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.","aspects":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"opinion","ref":"#/documents/0/sentences/0/opinions/0"},{"relationType":"opinion","ref":"#/documents/0/sentences/0/opinions/1"}]}],"opinions":[{"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:
- - d731425e-aa5a-4246-a394-a5ecd301b7e9
+ - 1ef2a54e-51e8-46c1-a20c-bb0a0a77bbdf
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:52 GMT
+ - Thu, 10 Sep 2020 15:25:21 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:
- - '96'
+ - '393'
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 38fc4ccbf65e..fba66119b3ee 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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","aspects":[],"opinions":[]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - c892a7af-8e67-4d40-b76d-81e5f9b9590b
+ - 1dd36271-cba1-4487-b2f8-135c86bf4185
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:52 GMT
+ - Thu, 10 Sep 2020 15:25:21 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:
- - '97'
+ - '131'
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 73f3fe35ea81..9be81c8da2fa 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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","aspects":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":4,"text":"food","relations":[{"relationType":"opinion","ref":"#/documents/0/sentences/0/opinions/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":13,"length":7,"text":"service","relations":[{"relationType":"opinion","ref":"#/documents/0/sentences/0/opinions/0"}]}],"opinions":[{"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:
- - b6c74212-ba51-4fca-9819-260e1c801588
+ - ac1ebb0f-8d2e-4a71-8600-ecae5acf59c5
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:22 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:
- - '81'
+ - '213'
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 1aedbb8ccc34..309018ecf0d5 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 0084c944-11e7-4ecc-80a7-94b17cda63b4
+ - b114aa81-62a1-4c20-bbb9-4bafcf4811e7
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '88'
+ - '85'
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 7a4540018f08..3ee485e7b4b5 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 0c65f394-1360-44f4-aadb-a13ae6ca8754
+ - ee91ca66-7ff8-46aa-a121-8d6702e39729
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=5
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '100'
+ - '77'
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 757ad9a3f26d..aed6256d7d0d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - f600a645-52da-45ec-942f-84eb88a21ec2
+ - b5cb49b3-fe91-4beb-9e5e-846d50ca4a0b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:52 GMT
+ - Thu, 10 Sep 2020 15:25:22 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:
- - '81'
+ - '193'
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 867b9caa7a44..390738b57d46 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 5abe82f0-fc68-44d6-bc36-08e81ca90632
+ - 423f5efe-bd9a-4a06-8015-9b9badd25c6c
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:52 GMT
+ - Thu, 10 Sep 2020 15:25:21 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:
- - '91'
+ - '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 e55eb0a98b73..109dd21211b5 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 918186e6-d096-408d-8d48-eca13502169c
+ - 7f7674e5-d93f-4407-bcee-c3d641f97c8a
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:22 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:
- - '86'
+ - '84'
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 8ad57865e308..3cfb700e2ac0 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 0b9a5e6b-ad0b-45f3-8da9-79f6440568c8
+ - 74b46c9a-65ef-49d8-9256-63a5b095314a
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:24 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:
- - '85'
+ - '79'
status:
code: 200
message: OK
@@ -62,9 +62,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -74,7 +74,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:24 GMT
status:
code: 401
message: PermissionDenied
@@ -95,9 +95,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -106,13 +106,13 @@ interactions:
restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 67df6212-976f-40ad-a488-343f276019fd
+ - 4fa7fdb0-490a-450c-9345-330e781bdf61
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:24 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:
- - '87'
+ - '106'
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 c782202dcf72..7aa6000f62ca 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - fe7974c5-daee-401c-a149-5b2c30add313
+ - 03275fc7-0282-4bb0-8855-c02a7a10786a
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:22 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:
- - '89'
+ - '111'
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 84c206702df2..8bb25d5bf491 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,22 +13,22 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
body:
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:
- - 72cda56d-9970-4c24-b3ed-103bee60e0b9
+ - 61e3efac-bd24-47ef-b087-f207066cb2e6
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:53 GMT
+ - Thu, 10 Sep 2020 15:25:21 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:
- - '84'
+ - '96'
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 c45028cd65ee..5224397ffbe9 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 48ccef32-6c97-4cf2-a46e-55d414ccfd6c
+ - ccd4949b-80d2-4da2-bbb8-45f4094a9a92
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:52 GMT
+ - Thu, 10 Sep 2020 15:25:20 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 689a972e148b..3ddadda7b372 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - af44eea9-42bc-4974-b4a7-9dcbc247d510
+ - b47ac0be-db0b-41ca-b25e-7ba6fc597b73
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:53 GMT
+ - Thu, 10 Sep 2020 15:25:20 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:
- - '90'
+ - '74'
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 5e487fb386a1..7820f372df26 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 215cc7ed-0a9e-4d75-abcd-bf4366b7b148
+ - febcd05f-1144-4ebd-992c-eba89abcea98
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:22 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:
- - '78'
+ - '77'
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 07f67ed7bb92..29b0b56531ed 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 6df2265b-c8f2-4916-b740-48fd296a65ec
+ - a10e6484-7dc3-4460-8b48-b9531ba79cfb
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:59 GMT
+ - Thu, 10 Sep 2020 15:25:25 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:
- - '114'
+ - '109'
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 3e07d6eae486..0a0f9aab4550 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 5a0fccb1-2329-4af9-b25d-5fa2495f67f4
+ - 0b6a61be-e9c6-4963-a4d6-85500f8a3ee7
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:59 GMT
+ - Thu, 10 Sep 2020 15:25:22 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:
- - '101'
+ - '88'
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 b71d9d77c215..b3f5af488f22 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 42587117-6743-46b4-be8f-3a4711941e6c
+ - f0f86ac1-cca9-4a5d-87c1-65669606ef33
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:53 GMT
+ - Thu, 10 Sep 2020 15:25:22 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:
- - '93'
+ - '178'
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 3b295b46c279..19552e2b9ae7 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 52b521fb-02ec-4f7e-aeaf-5c9b53c0c0e7
+ - 61571f8a-f3cc-4461-b640-f0f4bc472400
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:53 GMT
+ - Thu, 10 Sep 2020 15:25:21 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:
- - '120'
+ - '94'
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 b040715d3398..40109702b37e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - d9a8f99e-8164-499f-9b5d-79214bb18ecb
+ - 81007e5e-6f52-4d47-9570-4d04b5b8c5ab
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:53 GMT
+ - Thu, 10 Sep 2020 15:25:21 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:
- - '109'
+ - '116'
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 032fef4d2eac..6a60e26aa363 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: c57f2812-d193-4af6-b492-58110b99a140
+ apim-request-id: 0caf6fb7-8247-4715-a6b7-599fb2166e61
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:31:58 GMT
+ date: Thu, 10 Sep 2020 15:25:23 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '87'
+ x-envoy-upstream-service-time: '83'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 b6059755220a..45156976c4d9 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: f665688d-1cce-4513-bd7c-ae81c7400faf
+ apim-request-id: e9a472df-13f9-43a5-83cd-43fcaa272f3b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:24 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: '80'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 ef0cc6b48e11..89ec91d17d3d 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:23 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version.yaml
deleted file mode 100644
index 6d722d869632..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "Microsoft was founded by Bill Gates.",
- "language": "en"}]}'
- headers:
- Accept:
- - application/json
- Content-Length:
- - '94'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.0b5 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/sentiment?model-version=old&showStats=false
- response:
- body:
- string: '{"error":{"code":"InvalidRequest","message":"Specified Model version
- is incorrect. Allowed values are latest,2019-10-01,2020-04-01"}}'
- headers:
- apim-request-id: cb4658d9-7cdb-46c0-99ea-76710acf3cca
- content-type: application/json; charset=utf-8
- date: Wed, 22 Apr 2020 22:45:58 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: 400
- message: Bad Request
- url: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/sentiment?model-version=old&showStats=false
-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 e976f1aaec1c..ae4b6ab2f5dd 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,23 +10,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
- apim-request-id: 71053d6c-9f69-4d1e-9f3a-dc1588bbc455
+ apim-request-id: 0c042c23-5000-4d60-b3f0-b9f9afd26465
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:53 GMT
+ date: Thu, 10 Sep 2020 15:25:21 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 544c30081975..e3903979c35f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: ec32a00c-c6a9-40c2-b8a2-dff6ba90bde5
+ apim-request-id: 3347098d-e670-4571-8b13-cd0f026d3988
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:54 GMT
+ date: Thu, 10 Sep 2020 15:25: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: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 ef9388697cb0..cbaa6527c3a1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 14ba945e-f7d9-4067-a3f3-c14f7e6b2f95
+ apim-request-id: aa6c6dd4-c86c-47a6-9bea-6d2918a359d9
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:23 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: '9'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 628308ddf088..ca4ad8af50be 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: c891977d-781a-4903-9a68-c324e34704b8
+ apim-request-id: 8f20dc9f-4f08-4721-93e0-ea2ff6b09e35
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:25 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: '81'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: f7a559df-b24b-4b61-b872-d93d5c66aa7c
+ apim-request-id: 9f8aec98-3401-4164-9646-95d998a98bc9
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:25 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: '85'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 3deb72d0-3f32-4d4b-bdd6-2866d49d07c3
+ apim-request-id: 11013c10-1253-4197-8a01-ce514591a71b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:25 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: '91'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_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 2466bb918590..29612d7e2173 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: f0cb046c-30ff-47c7-9de2-5d514faed802
+ apim-request-id: a2be28a3-cd85-4205-a90d-d9dab28856cb
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:23 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2c382ab15f50..0ba5f6673dbe 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 82470de3-9069-4f0d-a6a7-acba80fcf132
+ apim-request-id: 70992544-e71b-4904-b802-6207267e3e24
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:54 GMT
+ date: Thu, 10 Sep 2020 15:25:23 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 8486ace9dd9f..15aef9c1f7e7 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?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":"2020-04-01"}'
headers:
- apim-request-id: 03a7e979-6937-4d71-888e-31b0c35126e2
+ apim-request-id: a7a2cdcc-177d-4e1a-8e39-6d9535a52537
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:53 GMT
+ date: Thu, 10 Sep 2020 15:25:21 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 07f1eb96fb12..8317395c62ea 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 4702ed83-022b-49bc-96a6-9efc4b97de06
+ apim-request-id: 75d881de-3e41-41ab-8d72-0a7df40504f1
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:54 GMT
+ date: Thu, 10 Sep 2020 15:25:22 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: '104'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2a5402f36b26..afbe371e2bae 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,17 +10,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: f100e950-cb2e-4cad-bc55-6531bbb6d46d
+ apim-request-id: fab773a4-8044-44d0-8404-565bfb91eb24
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:24 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -28,5 +28,5 @@ interactions:
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3ac0a106e71f..4c097e158c89 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:26 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml
index a59acd63728e..34a3bf9e97b6 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?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":"2020-04-01"}'
headers:
- apim-request-id: 9c6d53ff-f5e9-491a-974d-3b9da4095526
+ apim-request-id: 826508b9-9eed-4b49-a16f-77d48a8115b4
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:23 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 53270302dfbf..6b6144db82af 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -25,16 +25,16 @@ interactions:
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: de,en,es,fr,it,ja,ko,nl,no,pt-PT,tr,zh-Hans,zh-Hant"}}}],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: b609a82b-91c8-47a3-ada2-52ef79694d84
+ apim-request-id: 47271838-da2a-4e1c-b682-9df52adba3bf
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:54 GMT
+ date: Thu, 10 Sep 2020 15:25:24 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '152'
+ x-envoy-upstream-service-time: '86'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3482d791ce40..9d388bf43ebc 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,18 +10,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?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: de,en,es,fr,it,ja,ko,nl,no,pt-PT,tr,zh-Hans,zh-Hant"}}}],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: f98f6308-de16-480d-bdda-734e95afaac2
+ apim-request-id: 5945b4bd-cf25-47b6-89f8-fc8707c03a94
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:54 GMT
+ date: Thu, 10 Sep 2020 15:25:22 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 761029e05394..4a8ba4580abc 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,24 +10,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?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: de,en,es,fr,it,ja,ko,nl,no,pt-PT,tr,zh-Hans,zh-Hant"}}}],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 34d18ae9-f4e9-48eb-a709-31c3e40997e0
+ apim-request-id: 6adbf181-a83b-4e98-80de-850a95e19a0b
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:54 GMT
+ date: Thu, 10 Sep 2020 15:25:22 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: '1'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 db2164ddf78b..3e9529d39dd6 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 99ae5aa0-c8a0-4734-8bbd-ad41003bb88a
+ apim-request-id: 97557ffc-19e5-4ea5-8979-149806352502
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:24 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '102'
+ x-envoy-upstream-service-time: '123'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_length_v3_sentence_sentiment.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_length_v3_sentence_sentiment.yaml
index b4a940938941..457599aed791 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_length_v3_sentence_sentiment.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_length_v3_sentence_sentiment.yaml
@@ -10,25 +10,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
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: 0577ce48-c371-418e-b478-cc085c7ecaf8
+ apim-request-id: 3bba3dc8-f155-4a69-bf7d-1872879340c1
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 20:56:21 GMT
+ date: Thu, 10 Sep 2020 15:25:24 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '79'
+ x-envoy-upstream-service-time: '97'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/sentiment?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.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_length.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset_length.yaml
index 2c98023a60c0..e246ceb72ade 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset_length.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset_length.yaml
@@ -10,25 +10,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 22d88cc1-51fb-48e0-a335-d14b72e1d125
+ apim-request-id: e206ca24-f487-4cdf-aac6-3b4c743f0475
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 18:31:18 GMT
+ date: Thu, 10 Sep 2020 15:25:25 GMT
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: '82'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 df35086ba06c..d1e492eee340 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.","aspects":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"opinion","ref":"#/documents/0/sentences/0/opinions/0"},{"relationType":"opinion","ref":"#/documents/0/sentences/0/opinions/1"}]}],"opinions":[{"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: da9f1b9d-8e1f-4490-8d06-00dff248ed14
+ apim-request-id: e12c0cb7-1be0-402f-ad60-baa0a66a549f
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:55 GMT
+ date: Thu, 10 Sep 2020 15:25:26 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '85'
+ x-envoy-upstream-service-time: '102'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 9c1902256064..deaf23a4850b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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","aspects":[],"opinions":[]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 4d87f92c-a592-455a-bd88-633b0d178c79
+ apim-request-id: a72f1c0d-1814-4ed5-bea6-d73d64ad00d8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:23 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '94'
+ x-envoy-upstream-service-time: '77'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e07b69256df1..c28b2ac0a326 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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","aspects":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":4,"text":"food","relations":[{"relationType":"opinion","ref":"#/documents/0/sentences/0/opinions/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":13,"length":7,"text":"service","relations":[{"relationType":"opinion","ref":"#/documents/0/sentences/0/opinions/0"}]}],"opinions":[{"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: 66b7863d-048c-4a31-a972-63d55b8df806
+ apim-request-id: 3bc4d2a6-173f-4c6c-a38c-114670d9799a
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:22 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '81'
+ x-envoy-upstream-service-time: '96'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 722b75443dba..f013f94071b1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: f583062e-d188-4dcb-94a5-031797cf71a5
+ apim-request-id: 14c20540-87cf-472c-95e9-7279b10d17f0
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:31:55 GMT
+ date: Thu, 10 Sep 2020 15:25:22 GMT
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: '91'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 d5955db9c351..128cea38f590 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 07188c04-7822-46a0-bf68-772f63d9ead4
+ apim-request-id: cd710734-ac57-4cfb-8318-dca9116beee1
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5
- date: Thu, 27 Aug 2020 19:31:54 GMT
+ date: Thu, 10 Sep 2020 15:25:25 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '87'
+ x-envoy-upstream-service-time: '83'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 47364f75ab6d..51d5da12a599 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: fdf39b73-226b-42e2-b4d6-b2ecc644f77c
+ apim-request-id: c9eda74f-6ee4-4fee-8fe6-81b869de7098
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:56 GMT
+ date: Thu, 10 Sep 2020 15:25:27 GMT
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: '76'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 a5cbf109e48a..f75eb0750c56 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 13dc8813-028e-4cbd-8d49-e9ae650042e8
+ apim-request-id: 306d71dc-ddac-41ad-a28e-b53459ec18e8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:02 GMT
+ date: Thu, 10 Sep 2020 15:25:24 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '94'
+ x-envoy-upstream-service-time: '116'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2f708ed9d460..129cde9380d5 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 0dfe40c4-344b-4422-bf37-945515366584
+ apim-request-id: 68ea0880-a02d-476a-92e3-a014b7e47103
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:22 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '87'
+ x-envoy-upstream-service-time: '78'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e0d347128c38..9ab70c69d256 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 810093bd-5164-43c2-bf1c-5dcb3f5fc7b9
+ apim-request-id: aaa1e9c2-f7ae-4e30-bab0-cf9bc566757b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:31:55 GMT
+ date: Thu, 10 Sep 2020 15:25:23 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '94'
+ x-envoy-upstream-service-time: '77'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -57,11 +57,11 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:31:55 GMT
+ date: Thu, 10 Sep 2020 15:25:23 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -75,9 +75,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -85,16 +85,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: 464b2870-b207-435f-bef9-26d96198fa4d
+ apim-request-id: df40711c-d5df-4e2b-9188-3acc453aacc8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:31:55 GMT
+ date: Thu, 10 Sep 2020 15:25:23 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '82'
+ x-envoy-upstream-service-time: '79'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 4f7fe655cc96..b0338a8c64bc 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 3da5a9a7-2fda-401e-bcaa-921e066586b2
+ apim-request-id: a281e5ad-eef2-468e-aeb4-59e515700267
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:31:55 GMT
+ date: Thu, 10 Sep 2020 15:25:25 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '113'
+ x-envoy-upstream-service-time: '83'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e79a1ed1887a..1f87c95f1a7c 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,24 +9,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false
response:
body:
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: 9d082595-3d44-4ca6-ada0-bb3527f62aa2
+ apim-request-id: 9bc9900c-052a-4a13-bb41-bfd21c367df9
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:56 GMT
+ date: Thu, 10 Sep 2020 15:25:28 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '75'
+ x-envoy-upstream-service-time: '886'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/sentiment?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.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 3ec71a20df40..c8cf425a56eb 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,17 +15,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 601807d3-aefb-4dfa-8a41-ba7166643779
+ apim-request-id: e2d8c377-2083-40e5-a8a5-904a2542428a
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:24 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -33,5 +33,5 @@ interactions:
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 8e2037e3d471..0cec78f38f11 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 1f75b6dc-8c72-44ec-abf7-9b965b555f34
+ apim-request-id: 73e3a90f-b310-4330-9990-b1b98d4105a8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:02 GMT
+ date: Thu, 10 Sep 2020 15:25:24 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '93'
+ x-envoy-upstream-service-time: '95'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 8b01bd1131ae..c68f431ca0c9 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 8ca7b602-185a-4c3d-bda3-7a6df0b50602
+ apim-request-id: e3699af2-469f-4c88-9bb2-c2ea39bbe646
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:23 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: '74'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 fb6706f0f7e5..7e173f3ce575 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: cf587f29-d57b-4179-a0b0-e9ee079f2ef4
+ apim-request-id: b68c7806-6387-4265-82df-3b4bcb36697e
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:31:56 GMT
+ date: Thu, 10 Sep 2020 15:25:24 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '85'
+ x-envoy-upstream-service-time: '80'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 4fa698da4c25..6830b04a84c0 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: bfe5deb1-9368-4d81-bf53-6173e171bc48
+ apim-request-id: 02b7fdc9-7c0b-4118-af22-172cd273df17
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:31:55 GMT
+ date: Thu, 10 Sep 2020 15:25:25 GMT
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: '79'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 415643da22d9..11f3ffd03b9c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 75cde431-f4de-4e6c-85fb-578e3966d7c1
+ apim-request-id: 2f7b47ce-ed2e-491c-b448-1dcee266d83b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:31:56 GMT
+ date: Thu, 10 Sep 2020 15:25:28 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: '85'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 6b8c5e1ac284..3a0d4dd26847 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: da1b5a7a-2a72-4f05-a147-e7adf78a204e
+ apim-request-id: 8fc4ad88-d52a-4eee-8a06-de3235568d35
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:24 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: '126'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2928d19fb199..a1c58fcaed12 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 0bc86a5a-d395-4f5a-80e9-0c9125211838
+ apim-request-id: 83359bb1-ed4e-4d66-8700-a01b1042189d
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:02 GMT
+ date: Thu, 10 Sep 2020 15:25:25 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '105'
+ x-envoy-upstream-service-time: '277'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 413ca2fd7455..84c93ab89755 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"statistics":{"charactersCount":41,"transactionsCount":1},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","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":1.0},"statistics":{"charactersCount":46,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - b794f09f-b90b-48a9-8d59-3e14cf28d987
+ - aa9579be-5ea8-4954-91d7-fbf638e55c6e
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:31:55 GMT
+ - Thu, 10 Sep 2020 15:25:26 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:
- - '8'
+ - '15'
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 616fd7b28c59..e563209b08de 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - c1834b44-790b-4968-b531-30fca46ee04b
+ - 5a7d5168-d150-4ea0-8400-ff6a937839b3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:28 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 cf3b83688bfa..4092d0fed993 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:02 GMT
+ - Thu, 10 Sep 2020 15:25:24 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 43d9910336af..045ca0ce0bf2 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,20 +14,20 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?model-version=bad&showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
apim-request-id:
- - 662fe0f3-89e7-425f-8a10-69bc78444264
+ - fd5d32f1-a8a8-429b-a935-420cf6851a2d
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:02 GMT
+ - Thu, 10 Sep 2020 15:25:24 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'
+ - '4'
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 8450883e8ba9..dbb7bf686d79 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 1cd62497-faae-4d8e-bc98-c7c6861ea8d9
+ - c6f77484-b4c9-4e43-84f4-4e50e3bf955f
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:25 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:
- - '12'
+ - '15'
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 292fbfe44af1..be5938f5d897 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - c2126ee0-a456-4616-9e0c-4b2b3a4ba68b
+ - 2a37c1ca-3746-4a8a-9a40-42615f323216
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:56 GMT
+ - Thu, 10 Sep 2020 15:25:27 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:
- - '11'
+ - '9'
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 7fb8973907d2..cdd4f6196d10 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - d702f4dd-744e-4d72-8bb9-658b85e79bec
+ - db2b80e1-b1cc-44f4-ac7d-2716d2b60ae9
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:29 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'
+ - '7'
status:
code: 200
message: OK
@@ -59,21 +59,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - f1b3a7af-e71c-4f3d-a09a-f6a0ffffdd47
+ - d40754f7-a643-4bbd-8d31-c99a990a7cbc
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:29 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:
- - '7'
+ - '6'
status:
code: 200
message: OK
@@ -102,21 +102,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 17985237-c877-4f08-a8c5-5ae58c777f71
+ - e790726d-eec8-4e72-bb8e-8ffd38f0774c
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:29 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:
- - '8'
+ - '6'
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 d153811b9166..2f5b66a21b46 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?model-version=latest&showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - 0de01b35-808a-4fd9-9ffb-95dd305ee6ab
+ - 0cf3faa5-2ffd-47ea-a6e6-bef08aa4b8e3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:02 GMT
+ - Thu, 10 Sep 2020 15:25:24 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'
+ - '15'
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 e0b801ce7534..98bed14b39a3 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 574f25d7-f91d-4930-be1a-62bac58ec2af
+ - 826d1793-9659-4eef-82b0-3bb875757ee2
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:27 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'
+ - '8'
status:
code: 200
message: OK
@@ -55,21 +55,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - a2dfba17-883e-4220-a710-2810a9193dd5
+ - 398bb37b-416a-438f-949e-858f0ca5872a
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:27 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:
- - '7'
+ - '8'
status:
code: 200
message: OK
@@ -96,21 +96,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 12e1201a-4492-4d8b-9ffe-4765653efe57
+ - 9e7ddd6b-45c8-4b3f-a8e6-c41b7217bf8b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:27 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:
- - '6'
+ - '17'
status:
code: 200
message: OK
@@ -137,21 +137,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - fadba6e5-cec6-45e8-a2e1-62688bb6a9af
+ - 460eb2fa-86e1-4e0c-87cb-f19e30cd9c4b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25:27 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 6260de500f77..91c753a8abe7 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - cbaed1d1-a964-45f7-b7df-b4caad22816a
+ - a5c0f031-7d27-4ca0-8021-f8ac7b24e209
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:24 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:
- - '2'
+ - '1'
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 069485d55329..64097c0f956c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - cd32356e-7077-4d5d-9057-759f56d6be3a
+ - ac67c2e0-71f4-47d7-8f0a-f9f31a5d29e8
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:25 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:
- - '2'
+ - '1'
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 12f5379d8c8c..e2c52885d0af 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - 4696c086-461e-408c-9781-e939d6d38f41
+ - bbd9f1c8-274e-4b67-8462-15204e930abb
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:27 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:
- - '3'
+ - '2'
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 77cd525a7dbf..54798ac6d52e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 33c3bd5e-8e5e-46b0-b739-1335de6b23d1
+ - 56cb0a56-b214-4579-a70c-236bec0943ad
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:30 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 064ae6c2ff2a..4f9f63a3fdae 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 130129bf-0805-46cf-adb8-8d06c703dc31
+ - c700efc4-ac0e-4cda-bdcf-891ed714f69d
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:26 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:
- - '4'
+ - '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 b5f2564164a1..6da4b96a090d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25:27 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 03e8ea8c2685..954aa7d260cc 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - 927d8622-6c72-42ce-8b20-9aa68e7878fb
+ - 9e2b2b62-945a-4055-aefd-43b60bb9100b
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:25 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:
- - '2'
+ - '1'
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 843d29357508..c718028df621 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":1.0},"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -30,13 +30,13 @@ interactions:
is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - dfe843d2-6cb2-490d-b3ee-ea4044ceb60d
+ - 2a23ccad-d5fc-4058-9acb-a5ea18a19374
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=2
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:26 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'
+ - '17'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint.yaml
deleted file mode 100644
index 298d5acf9496..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "1", "text": "hello world", "countryHint": "United
- States"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '83'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.0b5 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0-preview.1/languages?showStats=false
- response:
- body:
- string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
- Country Hint.","innerError":{"code":"InvalidCountryHint","message":"Country
- hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country
- code."}}}],"modelVersion":"2019-10-01"}'
- headers:
- apim-request-id:
- - 62417eb9-9e24-4209-ba80-5b019a9e7bc8
- content-type:
- - application/json; charset=utf-8
- csp-billing-usage:
- - CognitiveServices.TextAnalytics.BatchScoring=0
- date:
- - Fri, 15 May 2020 14:52:41 GMT
- strict-transport-security:
- - max-age=31536000; includeSubDomains; preload
- transfer-encoding:
- - chunked
- x-content-type-options:
- - nosniff
- x-envoy-upstream-service-time:
- - '3'
- status:
- code: 200
- message: OK
-version: 1
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 21fea61aefe0..459d00ff74e6 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -25,11 +25,11 @@ interactions:
code."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - b2031517-3e5c-4fe7-a766-d6a911d3188f
+ - f98d6afd-241d-4cca-8fa1-468eca59dd6f
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:27 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 f4a2d0d3fca6..e4a53535e4ba 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -25,11 +25,11 @@ interactions:
code."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 8a655c6a-114c-4b23-9e2f-a523d57b3158
+ - f0f96696-bb57-4759-9c8c-aba42930e198
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:29 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 9f88acfe4a93..83361ad64345 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - a5e65b29-6bf5-4c88-b729-e7615f51eb5d
+ - 8767ae7c-c858-4b82-9912-934c04956760
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:31:57 GMT
+ - Thu, 10 Sep 2020 15:25:28 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:
- - '6'
+ - '9'
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 f8666a65bbf8..f03b482883bc 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"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":"2020-07-01"}'
headers:
apim-request-id:
- - 37e34da8-a0f3-47fc-9d02-6feb3b85008c
+ - e77b4a4e-2677-46fc-846a-b1188781237a
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=5
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:30 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:
- - '7'
+ - '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 555c2d3b6355..63ec3c76afc1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 215e40db-beb1-450e-bcf4-849b9c657774
+ - fab2b9a0-f9af-4bfc-a602-c042c8863dcf
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:26 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'
+ - '21'
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 beceb34ea79f..34dedb67d730 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":1.0},"warnings":[]}],"errors":[{"id":"4","error":{"code":"InvalidArgument","message":"Invalid
@@ -27,13 +27,13 @@ interactions:
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - ec1fa4ee-aff6-4803-9469-72bdf3506308
+ - 7542754a-8530-4a04-94dd-3b49e5996443
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25:26 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:
- - '7'
+ - '23'
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 ff61c3c3c615..397ebe1d5bdb 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - edb01c81-a584-438b-a390-637ee8d671f2
+ - 9a320883-f927-4e3c-84e0-c4b0576916b4
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:26 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'
+ - '19'
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 d894c940a68b..624ae099ebc0 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - e2f0d114-26da-4c7e-9582-45ce4bb9d416
+ - eb806ea5-f466-46cb-947d-b3e412da3b45
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:28 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:
- - '8'
+ - '6'
status:
code: 200
message: OK
@@ -59,9 +59,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -71,7 +71,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:28 GMT
status:
code: 401
message: PermissionDenied
@@ -92,21 +92,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 005b6d95-e9d5-4f62-8f19-ac6b15e34963
+ - 7b96b6d8-0c91-495f-9ddf-d44a43afc3db
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:58 GMT
+ - Thu, 10 Sep 2020 15:25:28 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -114,7 +114,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '6'
+ - '7'
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 3f126a7bf928..1521ef1e8ae5 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?model-version=latest&showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - 75eea94a-cb81-4736-b994-2595d4860438
+ - 72b43eae-7707-4bf9-8f3c-5770b18b82a2
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:31:59 GMT
+ - Thu, 10 Sep 2020 15:25:26 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:
- - '6'
+ - '10'
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 4e517e091392..5a9e05d7e4ac 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,21 +14,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/languages?showStats=false
+ uri: https://westcentralus.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":"2020-07-01"}'
headers:
apim-request-id:
- - a80b8f71-b9f5-4cca-b0f0-dd3509d38184
+ - 25f11865-e0a3-4574-bd56-864810425019
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:31:59 GMT
+ - Thu, 10 Sep 2020 15:25:26 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'
+ - '10'
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 4e4a5a942cce..dcd6f6c57d94 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 9a255115-7d5e-41a6-8bd4-38fd92186da1
+ - c99514b4-8a2e-4765-8922-d738f421dd4e
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:31:59 GMT
+ - Thu, 10 Sep 2020 15:25:27 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 2ce5a214fe94..2b296614bed6 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - a68cd071-2c87-4175-b6d7-c5f4a23828ac
+ - f90b2193-47af-4afc-8ab6-4e3819b60964
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:00 GMT
+ - Thu, 10 Sep 2020 15:25:27 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 2c2586c5e1fa..6db5f473d5ac 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 8bbfa1b3-0edc-4ce6-8d4c-fe19b1ce12af
+ - a96d2f5c-1bff-4657-b82a-67588618b9d5
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:00 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '7'
+ - '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 5f7c804ddec2..aef611164ca8 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 88349785-5df8-44fa-a181-18a0b80e9caa
+ - bf37dba9-6dc6-4be5-bc4a-f7efd2a9e400
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:01 GMT
+ - Thu, 10 Sep 2020 15:25:28 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:
- - '8'
+ - '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_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml
index 52b2763b2ab1..c33f2308a700 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 4633b63b-0dde-47b7-baf8-3b70667a572e
+ - 6dcd6fd6-1133-4cd5-b21e-0bacd0999e07
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:01 GMT
+ - Thu, 10 Sep 2020 15:25:28 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:
- - '8'
+ - '10'
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 82f5675ee426..f2fe61d29ae5 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 50641556-4312-44bd-8618-6a83abd333b9
+ - 9662440a-543c-4d75-9e64-940e26f38ae5
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:01 GMT
+ - Thu, 10 Sep 2020 15:25:28 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:
- - '6'
+ - '11'
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 0290aec562c8..5898e2b54a0f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - c3ed3df9-3d3e-4e05-a4c6-75d16d636730
+ - 0d71640a-279a-4e80-8b11-579640bb0135
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:02 GMT
+ - Thu, 10 Sep 2020 15:25:29 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:
- - '7'
+ - '6'
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 f978983f540f..c333c137b58c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"statistics":{"charactersCount":41,"transactionsCount":1},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","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":1.0},"statistics":{"charactersCount":46,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 7aeb9fbb-d4ea-4a80-ae62-43f377feb380
+ apim-request-id: ef319483-5d4c-4a2f-8366-767f65ea81da
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:02 GMT
+ date: Thu, 10 Sep 2020 15:25:29 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=true
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 1d703deeb6c0..1379be20ced1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: d9e09905-f4b2-4199-8fab-45e7ee67f427
+ apim-request-id: 738aded1-d271-40ab-9828-65a4cb271172
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:02 GMT
+ date: Thu, 10 Sep 2020 15:25:29 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: '7'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f4d501ce7081..5b31dac01311 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:02 GMT
+ date: Thu, 10 Sep 2020 15:25:29 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version.yaml
deleted file mode 100644
index f51181efc1a4..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "Microsoft was founded by Bill Gates.",
- "countryHint": "US"}]}'
- headers:
- Accept:
- - application/json
- Content-Length:
- - '97'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.0b5 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/languages?model-version=old&showStats=false
- response:
- body:
- string: '{"error":{"code":"InvalidRequest","message":"Specified Model version
- is incorrect. Allowed values are latest,2019-10-01"}}'
- headers:
- apim-request-id: 24d1071e-549a-47f8-910d-ac135d3c19b3
- content-type: application/json; charset=utf-8
- date: Mon, 27 Apr 2020 17:37:37 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: 400
- message: Bad Request
- url: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/languages?model-version=old&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 37b3f0f011b9..b918a8a473e7 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,23 +10,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?model-version=bad&showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
- apim-request-id: 62bf884f-77d6-413e-aad4-73b564771f64
+ apim-request-id: 6395721a-32e4-4e90-b79c-9bf8277137e8
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:03 GMT
+ date: Thu, 10 Sep 2020 15:25:29 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: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?model-version=bad&showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 1a822d687bcc..a9d3be218ba4 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,17 +759,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: fee37e90-f484-476e-9992-dda2fc14d609
+ apim-request-id: d9b344ea-de2f-4baf-a2e2-f8690b770f06
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:04 GMT
+ date: Thu, 10 Sep 2020 15:25:30 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -777,5 +777,5 @@ interactions:
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 deac8a474bb3..df55a4772c53 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 97679993-3112-48f9-83a1-470cd18cd1d5
+ apim-request-id: 17d8969f-7ec4-44b7-8280-25886b8624e7
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:30 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2700198dc722..f3b111cbf9ec 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 59eb7cc9-5846-4bd8-9fe7-80d6683f00a6
+ apim-request-id: 87cdb96d-48c0-4653-8f72-91f3a4cb88ed
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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: '6'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: f5108d21-7671-48ac-a455-50b06266c5be
+ apim-request-id: 8a282c99-4736-4ad2-b5b6-0c97992767f0
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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: '7'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 4d836c07-c4b2-4294-8a2d-a4f45af260e8
+ apim-request-id: 95155540-6e59-45a6-9b5a-3f3a416d95dd
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3a008f4772c1..053ec0f03f4d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?model-version=latest&showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 225331b8-8f31-4e9e-b96b-748641b9b6fd
+ apim-request-id: 25fc2404-e6d9-4d3f-9fa5-6b312392dc62
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?model-version=latest&showStats=true
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 7da034149bcd..2abedbba317f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 0037af8b-5d96-48fb-9f3d-26e59c77df4f
+ apim-request-id: 3e95712c-1c59-4bae-872b-44ae4b1e62b8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:58 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 9f69be65-94d7-41ce-ad22-0af61b36a22c
+ apim-request-id: b044f88e-5054-4c02-8a6e-f4c9e6fb5191
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:58 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-preview.2/languages?showStats=false
- request:
body: '{"documents": [{"id": "0", "text": "this is written in english", "countryHint":
""}]}'
@@ -70,17 +70,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: ed504e74-9fec-48e8-ac52-a86f8892198f
+ apim-request-id: 8eaa4114-b925-462d-b2f6-0335226ef035
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:58 GMT
+ date: Thu, 10 Sep 2020 15:25:31 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -88,7 +88,7 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 9a323d32-d072-48fd-8367-ef4ad6870e82
+ apim-request-id: 571efada-6dcd-4816-a3a4-908bdc8f7ee0
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:32 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_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 88865599d15f..4adadae8d5b0 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: d5a472b6-1edc-4599-8821-e49478df5508
+ apim-request-id: 1e747413-baab-4dd1-8e54-291e7cadb514
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:32 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 13cd5c4fd473..f4483ab53f4d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 029b28d2-cc40-4a34-959d-42b9c294771c
+ apim-request-id: 39ceca72-646e-4065-b16c-040c563fd2bb
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:33 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: '1'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 700e5edba873..684ed75fd83c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -24,9 +24,9 @@ interactions:
size to: 5120 text elements. For additional details on the data limitations
see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: ede6d4ca-785a-486a-9dc5-98dd9ddf49a7
+ apim-request-id: e693a54d-88c5-4d3b-9d6b-1de24c56ce0f
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:33 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3492dec96410..5341bd6dfda9 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: dc8ec15d-37a9-4721-8893-f7c40ee19c60
+ apim-request-id: d2a5e9fa-17e5-4f9a-9dc8-d8c24d6fd2be
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:34 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: '6'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 8def0b727f93..f0a82188a8bb 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 521d96d9-27de-406c-8f44-86116d5f8df8
+ apim-request-id: c3709ad8-468c-4310-8d5f-a2fc33f72485
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:27 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: '5'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 078bbe69888c..c22c1fd21a75 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:28 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 7e63a6326570..09f7c0116eec 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 93b02a6d-c74a-4d2c-bec6-580ab871a0ff
+ apim-request-id: 8f499d8c-1d7b-468c-8a2a-5be0e952a959
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:28 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3f305c975d13..4cf61cae3081 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":1.0},"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":"2020-07-01"}'
headers:
- apim-request-id: 9ba14560-a138-4864-bbae-c29b4f6fb98f
+ apim-request-id: b4bf98ab-b840-4d38-91f0-7a56c328ab1a
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:28 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint.yaml
deleted file mode 100644
index 4c97e05bdf77..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "1", "text": "hello world", "countryHint": "United
- States"}]}'
- headers:
- Accept:
- - application/json
- Content-Length:
- - '83'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.0b5 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0-preview.1/languages?showStats=false
- response:
- body:
- string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
- Country Hint.","innerError":{"code":"InvalidCountryHint","message":"Country
- hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country
- code."}}}],"modelVersion":"2019-10-01"}'
- headers:
- apim-request-id: 1901a496-b5a3-4335-a620-cfa7ccbcc4ba
- content-type: application/json; charset=utf-8
- csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=0
- date: Fri, 15 May 2020 14:52:42 GMT
- strict-transport-security: max-age=31536000; includeSubDomains; preload
- transfer-encoding: chunked
- x-content-type-options: nosniff
- x-envoy-upstream-service-time: '4'
- status:
- code: 200
- message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0-preview.1/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 ff939534669f..28b5f7285094 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: a54910c4-d980-4ae9-a3f6-80b95aa34534
+ apim-request-id: 3f90557c-a16b-4263-ad20-6ac92b817804
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:02 GMT
+ date: Thu, 10 Sep 2020 15:25:28 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '1'
+ x-envoy-upstream-service-time: '2'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 75bd37f50092..7469f636fa37 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -20,9 +20,9 @@ interactions:
hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country
code."}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 94eb9023-1437-499c-ab58-04eca171745f
+ apim-request-id: 0847c5d7-5534-4998-802f-03e9cf303939
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:02 GMT
+ date: Thu, 10 Sep 2020 15:25:29 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3d1a15cecbd2..bd00b8faf4a4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 6f66098d-ff9a-4ef5-8feb-79e1d4d56db6
+ apim-request-id: 0eea6e05-6c5c-4db2-87c9-1c2a413993bb
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:03 GMT
+ date: Thu, 10 Sep 2020 15:25:29 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: '7'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 0fba57b36e7f..2cc9e0cf91a1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"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":"2020-07-01"}'
headers:
- apim-request-id: 56bd9bb6-7488-41a3-bcf2-f232ba40615e
+ apim-request-id: 5b15c634-f906-4d22-88d9-8393e59e170a
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5
- date: Thu, 27 Aug 2020 19:32:03 GMT
+ date: Thu, 10 Sep 2020 15:25:29 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: '7'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3c54f8838322..d24d2227d868 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 75c58116-303f-44c7-9e51-3ab6643858e2
+ apim-request-id: f40eb9ff-e416-4d8e-a435-f3fa550f3f31
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:03 GMT
+ date: Thu, 10 Sep 2020 15:25:29 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 4660f4d7db53..dd1131016c28 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,19 +13,19 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":1.0},"warnings":[]}],"errors":[{"id":"4","error":{"code":"InvalidArgument","message":"Invalid
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 06f0c8cd-a589-4681-b91c-2dc62a11a47c
+ apim-request-id: 84356b28-f27b-4a85-b5eb-d40d000d45d9
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:04 GMT
+ date: Thu, 10 Sep 2020 15:25:30 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -33,5 +33,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 5a50284383e8..320499e7fac2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: d351a823-0b38-4e64-8ec1-59e9220265af
+ apim-request-id: 091fe5c9-8a4d-4ab1-a4e2-996cc8c681b6
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:04 GMT
+ date: Thu, 10 Sep 2020 15:25:30 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: '6'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 68e397ce8399..2d576a96ff5d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 44a64bdb-8d97-4b2f-bae4-12783dfd5683
+ apim-request-id: 32bf7299-b844-4860-9859-b7964cf91253
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:30 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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,9 +44,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -54,11 +54,11 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:30 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -72,23 +72,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 5a16ef2b-475f-435d-af7c-2ff7b3ba8ea6
+ apim-request-id: ea10698c-4f5f-46e4-be68-c56599b85e9d
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:30 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 dcdc20b8daf4..6327ffcc479e 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,19 +12,19 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?model-version=latest&showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 29c7fe41-5ef7-4c99-926e-b6792bc0f955
+ apim-request-id: 68f7bda3-4699-45ff-90a8-e3e60d565a91
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:31:59 GMT
+ date: Thu, 10 Sep 2020 15:25:31 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -32,5 +32,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?model-version=latest&showStats=true
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 ffe37cfe28b9..a9b9a12e2489 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/languages?showStats=false
+ uri: https://westcentralus.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":"2020-07-01"}'
headers:
- apim-request-id: 47af96c0-79c3-4c15-a512-c04846d22165
+ apim-request-id: 1d6297ae-aa01-4be2-b14e-ee98b2bb8d18
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:26 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: '12'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.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 394c72cee91a..bb9defbcd8e3 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: bf520109-b746-4465-a51c-b4c33b7662c1
+ apim-request-id: 96c08c71-cadf-4163-956b-7593455ad31d
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:27 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: '13'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 8fef2c95010e..6b165df22154 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 078d9ac2-8eab-40c7-ad87-f51f3ee47850
+ apim-request-id: f13a8aef-0260-43f7-a356-b1da4e79c8b1
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:00 GMT
+ date: Thu, 10 Sep 2020 15:25:27 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: '14'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3c296c4cbf51..2d712904744b 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,17 +12,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 7d01f61d-a73f-472f-9355-804d93dd353a
+ apim-request-id: 27ea7dad-8279-4324-b951-cec49b5b9e6c
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:27 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 0d96814f85ab..110b7e7ae924 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 24db7660-800e-4838-b722-7ff432fe5db0
+ apim-request-id: 38455895-8147-4579-b0ab-b55a971258a6
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:27 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 960ceb04a02f..dd7a9da3ccef 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,17 +12,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 6023081f-d74f-4f6d-a0b0-90b53fcaf16d
+ apim-request-id: bbc24138-9b5a-4ec7-9e9b-a4545fdfd968
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:01 GMT
+ date: Thu, 10 Sep 2020 15:25:27 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 b295aac8e201..5ba77c768126 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/languages?showStats=false
response:
body:
string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: f600c3ad-6936-4d61-8504-c585dee89dd8
+ apim-request-id: 59502af6-a114-41b2-b011-df638decc926
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:03 GMT
+ date: Thu, 10 Sep 2020 15:25:28 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: '10'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e1a7261b5c0b..56fe2f102e47 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/languages?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":1.0},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: a4530c89-b739-4b50-a2cc-ee213f0210df
+ apim-request-id: 937ab111-f68b-4291-a9ad-b9b8fce67a9f
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:03 GMT
+ date: Thu, 10 Sep 2020 15:25:28 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/languages?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2f87f0a1e062..c88772d7b7a4 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,22 +14,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":9,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"a\xF1o SSN: ***********\",\"id\"\
+ :\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S. Social\
+ \ Security Number (SSN)\",\"offset\":9,\"length\":11,\"confidenceScore\":0.65}],\"\
+ warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - b7b05bef-1c1e-4c6b-a8bf-84c3a401c6b1
+ - 8b866435-695d-4590-897c-c0b4e3f0fdf5
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:37 GMT
+ - Thu, 10 Sep 2020 15:25:29 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:
- - '64'
+ - '58'
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 322c441042fc..cdd61cec1258 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,22 +14,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"an\u0303o SSN: ***********\",\"\
+ id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S. Social\
+ \ Security Number (SSN)\",\"offset\":10,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - 097b0d6d-4a0b-42eb-894f-a40c40898515
+ - 9e54ffab-c069-4af3-bd4a-22a6d3eb99de
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:37 GMT
+ - Thu, 10 Sep 2020 15:25:29 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:
- - '65'
+ - '64'
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 264581653029..1ec764e3f676 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,22 +14,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":7,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\U0001F469 SSN: ***********\",\"\
+ id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S. Social\
+ \ Security Number (SSN)\",\"offset\":7,\"length\":11,\"confidenceScore\":0.65}],\"\
+ warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - 6ba0ba8d-5278-4118-838b-d9bcde8ff3bf
+ - 02984525-d79c-4958-8c90-a614561c3e47
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:38 GMT
+ - Thu, 10 Sep 2020 15:25:29 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:
- - '63'
+ - '54'
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 7ac9fc554c7f..e1e7a8eeb394 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,22 +14,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":13,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\U0001F469\u200D\U0001F469\u200D\
+ \U0001F467\u200D\U0001F467 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"\
+ text\":\"859-98-0987\",\"category\":\"U.S. Social Security Number (SSN)\"\
+ ,\"offset\":13,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\
+ errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - 1e2551dd-a250-48b0-9467-5794386c268e
+ - c1daa593-2253-4e86-a84b-c4e5b8e09ea0
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:37 GMT
+ - Thu, 10 Sep 2020 15:25:30 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -37,7 +40,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '77'
+ - '65'
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 3c7f8df55410..02ac786cddcd 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,22 +14,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":17,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB\u200D\U0001F469\
+ \U0001F3FD\u200D\U0001F467\U0001F3FE\u200D\U0001F466\U0001F3FF SSN: ***********\"\
+ ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S.\
+ \ Social Security Number (SSN)\",\"offset\":17,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - d6fc0237-d843-48af-84f8-2b9797cdb70a
+ - 926ce2f7-c14f-4c56-a5c6-ddf783b758bb
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:38 GMT
+ - Thu, 10 Sep 2020 15:25:30 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -37,7 +40,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '66'
+ - '64'
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 b7a4a06293c3..b6ef0451fa4f 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,22 +14,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB SSN: ***********\"\
+ ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S.\
+ \ Social Security Number (SSN)\",\"offset\":8,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - 1e4fc8d1-3655-46f6-b901-40d6d845adf9
+ - 0769c2d7-6776-488d-b262-1bab7e59f383
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:39 GMT
+ - Thu, 10 Sep 2020 15:25:30 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:
- - '69'
+ - '58'
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 2c0106690aee..1e2914fa00ce 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,22 +14,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\
+ ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S.\
+ \ Social Security Number (SSN)\",\"offset\":8,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - 8a681705-efe1-45e4-a9d5-d94ed8b4180d
+ - beeba1bc-726d-46f9-ba45-e08e4d104f7b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:39 GMT
+ - Thu, 10 Sep 2020 15:25:31 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:
- - '90'
+ - '55'
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 8b35e48eb354..0d9f5b0a0145 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,22 +14,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\
+ ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S.\
+ \ Social Security Number (SSN)\",\"offset\":8,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - 3f67ef37-e3ff-40d7-8f4c-a6cb5e47814a
+ - f2068294-7da4-4aa4-9033-b7e191db411b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:40 GMT
+ - Thu, 10 Sep 2020 15:25:31 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:
- - '62'
+ - '58'
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 e1bea5c14033..1030ebafe28b 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,22 +14,33 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":121,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"o\u0335\u0308\u0307\u0312\u0303\
+ \u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\
+ \u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\
+ \u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\
+ \u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\
+ \u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\
+ \u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\
+ \u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\
+ \u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\
+ \u0323\u0323\u034E SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\"\
+ :\"859-98-0987\",\"category\":\"U.S. Social Security Number (SSN)\",\"offset\"\
+ :121,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\"\
+ :[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - 086748cd-3c3a-4a96-8ff5-54a18ee1da31
+ - 37c3582e-2ca0-4718-9737-790e0a54bfd9
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 16:54:40 GMT
+ - Thu, 10 Sep 2020 15:25:31 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -37,7 +48,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '105'
+ - '87'
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 44c2db3f0fbc..92978a8bb8d3 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,24 +10,26 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":9,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"a\xF1o SSN: ***********\",\"id\"\
+ :\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S. Social\
+ \ Security Number (SSN)\",\"offset\":9,\"length\":11,\"confidenceScore\":0.65}],\"\
+ warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: c1e06ef5-99e6-4dbb-98b5-49c393850029
+ apim-request-id: 2dc194f4-1d23-4cf1-8c43-b74ef2354757
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:26 GMT
+ date: Thu, 10 Sep 2020 15:25:32 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: '55'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 1034262b85ca..4ee64c114162 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,24 +10,26 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"an\u0303o SSN: ***********\",\"\
+ id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S. Social\
+ \ Security Number (SSN)\",\"offset\":10,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: 67e2e849-6c82-4e45-bf6c-9d2d0c8fb9c1
+ apim-request-id: f7400f90-ba18-4616-a467-1ab97ff60bd7
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:27 GMT
+ date: Thu, 10 Sep 2020 15:25:32 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '76'
+ x-envoy-upstream-service-time: '63'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 4c54a3669013..d0ff47c0cb57 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,24 +10,26 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":7,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\U0001F469 SSN: ***********\",\"\
+ id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S. Social\
+ \ Security Number (SSN)\",\"offset\":7,\"length\":11,\"confidenceScore\":0.65}],\"\
+ warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: 2839f9cd-a984-4a35-93fc-04bf01a60278
+ apim-request-id: 5bb49dc5-252e-417f-bccd-0469c4f8a5f8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:28 GMT
+ date: Thu, 10 Sep 2020 15:25:25 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: '63'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 05531c4dbe14..f57d9ed7d63c 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,24 +10,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":13,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\U0001F469\u200D\U0001F469\u200D\
+ \U0001F467\u200D\U0001F467 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"\
+ text\":\"859-98-0987\",\"category\":\"U.S. Social Security Number (SSN)\"\
+ ,\"offset\":13,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\
+ errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: 205151ba-0a8f-487a-a739-8147ba8e26c2
+ apim-request-id: 0a804c29-a982-4dfa-8a30-940f2be02be8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:28 GMT
+ date: Thu, 10 Sep 2020 15:25:27 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '79'
+ x-envoy-upstream-service-time: '54'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 221a6307f04d..e2f152af2f0b 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,24 +10,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":17,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB\u200D\U0001F469\
+ \U0001F3FD\u200D\U0001F467\U0001F3FE\u200D\U0001F466\U0001F3FF SSN: ***********\"\
+ ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S.\
+ \ Social Security Number (SSN)\",\"offset\":17,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: 8cc9f9b3-612c-436d-b612-c2d321e737f9
+ apim-request-id: 7a0681e8-d169-4e25-a1c7-2a2a251bcd10
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:28 GMT
+ date: Thu, 10 Sep 2020 15:25:26 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '73'
+ x-envoy-upstream-service-time: '67'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 dac51a3c746c..b04c3e168c7c 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,24 +10,26 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB SSN: ***********\"\
+ ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S.\
+ \ Social Security Number (SSN)\",\"offset\":8,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: 79412dc8-ab27-4391-8b4e-255a46b70825
+ apim-request-id: dafad298-b079-4b84-8ea8-89102fc4ca83
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:29 GMT
+ date: Thu, 10 Sep 2020 15:25:27 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: '57'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3e0a77bc08cb..e4f495e8b950 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,24 +10,26 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\
+ ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S.\
+ \ Social Security Number (SSN)\",\"offset\":8,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: 0cc02e64-ef60-422c-b902-2959e93e5e1e
+ apim-request-id: 3798780c-a9aa-4f5b-979b-32e7345fa8aa
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:29 GMT
+ date: Thu, 10 Sep 2020 15:25:28 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: '60'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 95bde5c16524..68db81d072bf 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,24 +10,26 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\
+ ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"U.S.\
+ \ Social Security Number (SSN)\",\"offset\":8,\"length\":11,\"confidenceScore\"\
+ :0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: b4367770-eedf-416b-b8ee-a5dd1361ac92
+ apim-request-id: 92cbde59-524d-4d0f-94b9-1988781dbd7e
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:29 GMT
+ date: Thu, 10 Sep 2020 15:25:28 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: '63'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 d574bbb6eec6..3f7c822ca9fc 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,24 +10,35 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":121,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"o\u0335\u0308\u0307\u0312\u0303\
+ \u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\
+ \u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\
+ \u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\
+ \u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\
+ \u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\
+ \u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\
+ \u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\
+ \u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\
+ \u0323\u0323\u034E SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\"\
+ :\"859-98-0987\",\"category\":\"U.S. Social Security Number (SSN)\",\"offset\"\
+ :121,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\"\
+ :[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: 39bf984b-dcfd-45b9-ae83-e4d1fedebc73
+ apim-request-id: f8633202-3932-419a-a72b-0c9723f172ce
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 16:55:30 GMT
+ date: Thu, 10 Sep 2020 15:25:28 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: '89'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f6f2444cc22c..a80cbcdb20b1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - 8c809bfa-dfb7-4940-8f8a-d0a187dee764
+ - e1946ea9-2123-4c59-96d6-2c4366e7bbb2
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=2
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:28 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:
- - '10'
+ - '17'
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 1569790b733b..2d922fa9ff30 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - f91c579b-c63d-44ad-a2cc-27786bfdb06f
+ - 3ed8622b-ff72-4e3a-bd7e-2277e0a6fe57
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=2
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:29 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:
- - '14'
+ - '18'
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 fdba609464e4..a1067e9cbdce 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:29 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 ed3e47989f31..ca1b58908e39 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,20 +14,20 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?model-version=bad&showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
apim-request-id:
- - 35230203-617a-499d-882b-69b5582c029f
+ - 87d4f9a3-9c11-4297-a3c5-f92270325242
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25:29 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'
+ - '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 c040ca3ef458..9dda843d4f9b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 765c9dcf-db9e-4391-a77e-8e4f8183aac5
+ - 22bd7ede-6e32-4045-8042-fe585cabdfd4
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25:30 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:
- - '11'
+ - '13'
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 d4719673fd20..becea7eee7c4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 4fce46a8-a05c-4e0d-b10a-056e0d63f995
+ - 8464d417-c7e5-4207-8dc3-61872d6676d4
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25:31 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:
- - '13'
+ - '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 cda6e588f942..57129811db29 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,9 +16,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I
@@ -26,13 +26,13 @@ interactions:
restaurant had really good food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 8a7afaa7-8dab-40f2-856f-bbb2d03c45c7
+ - c4b3d563-5d4b-4b6c-82b0-9dd7674b0703
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '8'
+ - '7'
status:
code: 200
message: OK
@@ -61,22 +61,22 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 3e2cdc27-5e43-4651-abe5-0e42ca083d68
+ - d0950eb8-041e-4906-877c-fe4db4914c49
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25:31 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -84,7 +84,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '11'
+ - '9'
status:
code: 200
message: OK
@@ -105,9 +105,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I
@@ -115,13 +115,13 @@ interactions:
restaurant had really good food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - b3751022-8e82-474e-ab65-15604c0e9ffd
+ - 6db4b43e-c1a2-4e6d-ad7f-8b28c33037e4
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25:31 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -129,7 +129,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '8'
+ - '9'
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 566cf263ce9c..89c766e52363 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - b5faefe5-0260-456d-94b3-c9f5714dc861
+ - 88bc783a-2e40-4449-bd38-dde2b154e3c9
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:07 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '2'
+ - '1'
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 4aa35b1244bf..878f483aad47 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - ba2c1c33-7cfd-405f-a86e-41747a42f05a
+ - ed09bc77-cc79-41da-a6b3-259811301e57
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:07 GMT
+ - Thu, 10 Sep 2020 15:25:32 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:
- - '2'
+ - '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 543eeae5055e..e544f13ca93a 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
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":"2020-07-01"}'
headers:
apim-request-id:
- - 02f05987-1d24-48b1-8f3c-84f9857bd73c
+ - 7b687a70-5306-41f4-90aa-9a63d7b20b59
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:08 GMT
+ - Thu, 10 Sep 2020 15:25:32 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_warnings.yaml
index f997cc5e6001..1acbca22da65 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_warnings.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_warnings.yaml
@@ -14,9 +14,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["Thisisaveryveryverylongtextwhichgoesonforalongtimeandwhichalmost"],"warnings":[{"code":"LongWordsInDocument","message":"The
@@ -24,13 +24,13 @@ interactions:
will be truncated and may result in unreliable model predictions."}]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - dd291596-55f6-432a-a98c-bd79ae69101f
+ - 31d92c05-4edc-489e-9660-3a07400c21e5
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:07 GMT
+ - Thu, 10 Sep 2020 15:25:28 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:
- - '7'
+ - '12'
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 9e8048f4d199..5bfdbff85205 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 10e10210-ca39-4490-ae96-459f344ed8b0
+ - 2bd53b92-4e6a-4ec2-863d-b5cc8175942c
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25:29 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'
+ - '5'
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 d68bfe892a34..a1067e9cbdce 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25:29 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 ea52f6f907fa..a6fbdafb41cf 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -27,11 +27,11 @@ interactions:
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 74c5949f-4d41-4437-8364-fbb292b93de5
+ - bcb196c3-2e50-4dfb-ab0f-636b4124e090
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:05 GMT
+ - Thu, 10 Sep 2020 15:25:29 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 cc8258ede163..3379478247c4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -25,13 +25,13 @@ 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"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 34c0d335-a14e-4cc8-965a-451d0d93df60
+ - 98503875-d765-4b57-b41c-d37b2657966f
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:05 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '6'
+ - '10'
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 c577efe592f2..a08bec562eb1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -24,11 +24,11 @@ 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"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - ae0efed4-0635-4804-80c9-189b4a8b9e67
+ - 73439835-a85f-47f4-9dad-f3228d187b19
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '1'
+ - '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 3f0985fb2ff3..e2c52d77392b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid
@@ -24,11 +24,11 @@ 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"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - a765f7bd-3f35-4288-962f-c24887183a55
+ - d6f5c34c-101d-4230-a7be-6eaa8a10ce1b
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '1'
+ - '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 305e78dc1c55..f01019ab8330 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?model-version=latest&showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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","the CEO of Microsoft"],"statistics":{"charactersCount":35,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 452a909d-1ffd-4e2c-b221-ab27332acc4a
+ - ac49ec7d-b965-4c40-ab98-99e223600da1
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:07 GMT
+ - Thu, 10 Sep 2020 15:25:30 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 a855727ff57c..d8c523cfaa91 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - 1a5d9f0b-17de-4307-925d-70df21b90419
+ - ac015c9b-7dc0-4654-ba39-a4860c47cb84
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25:30 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:
- - '6'
+ - '8'
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 b567edfbabdb..f130bb4fad72 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - c63a6ec1-1f9e-4bd0-8066-47aa408b5d58
+ - 4ffc7f98-d939-4ac8-a1bd-b622942921c0
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=5
date:
- - Thu, 27 Aug 2020 19:32:07 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '9'
+ - '8'
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 7b09521e001f..917bcba5f92e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"0","keyPhrases":["Test","cls","endpoint"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 95e49418-cd74-4fdc-99bc-3b4ba54e4554
+ - 0ff5ceb2-79ad-4da4-84a5-b6a7b86cd4da
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:07 GMT
+ - Thu, 10 Sep 2020 15:25:31 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'
+ - '7'
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 d7435dd42bf0..d5e4de4e92b6 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"0","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"1","keyPhrases":["Microsoft
@@ -27,13 +27,13 @@ interactions:
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - c9e6c66b-0dd7-4c1d-b8c6-bde37ea9e17f
+ - 6df0e18c-639a-4d2d-82f5-f6b49ba6e886
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=2
date:
- - Thu, 27 Aug 2020 19:32:08 GMT
+ - Thu, 10 Sep 2020 15:25:32 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:
- - '10'
+ - '9'
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 a2d29b70c128..dfe5c0cad2ba 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 628c5d5a-01ba-477a-b0a5-e6a9cec6d8a3
+ - e4d0dca5-c4e6-4aee-a79d-12d77e868c7b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:08 GMT
+ - Thu, 10 Sep 2020 15:25:31 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:
- - '13'
+ - '10'
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 835ca1f4be61..00f13733f476 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - f09acd7a-a38a-457d-8f5d-1441279fef76
+ - 6f00b15e-a833-4146-9429-5e2301c66752
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:03 GMT
+ - Thu, 10 Sep 2020 15:25:32 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:
- - '10'
+ - '11'
status:
code: 200
message: OK
@@ -60,9 +60,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -72,7 +72,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25:32 GMT
status:
code: 401
message: PermissionDenied
@@ -93,22 +93,22 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 3e46455a-dcaa-4a75-b1a4-bc47e60382d4
+ - 4b9a4969-450c-4c15-9c14-fee96bff8f64
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25:32 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -116,7 +116,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '10'
+ - '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 74c70091d161..1e9c6e5b61ca 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?model-version=latest&showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - be3aa999-8aee-4074-acbf-7f460b39ca22
+ - 8fc4daf7-3d8b-4119-bdc4-ab1b22ceb90b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '6'
+ - '8'
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 65367345780b..6de11b046dd9 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,21 +13,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"0","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 03a7a93c-8aed-4c4b-8b6e-3e3dfa3aa5c6
+ - dd98b5c5-9034-494f-8984-1833257b6626
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25: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'
+ - '11'
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 7d0455583e70..07d02f84ba7b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 31ba95e0-e8ca-43a1-933e-d6de696f076a
+ - ebf4e15b-572f-45a5-80b5-8f689cd41467
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:04 GMT
+ - Thu, 10 Sep 2020 15:25: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'
+ - '4'
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 9e4a3bb602be..274642edba3b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 6e63dfb6-98c6-4c68-82f5-9860dfb2f23c
+ - 6bee3851-f5df-4b1b-9b19-2d5c6b045d53
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:05 GMT
+ - Thu, 10 Sep 2020 15:25:31 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:
- - '11'
+ - '10'
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 016c14c44643..9f747fa9f4ea 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - 5698f2bc-a52f-4900-b134-b6069ff194ae
+ - de71a837-94bb-474d-9f67-0de5cefff8aa
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:05 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '15'
+ - '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.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml
index cf7387472912..055f8c603a6e 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,9 +16,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"0","keyPhrases":["This was the best day","my"],"warnings":[]},{"id":"1","keyPhrases":["like
@@ -26,13 +26,13 @@ interactions:
good as I hoped","The restaurant was"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - dcc815ee-6fb8-411b-a0de-11c47ad894b9
+ - 5a129144-7f99-44bf-9b4f-03394b69b8a1
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '7'
+ - '6'
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 292d60c1669b..6a437c834d6f 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,9 +16,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I
@@ -26,13 +26,13 @@ interactions:
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 896079b0-89c7-4e37-87db-37bf52b61227
+ - 85269f44-9054-4f21-96ab-abc5209741bc
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '9'
+ - '20'
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 3ee813d50be0..3e13ec92723e 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,9 +16,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"should take my cat\
@@ -28,13 +28,13 @@ interactions:
:[],\"modelVersion\":\"2020-07-01\"}"
headers:
apim-request-id:
- - e774b347-2da9-4aab-8e32-85a9f8944c9e
+ - 494c0cc6-218e-45f0-888c-6bca5dcc0fe3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:07 GMT
+ - Thu, 10 Sep 2020 15:25:33 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:
- - '7'
+ - '6'
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 107368271aa3..c9fec271de16 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,9 +16,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"I should take my cat\"\
@@ -28,13 +28,13 @@ interactions:
:\"2020-07-01\"}"
headers:
apim-request-id:
- - 322052c8-551d-4aa0-8f91-35d612dc91e9
+ - 28a03393-50c4-4bba-adb2-100cba851bcd
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:06 GMT
+ - Thu, 10 Sep 2020 15:25:32 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:
- - '10'
+ - '8'
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 d716556b8fc1..6134f780a515 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 72525c4e-9e54-4aa2-bc53-046e905c9a0a
+ apim-request-id: 4a29bb55-750e-486b-81b2-835da407a58c
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:33 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: '13'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=true
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 36eb337dfdf1..9a5908532d7c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 38098dc0-f282-446c-b5df-922dcf78775d
+ apim-request-id: d84779b8-28a7-4b57-9db2-b6452b758f42
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:33 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: '7'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 58b22b264326..9439c2cc8572 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:08 GMT
+ date: Thu, 10 Sep 2020 15:25:33 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version.yaml
deleted file mode 100644
index ef0a9c8aef79..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "Microsoft was founded by Bill Gates.",
- "language": "en"}]}'
- headers:
- Accept:
- - application/json
- Content-Length:
- - '94'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.0b5 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/keyPhrases?model-version=old&showStats=false
- response:
- body:
- string: '{"error":{"code":"InvalidRequest","message":"Specified Model version
- is incorrect. Allowed values are latest,2019-10-01"}}'
- headers:
- apim-request-id: c6647179-c94e-41c0-9364-2f5a5b8a02db
- content-type: application/json; charset=utf-8
- date: Thu, 23 Apr 2020 15:23:37 GMT
- strict-transport-security: max-age=31536000; includeSubDomains; preload
- transfer-encoding: chunked
- x-content-type-options: nosniff
- x-envoy-upstream-service-time: '3'
- status:
- code: 400
- message: Bad Request
- url: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/keyPhrases?model-version=old&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 011d887c35e7..145a64837e4b 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,23 +10,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?model-version=bad&showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
- apim-request-id: b10aa9f0-fd79-4cf9-827a-ad2007266291
+ apim-request-id: 0dc89258-4d23-4896-95dd-11d6ab9ce582
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:08 GMT
+ date: Thu, 10 Sep 2020 15:25:33 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?model-version=bad&showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2332e2766a11..072a04df85ee 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,17 +754,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: bfa5eacb-8f89-486a-8652-286ced10984d
+ apim-request-id: ff7b3ce1-7c36-46b6-aea0-dc0b25f67588
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:09 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 43fbb4f31abb..43a65c2a727c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: c320967b-855b-4d97-ab37-fa6c1b4434e3
+ apim-request-id: 9cbbe9e8-1361-4548-a3cc-2a3da0699243
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:10 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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: '10'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f444df340973..4147c29618a7 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,27 +12,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I
did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["The
restaurant had really good food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 03eeac48-4618-495f-a5c6-252ecd1ffd29
+ apim-request-id: 67f454f0-784e-4523-86fc-60f6fc47c3d2
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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: '13'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -46,26 +46,26 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 16dcb319-f28a-4cf2-b842-a7de3c9c45fa
+ apim-request-id: 6e015104-fa27-416e-9c04-b9ff6885af04
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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: '10'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -79,25 +79,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I
did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["The
restaurant had really good food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 00049009-5234-40ea-93a4-ae0ae3ecbe55
+ apim-request-id: 92bfb099-411c-4fbd-aee3-c3ac352bf5e3
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:31 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_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 ece414ae86be..b5e98e473831 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 55f3b42a-8ede-453a-af5b-b52ed52d9ac7
+ apim-request-id: 6f5f409c-9bc2-4a89-ac6f-2f0db34b04e1
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:31 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '1'
+ x-envoy-upstream-service-time: '2'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 324a8fa943cd..d1fe999c699e 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 0fe75926-9003-48b7-a39e-5dd2f7406593
+ apim-request-id: 1f1b72e8-9f32-49f2-867d-b55e879797ac
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:32 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 eae399967909..cdc8ed9591e2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
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":"2020-07-01"}'
headers:
- apim-request-id: 6c350159-1e50-484e-9021-110ccaf4ae95
+ apim-request-id: fd311f40-9773-4330-b8f9-b0caf9e22de8
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:32 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-preview.2/keyPhrases?showStats=false
version: 1
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_warnings.yaml
index 4b0e58d5143b..75195a89b242 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_warnings.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_warnings.yaml
@@ -10,25 +10,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["Thisisaveryveryverylongtextwhichgoesonforalongtimeandwhichalmost"],"warnings":[{"code":"LongWordsInDocument","message":"The
document contains very long words (longer than 64 characters). These words
will be truncated and may result in unreliable model predictions."}]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 5658fa9e-daa9-41ed-a59f-4631ec3ec39e
+ apim-request-id: 57aaa823-90b4-46e4-909a-9b65ee5ae130
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:33 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 56144b377506..09d15822170e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: e30f5294-c146-49c9-bc32-1ceb00dc99a1
+ apim-request-id: 79d43271-929f-4fd8-bd8c-da4c87a2c5a2
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:33 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 93b4a3421249..9439c2cc8572 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:33 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 d2d39cba918c..441777ee2032 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -22,9 +22,9 @@ interactions:
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 785bc67c-d34b-4033-a443-ab63d2481dc6
+ apim-request-id: ebca86ff-ce40-4868-8a29-57340f41d0f2
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:34 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -32,5 +32,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3038121dfbec..52d59da728d8 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,19 +11,19 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
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"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 35beb60a-646c-4d62-912d-262a93384e6f
+ apim-request-id: c0e759ec-68bc-4673-822b-23d7658c1d55
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:08 GMT
+ date: Thu, 10 Sep 2020 15:25:33 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -31,5 +31,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 9942ac5c81f6..3516a0d935bb 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,18 +10,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
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"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: b2fd402d-10ee-4fb7-8097-718b34a4156a
+ apim-request-id: c0c24e4d-07ea-4fa4-8e81-75422f534ebe
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:08 GMT
+ date: Thu, 10 Sep 2020 15:25:34 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 5b5b8c9934cb..8a9cc184a329 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,18 +10,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
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"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 057b77c4-6fdf-47ac-adbe-bb8234073fef
+ apim-request-id: f7cdd6cd-c34c-40bc-bf98-542cfaf114c6
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:09 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 94a1fa7797e5..478551f645c8 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?model-version=latest&showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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","the CEO of Microsoft"],"statistics":{"charactersCount":35,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 0b00bf17-5026-4ecf-a2f6-630ae3ee2e99
+ apim-request-id: 0cfa5c84-743f-4f0f-9304-c23f0d3f863b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:09 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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: '6'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?model-version=latest&showStats=true
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 ff5fc0e54fb7..8aa71bdb71da 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,19 +12,19 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 96fb143a-3d2b-47cd-8de4-d65b0a3ba6dd
+ apim-request-id: 1acfacc6-1e03-475c-a756-2bd1e4bdc9c0
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:04 GMT
+ date: Thu, 10 Sep 2020 15:25:33 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -32,5 +32,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e7bf8083b833..e94d91b49bff 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 7637794f-baa4-4c53-91b4-e17b451137c9
+ apim-request-id: 5636fd78-e52e-46c9-bb0b-8f31c729dea5
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:32 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: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3228feb6b61f..891b7bd88aab 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,17 +10,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"0","keyPhrases":["Test","cls","endpoint"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: d931d4b3-f9e0-41a6-ad28-3cf805beca41
+ apim-request-id: d07c389b-d130-42c6-ab0f-410e03cca5ba
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:05 GMT
+ date: Thu, 10 Sep 2020 15:25:32 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 1f87d36f4ce4..bbddc3f77149 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"0","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"1","keyPhrases":["Microsoft
@@ -22,16 +22,16 @@ interactions:
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 330fb0d2-efbb-4ad7-afb4-45afe937aa84
+ apim-request-id: 5b98d0de-db61-44c8-8e11-a9b81795a420
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:34 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: '9'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 5a5f31264bcf..58037121fe51 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 9a3dac39-dc9e-4348-9c53-2e5645778a34
+ apim-request-id: a117ad95-9c0f-4a26-8946-77192b64d2bc
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:33 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: '11'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 671a2f670d26..bb91593c9bfe 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: b5314678-cf9f-4a47-a356-f15088e76417
+ apim-request-id: f123f43c-48f3-4e3d-b7bb-ac936d7c0fa2
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:34 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: '11'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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,9 +45,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -55,11 +55,11 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:34 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -73,24 +73,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: a2ce2f43-b094-40c6-98e4-4406904ae07f
+ apim-request-id: 2fbe9242-932d-47c5-8eed-bb2416b85b1f
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:34 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: '10'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 7b0d14310c5e..19b3524100e9 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,19 +12,19 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?model-version=latest&showStats=true
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: d425b732-39e5-487d-a95e-f061b173d29c
+ apim-request-id: e6557464-9742-4169-b902-362898f59419
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:34 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -32,5 +32,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?model-version=latest&showStats=true
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 610f9446b954..a01961f9d78e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"0","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 762e919f-014a-428c-ba41-bdb0b00dfec0
+ apim-request-id: 6f291298-a231-479c-a7de-acb11f166610
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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: '10'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.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 86933d523f58..d78452d5a880 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 9fdefad7-45a7-4092-ba57-1748b69c408f
+ apim-request-id: 5f91301b-76f7-45f6-a66f-477a27bfd477
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:08 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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: '6'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 1dbf2a321776..8adc1bc8a909 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 558b6377-7393-4c35-9203-00d4e35f0c55
+ apim-request-id: 2ed88e15-e888-43df-b5fc-afbe9aa888c0
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:08 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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: '9'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e25301522bec..05646a532111 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 4447d989-adaa-43b8-9719-cc72812ac927
+ apim-request-id: 3ef6d85f-968d-4bb6-8693-a9ce377cb239
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:08 GMT
+ date: Thu, 10 Sep 2020 15:25:36 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: '9'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e7c2781647c0..ecafe37dd79f 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,25 +12,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"0","keyPhrases":["This was the best day","my"],"warnings":[]},{"id":"1","keyPhrases":["like
the hotel we stayed","It was too expensive","I did"],"warnings":[]},{"id":"2","keyPhrases":["as
good as I hoped","The restaurant was"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 5f8ea8ba-d7da-43dd-b643-1d566940b60e
+ apim-request-id: 47eaef31-113a-4236-b3ff-2dc6a96c660b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:36 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: '10'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 b90156f4c796..bbc1d053340b 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,25 +12,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I
did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good
food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 79b17942-eb17-44ba-86be-b259e82f9560
+ apim-request-id: 6ab32731-e46c-430e-bb83-1bfee510dc34
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:06 GMT
+ date: Thu, 10 Sep 2020 15:25:34 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: '8'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 c8adc01754a0..f39b53042dae 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,9 +12,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"should take my cat\
@@ -23,16 +23,16 @@ interactions:
3\",\"keyPhrases\":[\"\u732B\u306F\u5E78\u305B\"],\"warnings\":[]}],\"errors\"\
:[],\"modelVersion\":\"2020-07-01\"}"
headers:
- apim-request-id: 9f43f6eb-e9b8-401d-9e68-790910d15a95
+ apim-request-id: d45232cf-029b-49e8-9e91-996908483d9b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:34 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: '10'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 28ff9bbcedf9..a383bb930281 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,9 +12,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/keyPhrases?showStats=false
response:
body:
string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"I should take my cat\"\
@@ -23,16 +23,16 @@ interactions:
:[\"\u732B\u306F\u5E78\u305B\"],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\
:\"2020-07-01\"}"
headers:
- apim-request-id: c32c9383-ddfd-4259-959b-7e2b52870d15
+ apim-request-id: 2a4daecb-8707-44eb-a1f3-d70e4d9776c3
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:07 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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: '9'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/keyPhrases?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 bc734b9a7954..e744e27728a5 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -34,13 +34,13 @@ interactions:
Allen","category":"Person","offset":52,"length":10,"confidenceScore":0.98}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 5c7589b2-b419-4825-b59c-50e65461301a
+ - 98c106c9-f845-498a-99bc-1cf4c3f5e47d
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:08 GMT
+ - Thu, 10 Sep 2020 15:25:35 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:
- - '74'
+ - '71'
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 ec7aadacf1ff..4e9a810bd595 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -34,13 +34,13 @@ interactions:
Allen","category":"Person","offset":52,"length":10,"confidenceScore":0.98}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - a36aa787-18cd-4463-96cf-f74b47127196
+ - 998d7625-deb8-4d19-a162-b4afaa587dbc
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:08 GMT
+ - Thu, 10 Sep 2020 15:25:33 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:
- - '76'
+ - '68'
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 ed971840d859..ba103eeee209 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:08 GMT
+ - Thu, 10 Sep 2020 15:25:33 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 610fb2095ed4..1a718bed0f01 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,20 +14,20 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
apim-request-id:
- - 9feeeeba-1c5f-4957-8efa-ff0913ffee4e
+ - b4b4ec61-3762-4412-b463-000ee6c4554b
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25: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'
+ - '5'
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 592ef2aaaab1..c7bf12621680 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 75d1262f-3bc1-4276-9744-e9a47c8024ff
+ - 0d0d63b4-828d-4fa1-96b9-7611e2c7d930
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:10 GMT
+ - Thu, 10 Sep 2020 15:25:34 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:
- - '11'
+ - '19'
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 5cdd51ad3f3e..1d2c575831a2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - d988e058-6f8e-4b79-9f76-dfade8770692
+ - 25bcc127-2be7-461e-a8ca-59c1a1857f22
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25:34 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:
- - '18'
+ - '13'
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 90429b7d87bf..b4bb634f0414 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,9 +16,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[{"text":"I will go to the park","category":"Product","offset":0,"length":21,"confidenceScore":0.51}],"warnings":[]},{"id":"2","entities":[{"text":"hotel
@@ -26,13 +26,13 @@ interactions:
restaurant had really good food","category":"Organization","offset":0,"length":35,"confidenceScore":0.47}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 05323e44-7781-475e-9d19-1bfa9a91c616
+ - 4b44f707-8f61-4d0b-b7a4-01329adb9f42
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '62'
+ - '67'
status:
code: 200
message: OK
@@ -61,21 +61,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 4d7e9beb-c4fe-417d-8fba-0374409dd4bd
+ - 09a1f126-8418-43a1-8d53-4fb84eafdb75
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25:36 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:
- - '75'
+ - '62'
status:
code: 200
message: OK
@@ -104,9 +104,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[{"text":"I will go to the park","category":"Product","offset":0,"length":21,"confidenceScore":0.51}],"warnings":[]},{"id":"2","entities":[{"text":"hotel
@@ -114,13 +114,13 @@ interactions:
restaurant had really good food","category":"Organization","offset":0,"length":35,"confidenceScore":0.47}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 9bdbaa9a-df0b-4510-a833-688a851a10ed
+ - e17217c4-41dd-46c1-9f9c-0066ad223b4c
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25:36 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 5672448f3901..ac3d3105d339 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
apim-request-id:
- - 5c0880da-b4e7-42a1-8369-1a8636bd9f71
+ - 995b0135-3e52-41da-812e-68ba2143de1b
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '1'
+ - '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 963eb4b2957b..32e4d6dfa491 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
apim-request-id:
- - f87fb7b3-6c37-46c5-b82c-0c6cfb583299
+ - 809e968e-f07f-4660-be01-37d630c4a652
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:10 GMT
+ - Thu, 10 Sep 2020 15:25:36 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 c54cf641bd7c..6180e05f791f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?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":"2020-04-01"}'
headers:
apim-request-id:
- - fdc7330c-dd28-4921-83f2-477f0cf019e4
+ - 53c33271-e47c-4e1d-a625-d92e145cf186
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:10 GMT
+ - Thu, 10 Sep 2020 15:25:37 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 d691e6d8ca35..9a409e3e7eb4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 41bacd8d-52f1-4d60-824c-0a3ac1eb8c83
+ - 6de3fc69-11f7-42c5-8ed1-3e537f1db633
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '71'
+ - '62'
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 02de8b55f9b7..31a8bc2da8b0 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 172cfafc-6ec5-4d29-8882-e64afa579c2f
+ - 6bdd2d10-0f99-4148-a20d-1cecd21edacc
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:10 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '5'
+ - '3'
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 9a38115b92ec..72730db3b3e5 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25:32 GMT
status:
code: 401
message: PermissionDenied
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 37f1c4400183..e1d0f9d1062d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -28,11 +28,11 @@ interactions:
text is empty."}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - d73521c0-24e7-4272-8117-6a9f3e7df7ed
+ - 2fddde80-df90-4dc7-a751-99815449d956
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25:32 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 19703763f36b..17e971071559 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":0.8},{"text":"Bill
@@ -30,13 +30,13 @@ interactions:
text is empty."}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - f81a2833-a059-48a7-b0eb-350fb2fee079
+ - c47aedff-ec89-4e1e-a5be-771cc61573f3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:12 GMT
+ - Thu, 10 Sep 2020 15:25:33 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:
- - '94'
+ - '95'
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 8867317528bb..bf6fc5c98bcc 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?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: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans"}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 36835a20-0031-4f6c-8101-3daad544ee13
+ - af768456-d8b8-45f7-b1d5-8a65c7a91f7d
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:12 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '1'
+ - '3'
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 56a12e123dca..c22eca8b262c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?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: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans"}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - c752207e-6636-42f7-b01c-0464fa3aabe8
+ - 4f514355-be8c-44a1-9e19-131364d7f40d
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:12 GMT
+ - Thu, 10 Sep 2020 15:25:34 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 85b49c727fa4..784bd8d7d2d4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":0.76},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.66},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.38}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 29282959-f5f5-425e-916c-61989326b2eb
+ - 3e7f293e-cb61-451e-93d2-7ac6845c02ca
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:34 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:
- - '58'
+ - '48'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_length_v3_categorized_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_length_v3_categorized_entities.yaml
index a890f3a988db..dfb379c54c2c 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_length_v3_categorized_entities.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_length_v3_categorized_entities.yaml
@@ -14,9 +14,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false
response:
body:
string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.82},{"text":"Bill
@@ -24,13 +24,13 @@ interactions:
Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.89}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 8ebab42d-0090-4d36-8e52-721f4c4b87d7
+ - 9d721e6b-a9c9-4b33-9e8b-2c0d7dee84d0
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 20:56:21 GMT
+ - Thu, 10 Sep 2020 15:25:34 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:
- - '82'
+ - '70'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset_length.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset_length.yaml
index 260f798ecc10..032662065bad 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset_length.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset_length.yaml
@@ -14,9 +14,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":0.82},{"text":"Bill
@@ -24,13 +24,13 @@ interactions:
Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.89}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - c588af7e-ff6c-4bca-9be0-bc50b81df611
+ - 1c145e85-53f7-4602-9bd4-634d0cee44ce
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 18:31:19 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '80'
+ - '71'
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 e1b33f29fa59..ac1bf2e4d897 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
apim-request-id:
- - 18af93af-808d-4053-977c-85825e531000
+ - 3217b07f-f1b2-4df0-b743-2343931e467c
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '66'
+ - '64'
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 fdb6f00b078c..08501250ce60 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
apim-request-id:
- - db897d3d-3817-4e49-a733-6e13b995e0ff
+ - 22284581-5830-4276-8cde-baed63df9268
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=5
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '63'
+ - '58'
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 bf9885948611..dda49f11f726 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - cbe49b39-fe2c-4be7-9680-5b6e3c82efa5
+ - 15aec081-483f-46a3-9d40-ab503d9708cb
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25:36 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:
- - '92'
+ - '53'
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 678be3f15674..6f2d88f77545 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":0.81},{"text":"Bill
@@ -34,13 +34,13 @@ interactions:
text is empty."}}}],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 6fce1383-5f90-486e-8d15-695fd8925073
+ - f436a1ae-2cfc-4b3f-85f9-0bb680c1b2c5
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:10 GMT
+ - Thu, 10 Sep 2020 15:25:36 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:
- - '112'
+ - '119'
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 b4db3184f571..03105243abd2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - ac689e27-df80-4243-a238-220359a724e2
+ - 4b9f04db-8b19-459d-9c64-abb3c616758b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '79'
+ - '72'
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 81ac11a9bc67..0569370260b2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 71944a34-5635-41fc-ba73-ca70dbe9d3ad
+ - 54f01162-3fe6-47a1-bfa5-fd18e7186fc6
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '109'
+ - '68'
status:
code: 200
message: OK
@@ -59,9 +59,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -71,7 +71,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25:37 GMT
status:
code: 401
message: PermissionDenied
@@ -92,21 +92,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 6f2d0b0a-5963-48c7-b168-ee8b9de6ca6a
+ - 6f3d7c49-bee9-4b85-92b8-78e03a5f6375
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:12 GMT
+ - Thu, 10 Sep 2020 15:25:37 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -114,7 +114,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '74'
+ - '72'
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 5f92c7f7d98b..b5847a0a6770 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
apim-request-id:
- - 6b8ca7ad-ccd3-4c67-88d9-b0f5e2a53029
+ - 1421a1d8-2ece-4f9f-8443-fb95f8d05b22
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25:35 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'
+ - '57'
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 68753c5fe26e..51c9bacd6afd 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,21 +13,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false
response:
body:
string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 82cb67cb-e799-42df-aaee-5f1cc466d09c
+ - 9b97e80a-f203-40b6-8d06-46959fcb737e
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:08 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '61'
+ - '54'
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 5375e998225c..8dee81b201a8 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 375d6616-7707-452d-a54e-154a006f8214
+ - 8605019b-5144-4bd9-bfdc-3b5a284aab70
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25:36 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 347bb7210fb2..170e4cae33e2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - da382525-9a84-4441-9955-d1331a9ed820
+ - e9c67300-0aae-4d5f-852e-c0ed8b06f772
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:09 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '109'
+ - '90'
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 c89919fc1ca1..69aeb110903f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.76}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.71}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - dd5575ec-9299-4239-980f-800c14732945
+ - c17f430b-36d9-4d22-84db-00a83d6ab996
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:10 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '108'
+ - '79'
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 e9cdef8915d1..b555fb469d49 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - ecb58321-1cdf-4e40-9714-b0bcd401ae36
+ - ee508883-8c13-4f6c-a783-1bc215982db0
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:10 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '29'
+ - '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_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 4ee3a365d4ea..13627064b867 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,22 +16,22 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[{"text":"I will go to the park","category":"Product","offset":0,"length":21,"confidenceScore":0.51}],"warnings":[]},{"id":"2","entities":[{"text":"hotel
we stayed at","category":"Location","offset":19,"length":18,"confidenceScore":0.69}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - 4da74c28-89db-40bd-bedd-de77760ebfc4
+ - af165bfb-b4f4-4997-b003-d3fba0b01a5d
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '80'
+ - '78'
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 3d103f70b8c1..45733f921f38 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,21 +16,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
apim-request-id:
- - a3b9ca91-f27b-4ae6-abcf-b252c3bddc9d
+ - 9d62daec-108e-42cb-8db3-01ee3a44658f
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:11 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '22'
+ - '18'
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 b5bee6249e31..d51c17d199d2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: "{\"documents\":[{\"id\":\"1\",\"entities\":[],\"warnings\":[]},{\"\
@@ -30,13 +30,13 @@ interactions:
}"
headers:
apim-request-id:
- - e258fd45-27b4-4719-82aa-24fb6ef40014
+ - 6f3521e3-668a-4371-b5bc-bf9fbe7a9fc8
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:12 GMT
+ - Thu, 10 Sep 2020 15:25:38 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:
- - '79'
+ - '61'
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 710f4f55e57d..3ec42e47b2f9 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -29,16 +29,16 @@ interactions:
Gates","category":"Person","offset":37,"length":10,"confidenceScore":0.86},{"text":"Paul
Allen","category":"Person","offset":52,"length":10,"confidenceScore":0.98}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: dd296642-7582-4a5c-9fe6-61de4997734f
+ apim-request-id: 90b0f0c7-a4fb-4755-ad37-c14723beabe3
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:12 GMT
+ date: Thu, 10 Sep 2020 15:25:38 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: '63'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3cb14f66b9c6..00391e339e97 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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
@@ -29,16 +29,16 @@ interactions:
Gates","category":"Person","offset":37,"length":10,"confidenceScore":0.86},{"text":"Paul
Allen","category":"Person","offset":52,"length":10,"confidenceScore":0.98}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: de4fcda5-7b57-4602-860a-8d9ccf9414bd
+ apim-request-id: 3a74806b-c5fd-46ab-8cc6-101a63d4dc1d
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:13 GMT
+ date: Thu, 10 Sep 2020 15:25:39 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '79'
+ x-envoy-upstream-service-time: '61'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3e09b23c9297..3ade89da19ef 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:13 GMT
+ date: Thu, 10 Sep 2020 15:25:39 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version.yaml
deleted file mode 100644
index 8aa4226f14bf..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "Microsoft was founded by Bill Gates.",
- "language": "en"}]}'
- headers:
- Accept:
- - application/json
- Content-Length:
- - '94'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.0b5 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/entities/recognition/general?model-version=old&showStats=false
- response:
- body:
- string: '{"error":{"code":"InvalidRequest","message":"Specified Model version
- is incorrect. Allowed values are latest,2020-04-01,2019-10-01,2020-02-01"}}'
- headers:
- apim-request-id: 2bd6d988-808e-44d1-addd-1511712a375e
- content-type: application/json; charset=utf-8
- date: Thu, 23 Apr 2020 18:32:43 GMT
- strict-transport-security: max-age=31536000; includeSubDomains; preload
- transfer-encoding: chunked
- x-content-type-options: nosniff
- x-envoy-upstream-service-time: '4'
- status:
- code: 400
- message: Bad Request
- url: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/entities/recognition/general?model-version=old&showStats=false
-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 f237258b222a..243eda424a2c 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,23 +10,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
- apim-request-id: a3148e5a-b74f-4e14-a06d-3802cd84ef1c
+ apim-request-id: 5d6a348e-e409-469d-82fe-c0b5e2f9706b
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:11 GMT
+ date: Thu, 10 Sep 2020 15:25:39 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: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 8a155e8623c8..3f0dd8a72cef 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,23 +754,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 701ff04c-68fe-4356-8186-d5b4df549a16
+ apim-request-id: af18c421-a232-4c78-8d4a-b12013308155
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:11 GMT
+ date: Thu, 10 Sep 2020 15:25:40 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e40764e795ab..a177f5278c18 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: e8d960e7-2494-46fd-9eed-ba847f61dd84
+ apim-request-id: ccbe9ab1-e34b-4557-b3c5-aff95e2ad478
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:14 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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: '10'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 d87d3479e641..19802b985209 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,27 +12,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[{"text":"I will go to the park","category":"Product","offset":0,"length":21,"confidenceScore":0.51}],"warnings":[]},{"id":"2","entities":[{"text":"hotel
we stayed at","category":"Location","offset":19,"length":18,"confidenceScore":0.69}],"warnings":[]},{"id":"3","entities":[{"text":"The
restaurant had really good food","category":"Organization","offset":0,"length":35,"confidenceScore":0.47}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: e83bc5a0-3a17-4ac1-9621-76a923daf7f6
+ apim-request-id: c316c987-3134-4157-a5a5-d8839f17c21e
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:14 GMT
+ date: Thu, 10 Sep 2020 15:25:36 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: '65'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -46,25 +46,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 7070e541-5c97-4463-842c-cb6b5f5c4039
+ apim-request-id: 22a139b9-ceb7-43dd-bee1-1209484276a5
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:14 GMT
+ date: Thu, 10 Sep 2020 15:25:36 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: '67'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -78,25 +78,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[{"text":"I will go to the park","category":"Product","offset":0,"length":21,"confidenceScore":0.51}],"warnings":[]},{"id":"2","entities":[{"text":"hotel
we stayed at","category":"Location","offset":19,"length":18,"confidenceScore":0.69}],"warnings":[]},{"id":"3","entities":[{"text":"The
restaurant had really good food","category":"Organization","offset":0,"length":35,"confidenceScore":0.47}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 57277b68-82bc-4356-94c6-44f7e76a3e18
+ apim-request-id: a021c83a-451a-48ef-a2e3-9df84560e2b0
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:14 GMT
+ date: Thu, 10 Sep 2020 15:25:36 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: '55'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_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 2ba9bd590d35..ec3e5abd0ea9 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
- apim-request-id: 456b9910-ec3b-409d-af56-90801a900440
+ apim-request-id: 16b593e7-f37d-4457-a682-3b148a4c9191
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:14 GMT
+ date: Thu, 10 Sep 2020 15:25:36 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3cf769af96cd..64ff4924121f 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
- apim-request-id: 4c070084-a479-4621-9e5a-27f19c8edf28
+ apim-request-id: 175eaef4-f8cc-4358-8d1e-237a4b75c489
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:15 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 aac7ce374c62..4d56cca425ba 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?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":"2020-04-01"}'
headers:
- apim-request-id: 18c8b239-97bd-4cd9-95cb-21fd12f1c23d
+ apim-request-id: c3d97396-ea85-4f88-af21-9bea30da552a
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:15 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 db2f2b8f4da9..976551da9014 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: aa8d6538-21ca-4d3d-95b8-329c4fbddcd1
+ apim-request-id: 376461d1-1502-4859-8404-071f7669f6cb
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:15 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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: '62'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 96fe3784d406..dc5d11c17972 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 292c70c4-0ff0-4ed4-8ecb-e61cd617ef8c
+ apim-request-id: 57ecf913-c6b9-4802-885a-a1870d6643de
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:16 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e9b8390fab0d..4ad00f22f491 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:11 GMT
+ date: Thu, 10 Sep 2020 15:25:38 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml
index 992fbf1898cf..2a1e9a471c3d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
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":"2020-04-01"}'
headers:
- apim-request-id: ee3c4a81-42f3-44b2-b24a-d02d6cf5fe57
+ apim-request-id: 8fced433-01bd-4440-834a-61c8fe5e7a25
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:10 GMT
+ date: Thu, 10 Sep 2020 15:25:38 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 9b804eb74d48..5bb0a82d1f83 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":0.8},{"text":"Bill
@@ -25,16 +25,16 @@ interactions:
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: b0c2372d-c860-498d-87fc-8f974e60b4dd
+ apim-request-id: d55baec4-e10d-4af1-aa8f-390f233d02af
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:11 GMT
+ date: Thu, 10 Sep 2020 15:25:38 GMT
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: '69'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f9a58ee4e152..061386590e9b 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,18 +10,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?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: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans"}}}],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: a335c738-df7e-431b-bad9-fbb956b4c678
+ apim-request-id: 3fe3f721-2df1-4d38-9c90-50cdc1ff07d4
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:12 GMT
+ date: Thu, 10 Sep 2020 15:25:34 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 dde1389ac6ef..96ae976df488 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,18 +10,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?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: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans"}}}],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 14ddc644-18db-45ea-accb-355155b1981d
+ apim-request-id: 48485ca0-aec4-43d1-b474-9ca09921eb7c
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:12 GMT
+ date: Thu, 10 Sep 2020 15:25:35 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 5fb0bda8bcb5..7dc07488408d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":0.76},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.66},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.38}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 030669af-85b5-4a56-bbff-067dc5701cc7
+ apim-request-id: c10aa170-7e2b-422b-9715-5e931f578e09
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:12 GMT
+ date: Thu, 10 Sep 2020 15:25:36 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '105'
+ x-envoy-upstream-service-time: '46'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_length_v3_categorized_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_length_v3_categorized_entities.yaml
index aebd409f1c10..abd0b39c391d 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_length_v3_categorized_entities.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_length_v3_categorized_entities.yaml
@@ -10,25 +10,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false
response:
body:
string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.82},{"text":"Bill
Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.84},{"text":"Paul
Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.89}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: feb5af55-adf4-46b5-8895-5036980c89ea
+ apim-request-id: d01c4a62-b111-4409-9110-41c7bd10a334
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 20:56:23 GMT
+ date: Thu, 10 Sep 2020 15:25:36 GMT
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: '66'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/entities/recognition/general?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.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_length.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset_length.yaml
index 59b2dfb52602..c51739db220d 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset_length.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset_length.yaml
@@ -10,25 +10,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":0.82},{"text":"Bill
Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.84},{"text":"Paul
Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.89}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 9c7c584f-622e-47b1-b6b7-5539fb986bdc
+ apim-request-id: bb542ac9-64c6-48bd-9a1a-fd2a24d20bd9
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 18:31:19 GMT
+ date: Thu, 10 Sep 2020 15:25:36 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: '62'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 765507320ca9..8a0a8b682132 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,19 +12,19 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
- apim-request-id: 10a15b86-33b7-4af9-9bf5-bdc16f137e47
+ apim-request-id: d9c36be8-02cc-4152-9f6f-ee509d6f9642
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:12 GMT
+ date: Thu, 10 Sep 2020 15:25:37 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -32,5 +32,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e1f34f0f3658..e6493dfa5716 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
- apim-request-id: 25f1423a-bf5a-4587-aa21-20d223a6bcee
+ apim-request-id: ee5e6d53-7e9f-47a2-8ad5-bb28527ed9a7
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5
- date: Thu, 27 Aug 2020 19:32:13 GMT
+ date: Thu, 10 Sep 2020 15:25:37 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '69'
+ x-envoy-upstream-service-time: '100'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 90b19325780f..16fa60aafd5f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 075a54ca-692e-4776-b9c8-68742add84e6
+ apim-request-id: 4385354d-7b9a-44c0-95c4-49a44ddefd5e
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:14 GMT
+ date: Thu, 10 Sep 2020 15:25:37 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '73'
+ x-envoy-upstream-service-time: '54'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3f8e0d4a9be1..f4c0edc1ce0f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":0.81},{"text":"Bill
@@ -29,16 +29,16 @@ interactions:
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 2ad6a1cb-8873-4fe2-9dd4-4269bf7beb8b
+ apim-request-id: 66a55c8f-a8fe-4f86-a78f-e57c394d7daf
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:09 GMT
+ date: Thu, 10 Sep 2020 15:25:38 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '116'
+ x-envoy-upstream-service-time: '74'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 c76feeff4711..0c79dc0bf28f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: a824f306-e640-46dd-ae07-0a03764180b7
+ apim-request-id: 1c4aa72f-195b-4bbc-a445-e61c61e6e3b5
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:10 GMT
+ date: Thu, 10 Sep 2020 15:25:38 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: '62'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 85fdc7b5673e..c1e1bc4e04b2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 9fd0d5ce-3b80-4203-81ab-30586e614a53
+ apim-request-id: cd6b137e-1ecd-47e8-a5ad-a2469fed9527
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:10 GMT
+ date: Thu, 10 Sep 2020 15:25:36 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '102'
+ x-envoy-upstream-service-time: '74'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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,9 +44,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -54,11 +54,11 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:10 GMT
+ date: Thu, 10 Sep 2020 15:25:36 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -72,23 +72,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: b893155c-2950-4a68-9b97-2e321fb6b630
+ apim-request-id: fbba932a-8038-4049-9101-023b12a1e434
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:10 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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: '75'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 1c82e5ab8d99..8a5f2c51ec3d 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-04-01"}'
headers:
- apim-request-id: 1752f789-8c76-49ea-ae8c-26349524d985
+ apim-request-id: bc3ccb77-d9d4-49c3-be65-9f6e1cc00be8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:11 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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: '72'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2bb9883f783d..6d6f47260a19 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false
response:
body:
string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 9a227f00-5b42-4610-86ef-a79c5508e704
+ apim-request-id: 33c16d03-687f-4e3c-8574-c1871c5e139b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:12 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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: '51'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/entities/recognition/general?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.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 71640b87e269..258d45155275 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: ad10de34-6a72-44f5-baa6-3a8b999c778c
+ apim-request-id: 1913ca3b-1da7-48be-bab4-e2c5ec1a25e1
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:12 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 c26bdc32a775..1a59b8b82ada 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.83}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.76}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: ee1a4e14-057b-4cb9-8f72-aada9e6bbcf9
+ apim-request-id: 470039f6-5d57-4ee3-8cb4-c7fa6b92d3bb
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:13 GMT
+ date: Thu, 10 Sep 2020 15:25:37 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: '67'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 b0b09e9e4cc3..9d74e3ce7b0e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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.76}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.71}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: deee8ae0-2a5b-42c2-bd0b-57b4163411a6
+ apim-request-id: 355a3c3d-2778-4a8a-af88-46fa2f47bb74
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:13 GMT
+ date: Thu, 10 Sep 2020 15:25:38 GMT
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: '89'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 382d2312e1c4..f98c49978d8e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: bbe6d35d-e9ac-471e-939f-86282c613644
+ apim-request-id: 6e1ec3d4-d615-453b-9525-c573714fca8a
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:13 GMT
+ date: Thu, 10 Sep 2020 15:25:38 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: '23'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f849a30afdd7..d9d9a8c45935 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,24 +12,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[{"text":"I will go to the park","category":"Product","offset":0,"length":21,"confidenceScore":0.51}],"warnings":[]},{"id":"2","entities":[{"text":"hotel
we stayed at","category":"Location","offset":19,"length":18,"confidenceScore":0.69}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.7}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: e8146615-0224-46eb-a49c-6cea96f14190
+ apim-request-id: 9f701c66-e6a5-4492-985b-6e6107fe47ad
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:13 GMT
+ date: Thu, 10 Sep 2020 15:25:39 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: '60'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 6b41f9bb62e0..a6445b56a920 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,23 +12,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}'
headers:
- apim-request-id: 3e403e12-d91d-41f4-b91e-b8e1918e2ee8
+ apim-request-id: 46dbcc43-d267-4990-ab80-097b9e99f53b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:14 GMT
+ date: Thu, 10 Sep 2020 15:25:39 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: '17'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 b50794f1cffd..ae342b5982be 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: "{\"documents\":[{\"id\":\"1\",\"entities\":[],\"warnings\":[]},{\"\
@@ -25,16 +25,16 @@ interactions:
,\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"\
}"
headers:
- apim-request-id: 8d4acc67-4585-4b5a-a8de-7b878138db49
+ apim-request-id: 71e9fe8c-8074-4ec9-8a9d-e258fda59393
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:15 GMT
+ date: Thu, 10 Sep 2020 15:25:39 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: '60'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 5aafdd30adce..e51ec22f1622 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,29 +15,29 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":[{"name":"Bill
+ 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
Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"entities":[{"name":"Bill
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"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
Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.37}],"language":"es","id":"Bill
- Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - f759755c-4ca3-4774-9e9c-02a4039a7694
+ - de26bb48-e23f-4f41-b57a-683fdb64f2b1
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=2
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:39 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:
- - '20'
+ - '45'
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 b6eb5b6ff195..d8b36a4e0cec 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,29 +15,29 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ 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
+ Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]},{"id":"2","entities":[{"name":"Bill
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]},{"id":"2","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
Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 4ee64643-daef-4a30-8201-a1c8b9a235df
+ - bbd801d0-43d6-41f0-92d3-3af4f54265c7
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=2
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:40 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'
+ - '48'
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 a9fdb5b14322..42b957004b43 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:16 GMT
+ - Thu, 10 Sep 2020 15:25:40 GMT
status:
code: 401
message: PermissionDenied
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version.yaml
deleted file mode 100644
index 82898180d8da..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "Microsoft was founded by Bill Gates.",
- "language": "en"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '94'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.0b5 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/entities/linking?model-version=old&showStats=false
- response:
- body:
- string: '{"error":{"code":"InvalidRequest","message":"Specified Model version
- is incorrect. Allowed values are latest,2020-02-01"}}'
- headers:
- apim-request-id:
- - 5ea79c41-52b9-4b32-a835-9aaf1366f81a
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 23 Apr 2020 15:56:01 GMT
- strict-transport-security:
- - max-age=31536000; includeSubDomains; preload
- transfer-encoding:
- - chunked
- x-content-type-options:
- - nosniff
- x-envoy-upstream-service-time:
- - '4'
- status:
- code: 400
- message: Bad Request
-version: 1
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 17b4d2477f78..5f7e5c4fdbf4 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,20 +14,20 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
apim-request-id:
- - 2e933a96-ae5a-4001-94f3-742133d29ef9
+ - 6d0025b8-3c6a-49ae-b697-e270c501a873
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:12 GMT
+ - Thu, 10 Sep 2020 15:25:38 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'
+ - '4'
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 13b1919ae30a..59fadae6d7dd 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 47b13c0b-8d90-433c-af2d-2b7c90121e02
+ - 9295a132-0fda-4937-9fdf-945dc6cb7b2e
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:13 GMT
+ - Thu, 10 Sep 2020 15:25:38 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:
- - '13'
+ - '14'
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 a9c530f1f2d4..6d3e18e870a4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - d3cc984a-f9f1-4ac5-bae9-021962b7d429
+ - 734a7162-2098-4690-9caf-3cba56bd88a3
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:39 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:
- - '17'
+ - '10'
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 537c216e5a8b..9c6cbb6fd222 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,25 +14,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill
+ 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
Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 34b34e81-fcc2-4c1e-85b2-116f85196a4c
+ - 346b426f-9ca4-4372-87e2-b6c8ef290b20
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Mon, 31 Aug 2020 18:48:40 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '27'
+ - '15'
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 f2fa38123527..c3ae68229484 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 8d621a46-3149-41c4-b609-a5e6e485eb43
+ - 5966fd22-bb3e-4f6a-8c62-b7526f9cac5b
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '112'
+ - '20'
status:
code: 200
message: OK
@@ -59,21 +59,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 07e2b784-676c-4238-b596-7b803f1bf43b
+ - 0feb7fa4-f012-4184-8098-533a2fcc5f78
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:40 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:
- - '20'
+ - '45'
status:
code: 200
message: OK
@@ -102,21 +102,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 420e54c4-e149-4aac-95d1-6bc54984c6cc
+ - a30f193a-7de1-4b0d-b06c-06805af9b15a
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:40 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:
- - '17'
+ - '49'
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 82acd601b016..54131bbae86a 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - ca5432da-dcc0-4bcf-a685-a15b7a360df7
+ - 05916407-d552-464c-9888-9abb57e08711
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:40 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_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 0f76888f35b5..c7b5b5dfe838 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 0ba9719b-3350-439a-b954-3cb8282db565
+ - b634d9e7-9a2e-4359-bc9f-8b4563f147d3
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:40 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_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml
index 0e492c0899d9..de83feccadd9 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 4ca5881f-cab1-4fc4-80f7-c41660fa3697
+ - 520b948e-9537-4d51-b3bc-9e50ed929c2c
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:41 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:
- - '3'
+ - '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 6f92bcb87299..3793b25e10ef 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 0328e0c5-7f5d-4a1f-992d-b3f7c027042f
+ - 7a5c33ed-6a68-49b5-af1a-92f539a6afa3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:16 GMT
+ - Thu, 10 Sep 2020 15:25:41 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:
- - '16'
+ - '15'
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 98c74b42b0ac..886e7e3c9cfb 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 700ba2d4-81eb-480e-b175-c6ae61136622
+ - ce1442a5-fc47-4b81-afdc-e6626517b35d
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:16 GMT
+ - Thu, 10 Sep 2020 15:25:41 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'
+ - '4'
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 44fa70f41d1e..793ad0a47bf1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:17 GMT
+ - Thu, 10 Sep 2020 15:25:41 GMT
status:
code: 401
message: PermissionDenied
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 17a22e3f971b..aab8e792e20f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 26f5f20b-4648-4020-824d-22d467bfd440
+ - 27241d9f-4cad-4077-ac8b-c0b9de905350
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:38 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_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml
index e67e506a24c4..12f3fbd67db4 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,27 +14,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"2","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":26,"length":10,"confidenceScore":0.37}],"language":"es","id":"Bill
- Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ 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
+ Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.37}],"language":"es","id":"Bill
+ Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
+ Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - a0cd1145-2339-4f0f-922e-cc9202cb0cfc
+ - 76d16784-449b-4ca1-a5e2-a69b831da5a3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:38 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:
- - '13'
+ - '29'
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 1a854ec8025f..decd5c5b4e95 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 28eb589b-aa81-4e6c-890d-322d24f31a82
+ - 47ff46d7-2e38-4429-adaa-ff389d2e3c5b
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:38 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:
- - '2'
+ - '3'
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 57637ab10f4f..58ceb862ef92 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 2480a700-5dc5-4d33-9994-f43b5db8c18f
+ - da9d22de-16f9-49b9-a341-502d7c195a36
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:38 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_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml
index 1f8f0b3219e7..f0a9f73f6e30 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,25 +14,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":[{"name":"Bill
+ 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
Gates","matches":[{"text":"Bill Gates","offset":0,"length":10,"confidenceScore":0.38}],"language":"es","id":"Bill
- Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"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"},{"name":"Director
+ Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"cf5db860-9fd2-390d-0b6d-5ba856efed49","name":"Director
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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ 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":"2020-02-01"}'
headers:
apim-request-id:
- - fc380a4a-2be8-46f9-9094-c9b05f682257
+ - 91a95acf-f4fc-4f85-9162-2ad5968185ea
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:16 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '12'
+ - '165'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_length_v3_linked_entity_match.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_length_v3_linked_entity_match.yaml
index b203d7fda45d..0b11210a7065 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_length_v3_linked_entity_match.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_length_v3_linked_entity_match.yaml
@@ -14,25 +14,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
+ string: '{"documents":[{"id":"0","entities":[{"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"},{"name":"Bill
+ Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 59196e61-2b8a-44af-8d44-faa6bc642eed
+ - e709cbe0-4387-4c33-a793-3c87ee649193
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 20:56:23 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '19'
+ - '35'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset_length.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset_length.yaml
index 2c4311036a77..a4b670431949 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset_length.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset_length.yaml
@@ -14,25 +14,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ 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
+ Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - d072190a-ba10-42b8-a561-b648277d9c95
+ - 0c0b8d7e-1d71-4f21-942b-46513bdfb299
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Fri, 28 Aug 2020 18:31:20 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '16'
+ - '15'
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 9ab27727592e..c4846c322bfc 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - e2b5b225-6628-4201-812a-f020f931d647
+ - 0fd6b8eb-ccf5-495d-a338-400598ed883c
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:13 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '30'
+ - '15'
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 4c3ef185d7b9..adf089637b38 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 08b06f33-14d0-4f76-8d1f-9fd9c957c916
+ - 1b26a32e-80bf-4b42-99a4-d33a7182faaf
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=5
date:
- - Thu, 27 Aug 2020 19:32:13 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '16'
+ - '21'
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 36caa56d0fbd..ba3f4d4dc476 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"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":"2020-02-01"}'
+ 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":"2020-02-01"}'
headers:
apim-request-id:
- - 3538b702-e337-442d-b729-e3125c31bc91
+ - 6eeb15a0-0328-4d72-872c-57736836d8e3
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:39 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:
- - '18'
+ - '29'
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 a3acdccea91c..2b4559d310c3 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,31 +16,31 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ 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
+ Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]},{"id":"1","entities":[{"name":"Bill
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]},{"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
Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - f6254588-8536-4bd3-9996-c61855b67a49
+ - 27450bd2-8f9f-4eb6-952f-ff9cc86d410d
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=2
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:39 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:
- - '21'
+ - '15'
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 4d10fd94ff9c..f8b78f80c071 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 7f204986-d6e5-4dd1-b920-b7ffc68f66c6
+ - 3830f152-d086-4f18-80b2-6936f5f3ebb2
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '28'
+ - '17'
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 8c7383604235..6fd8b91b8f4b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 48d9f768-5f96-4fdf-9ad4-7207163e572b
+ - a8e728b6-9eee-4bb6-b2a1-b6b034694572
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '22'
+ - '15'
status:
code: 200
message: OK
@@ -59,9 +59,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -71,7 +71,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:39 GMT
status:
code: 401
message: PermissionDenied
@@ -92,21 +92,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 6edeef77-c6f7-4d62-8d8f-eccd409dbc25
+ - b466835c-65e6-4be2-93b3-d4decaa9156e
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:16 GMT
+ - Thu, 10 Sep 2020 15:25:40 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -114,7 +114,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '21'
+ - '18'
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 0d05e229c819..5ec3aa788162 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - a6a5e386-d8a6-432c-a358-6c447833db44
+ - 08e31d7d-5854-4ae2-a7bc-1ba78c5a6373
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '15'
+ - '19'
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 4c837457848f..20ab7bbd8f22 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,21 +13,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false
response:
body:
string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - b25d8803-ed8c-4f99-8fd3-d9a558e7c483
+ - 3347dd1e-d6bc-403f-a581-9fb2e01a6c5c
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:16 GMT
+ - Thu, 10 Sep 2020 15:25:41 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'
+ - '809'
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 60f87840d352..5098b4c5acf1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - b54773e8-55b7-4802-bece-ba1d2bdc6400
+ - e9162652-d897-4ec0-8cb1-54c7a66afaf1
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:16 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '4'
+ - '5'
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 8d8b9909db44..3c374ac89636 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - c6b1d713-4e19-4631-97db-247c2e89a782
+ - 9f0e1e9b-6968-4c9d-a1d4-b684e31384db
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:16 GMT
+ - Thu, 10 Sep 2020 15:25:41 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:
- - '18'
+ - '16'
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 df35eac1a144..70c17205c0f4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 95eafb45-0575-4b3c-934e-acb71b6ec472
+ - f8ddba47-2928-4bcb-bebf-234eb25434a6
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:13 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '23'
+ - '22'
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 00ad2c15d0cc..25d497e49ef9 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - 24ebfa33-9f2b-4a9e-9c5d-051046ec8ef1
+ - 2c84ed5e-8b15-4f38-9ecd-5018856006bd
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25:39 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 b1c4a22644e0..3ab48dfc4106 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - d586834c-e4a2-4146-8dcf-787c9941c1cd
+ - 19321d92-891e-4676-bd63-197552aa9345
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:14 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '18'
+ - '25'
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 0f68c7ebd6c3..158ba5c594e2 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}],"modelVersion":"2020-02-01"}'
headers:
apim-request-id:
- - fad6b34c-e6cf-4c9f-9164-d9743a6948b8
+ - c9788de3-d69a-4e19-99e9-8bb3a1f36b2e
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:39 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:
- - '2'
+ - '3'
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 0f79bb46f6ba..5af9baaca109 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
apim-request-id:
- - 253f81b6-e653-405b-a92a-65d8d2d330bb
+ - e6336f20-595c-4bba-94c8-f308f3b68db6
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:15 GMT
+ - Thu, 10 Sep 2020 15:25:40 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'
+ - '48'
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 230d81984d12..f8a2453322f2 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,25 +11,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":[{"name":"Bill
+ 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
Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"entities":[{"name":"Bill
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"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
Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.37}],"language":"es","id":"Bill
- Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 44767714-6a4c-424a-924c-2281ebd644a9
+ apim-request-id: 655070e6-4a13-4ffb-b084-b4885f74814d
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2
- date: Thu, 27 Aug 2020 19:32:15 GMT
+ date: Thu, 10 Sep 2020 15:25:40 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -37,5 +37,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 96ae9022483e..68f2baecb3f5 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,31 +11,31 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ 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
+ Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]},{"id":"2","entities":[{"name":"Bill
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]},{"id":"2","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
Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: bb8696f3-516f-4e16-968c-806f4976bbd7
+ apim-request-id: 0a75efc0-7706-47b2-a39b-79807413ca9f
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2
- date: Thu, 27 Aug 2020 19:32:16 GMT
+ date: Thu, 10 Sep 2020 15:25:40 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: '15'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f7547cf9bae6..885ca7e4c702 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:16 GMT
+ date: Thu, 10 Sep 2020 15:25:40 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version.yaml
deleted file mode 100644
index 5158e9ad0701..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "Microsoft was founded by Bill Gates.",
- "language": "en"}]}'
- headers:
- Accept:
- - application/json
- Content-Length:
- - '94'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.0b5 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/entities/linking?model-version=old&showStats=false
- response:
- body:
- string: '{"error":{"code":"InvalidRequest","message":"Specified Model version
- is incorrect. Allowed values are latest,2020-02-01"}}'
- headers:
- apim-request-id: 23934162-c4ea-4a14-82c1-9ab8d2abc519
- content-type: application/json; charset=utf-8
- date: Thu, 23 Apr 2020 18:31:25 GMT
- strict-transport-security: max-age=31536000; includeSubDomains; preload
- transfer-encoding: chunked
- x-content-type-options: nosniff
- x-envoy-upstream-service-time: '4'
- status:
- code: 400
- message: Bad Request
- url: https://westus2.ppe.cognitiveservices.azure.com/text/analytics/v3.0/entities/linking?model-version=old&showStats=false
-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 ca9b99fbbe94..7953b92b00b4 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,17 +10,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
- apim-request-id: 3e856ba3-2402-4c02-b0be-da00335ca015
+ apim-request-id: 4d17e1dd-1c01-4b71-8437-f5ed17bbec44
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:16 GMT
+ date: Thu, 10 Sep 2020 15:25:41 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -28,5 +28,5 @@ interactions:
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 c666ad2b67fb..ec3e2daebaca 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,23 +754,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 19d2f5eb-5f76-41f5-951d-82b702978b80
+ apim-request-id: 527311b2-7663-4d5d-a7bf-1b270c5cc938
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:18 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '10'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 adfa81c01bbf..f9a7ebd881a4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 22d07c20-a381-40d3-a681-05b77d5cd948
+ apim-request-id: 43b14b31-1524-419a-a5bb-2bbe18499c07
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:16 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '10'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2c4123289eb0..9ee821638aea 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,27 +10,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill
+ 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
Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 70ab796e-3da1-4a55-86b4-16c4b19a97a8
+ apim-request-id: 97556e41-dea5-4a6a-a90c-9dafb6f74ea1
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Mon, 31 Aug 2020 18:48:41 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '19'
status:
code: 200
message: OK
- url: https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 e037dbf92eec..601fe1035120 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: b120bee4-b313-4ef4-917a-3baed429b68f
+ apim-request-id: be700a01-5551-4fb9-b3ce-d911a09b6f67
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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: '15'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: ecd6ee2d-ebc6-45e1-b6c2-0cf4d51bbde0
+ apim-request-id: f610e316-5e10-48db-86fa-fb4977c68661
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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: '16'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 63e51e08-7497-401b-b872-6c410d8af657
+ apim-request-id: d6736fe1-44b9-4d2f-a7a5-3ce3b85ecbc3
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:42 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '227'
+ x-envoy-upstream-service-time: '22'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_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 27a6e317b3b7..0dd973942c4a 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 1f12c053-2f58-40a4-9be0-72f5218376c1
+ apim-request-id: 09efb3b1-39ce-4881-9bb4-33b976fdd8fa
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 21f6483ace0a..72a5eb58b0e6 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: c1561b9e-ab75-4847-a57c-e531ed5ccb1d
+ apim-request-id: 1d21fefc-70da-40b3-aebf-7a94d56524bc
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 a07f969cc988..ca5e9acc9527 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 2fdae09d-20f0-4c19-a4ef-1c3e091ed1cc
+ apim-request-id: 1b4515e2-14f4-4e52-8ab3-bebcb0eb8c41
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:18 GMT
+ date: Thu, 10 Sep 2020 15:25:44 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 c33bb072de8f..346dbff7108c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 2e3b187d-d789-4230-9ebc-88f9c63b3c4e
+ apim-request-id: 7dc8830f-e932-47f0-9059-7d6b18176e0b
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:19 GMT
+ date: Thu, 10 Sep 2020 15:25:43 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: '18'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 ff52555217b7..f75c69adde1f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 4a7a2750-6002-4940-9046-eb950493df48
+ apim-request-id: bb50c2e0-2716-4790-9537-3819ac65bda1
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:19 GMT
+ date: Thu, 10 Sep 2020 15:25:40 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: '3'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f23c9da152aa..885ca7e4c702 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:19 GMT
+ date: Thu, 10 Sep 2020 15:25:40 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml
index f793fd61567f..ccfc47ab1d50 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -21,9 +21,9 @@ interactions:
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en,es"}}}],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: eca7186d-9dd6-430e-bfbd-7ac428b1c6f2
+ apim-request-id: 5f7d9ed7-d4a9-4d78-ac69-910907b8832d
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:20 GMT
+ date: Thu, 10 Sep 2020 15:25:40 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -31,5 +31,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 7afa82a14091..ab2142dceca1 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,29 +10,29 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"2","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":26,"length":10,"confidenceScore":0.37}],"language":"es","id":"Bill
- Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ 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
+ Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.37}],"language":"es","id":"Bill
+ Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
+ Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 4bdf3ace-c34e-4543-b16a-5fb5f994435a
+ apim-request-id: 7200b65a-e567-41be-9370-e09a622ba405
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:20 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '17'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 25c4344c241b..271169b2552c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 1f0d032f-3687-45d7-a39f-701b2e12b720
+ apim-request-id: 71632a58-45da-4ef7-9fc1-b2582cfe390e
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:15 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 7e1f4b944938..1b0a4c8174e7 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,18 +10,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 89b316e0-fee1-4533-a6e8-c6aa3c073f3d
+ apim-request-id: bb9c67b5-817e-4f17-991e-90278dc103cc
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 efd2f0a1efa9..89b3c4ad7001 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,27 +10,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":[{"name":"Bill
+ 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
Gates","matches":[{"text":"Bill Gates","offset":0,"length":10,"confidenceScore":0.38}],"language":"es","id":"Bill
- Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"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"},{"name":"Director
+ Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"cf5db860-9fd2-390d-0b6d-5ba856efed49","name":"Director
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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ 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":"2020-02-01"}'
headers:
- apim-request-id: 69998e1a-3cb1-4dcc-bcd5-dec8224942b3
+ apim-request-id: 04fa3a58-eb47-4623-8c84-add9be6373e3
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:16 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '28'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_length_v3_linked_entity_match.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_length_v3_linked_entity_match.yaml
index 163f1e5edb72..432f7815a0d6 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_length_v3_linked_entity_match.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_length_v3_linked_entity_match.yaml
@@ -10,27 +10,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
+ string: '{"documents":[{"id":"0","entities":[{"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"},{"name":"Bill
+ Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 9ca5fcb3-09d4-473f-ba54-97b5e4fad832
+ apim-request-id: 02bd6f24-2141-4dbd-9480-023f2ea1517a
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 20:56:24 GMT
+ date: Thu, 10 Sep 2020 15:25: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: '31'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/entities/linking?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.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_length.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset_length.yaml
index 0c4326cb0a82..9e14132209cf 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset_length.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset_length.yaml
@@ -10,27 +10,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ 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
+ Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 608ba7e5-391e-4e1b-9397-43b6d8f0c144
+ apim-request-id: b4026114-ae5e-406f-933e-238867add232
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Fri, 28 Aug 2020 18:31:20 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '41'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 5cc645e6a054..fba342d91dc1 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,19 +12,19 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 78e6513f-4ebd-4fc3-a992-7a733a1039be
+ apim-request-id: bc1eac6b-a372-4523-8c42-045018d39a78
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:16 GMT
+ date: Thu, 10 Sep 2020 15:25:41 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -32,5 +32,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 7463b2868214..2da528654775 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 9bd3fd58-ed24-4e9e-bacc-85ed6abacd90
+ apim-request-id: 66b86e98-08f3-4416-ab3e-75ca77168c81
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '21'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 4db9bfa7a1f3..47c5ba9682d1 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"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":"2020-02-01"}'
+ 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":"2020-02-01"}'
headers:
- apim-request-id: a7ab09cb-6989-4041-836d-cb6deacde0f4
+ apim-request-id: b22671f1-8e83-42b2-9ba6-f602853e6ea6
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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: '18'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 de8de4266662..dab7390fae57 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,33 +12,33 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"name":"Bill Gates","matches":[{"text":"Bill
- Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ 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
+ Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]},{"id":"1","entities":[{"name":"Bill
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]},{"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
Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill
- Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul
+ Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul
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"},{"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"}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
+ Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 922d74ab-5d46-47f4-846e-b0e572eae97e
+ apim-request-id: 6b9b5ea2-d4bf-4e4f-ba43-f4edcd288cb3
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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: '17'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 6f9ab905977e..84125d25c248 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: d550fd00-a7c6-479b-83cf-b57b2c2b295c
+ apim-request-id: 0b491680-8907-479d-8cd7-1054b483e568
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:21 GMT
+ date: Thu, 10 Sep 2020 15:25:43 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '25'
+ x-envoy-upstream-service-time: '17'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 0f9e3324bc97..8823433ceccc 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 7e745c1d-5dcf-4201-9a22-2a3151a58310
+ apim-request-id: 559a555f-374f-45e4-b88a-a8a5d0af3efc
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:21 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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: '16'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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,9 +44,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -54,11 +54,11 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:21 GMT
+ date: Thu, 10 Sep 2020 15:25:43 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -72,23 +72,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: a39330f2-e71f-4ba3-908a-c8e83da663bc
+ apim-request-id: 1cd01747-1c9c-43e4-b65e-ccd687779fdb
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:21 GMT
+ date: Thu, 10 Sep 2020 15:25:43 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: '17'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 06e95fdb1f79..20da8297a80c 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 3026de3b-9e0b-4873-88cc-c256cc825472
+ apim-request-id: 260bfbaa-4d6f-4c73-8d6c-8ab882ee87d5
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:21 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '20'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 d81f490d6dca..084c6f3567e9 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false
response:
body:
string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 5ae1c436-117a-404c-ad53-bf5fae2c0230
+ apim-request-id: 0ec08730-87f4-4ddf-b963-5b0c40271884
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:22 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '43'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/entities/linking?showStats=false
+ url: https://westcentralus.api.cognitive.microsoft.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 00b0a86b2d0c..7acbd2ce000b 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,23 +12,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 9b98225e-146b-4e74-9021-703a1b2925d1
+ apim-request-id: 97603539-72ed-4620-8281-ece72a58e413
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:22 GMT
+ date: Thu, 10 Sep 2020 15:25:41 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: '5'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f2c4763d7a3b..2af9ce5c6386 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 3cd8f925-4259-4bfe-8a97-7cdc2b4ea786
+ apim-request-id: c2af35be-b6fd-413c-8719-86be2ba8c2bc
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:17 GMT
+ date: Thu, 10 Sep 2020 15:25:43 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: '17'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 298ba632d485..a5b56cbded52 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: cda36a3a-17ee-4db6-9f60-e99b1b6969e3
+ apim-request-id: 04abf016-2b27-4d21-a35d-acc8dd03bac1
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:18 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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: '18'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 c9a02c533968..b73bb522b53b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 2bbc5dea-18cb-4d86-8bba-6835a4f405f2
+ apim-request-id: ba276b1b-0d35-40b3-8835-341136b82377
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:18 GMT
+ date: Thu, 10 Sep 2020 15:25:42 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '1'
+ x-envoy-upstream-service-time: '2'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 f730e51e3622..4b30afbc50aa 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: 359f535a-68d6-43ed-aa62-ec3c808145ea
+ apim-request-id: 43a00f02-799b-49ea-89af-1b819fadf7cb
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:19 GMT
+ date: Thu, 10 Sep 2020 15:25:44 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: '24'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2143745774fd..02ce0d565960 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -25,15 +25,15 @@ interactions:
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en,es"}}}],"modelVersion":"2020-02-01"}'
headers:
- apim-request-id: 24c36bec-7d81-4a3e-befc-a8ce6822caad
+ apim-request-id: 254ace4b-28fa-4d6f-8adc-0c276ab53a0f
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:19 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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: '1'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 854da5018d79..f06ceb07294a 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-02-01"}'
headers:
- apim-request-id: d0d3be60-07d3-4012-b1ad-2ec83fb0deac
+ apim-request-id: 6fec9d53-f41a-4189-8a1c-4099f9edb4c6
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:20 GMT
+ date: Thu, 10 Sep 2020 15:25:42 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: '107'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 23f1707bcc7b..bb915f3b9e83 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,27 +16,31 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"id":"2","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
+ string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My
+ SSN is ***********.","id":"1","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
+ Social Security Number (SSN)","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","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
Number","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABA
Routing Number","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"New
Zealand Social Welfare Number","offset":18,"length":9,"confidenceScore":0.65},{"text":"111000025","category":"Portugal
- Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
+ Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is
+ ************** your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
CPF Number","offset":3,"length":14,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 9b77a7ab-96b7-4649-9237-a9adf10127db
+ - 43c4d75b-d036-4090-b355-b5d1262cbdd0
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:42 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -44,7 +48,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '132'
+ - '113'
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 f0ed93b6f3a8..a95d4f51d700 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,27 +16,31 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"id":"2","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
+ string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My
+ SSN is ***********.","id":"1","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
+ Social Security Number (SSN)","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","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
Number","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABA
Routing Number","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"New
Zealand Social Welfare Number","offset":18,"length":9,"confidenceScore":0.65},{"text":"111000025","category":"Portugal
- Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
+ Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is
+ ************** your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
CPF Number","offset":3,"length":14,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - a609f561-bb88-4571-84e7-478a670d3549
+ - d8233ad4-393a-4f2c-8a5d-271d174c52ea
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:17 GMT
+ - Thu, 10 Sep 2020 15:25:44 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -44,7 +48,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '135'
+ - '93'
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 d698307d3de4..843f44038183 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:18 GMT
+ - Thu, 10 Sep 2020 15:25:44 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 eb606c30a01c..b807ac522218 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,20 +14,20 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
apim-request-id:
- - e8d6a18a-53f3-4404-a8a0-0bfbc08aaf97
+ - 80582c01-e3d8-467c-bbb5-297e306656a6
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:19 GMT
+ - Thu, 10 Sep 2020 15:25:43 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 33e113dd9160..b2f9d1e097fe 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 25a33acf-f793-4c69-bb97-46449d3fe853
+ - 8038d9a7-87a5-4d08-8834-23d96b27e5a4
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:19 GMT
+ - Thu, 10 Sep 2020 15:25:42 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:
- - '13'
+ - '12'
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 9665c85dc1d9..02d267611ea3 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 2ea55982-d5ac-4b50-97d5-7c373c7d0081
+ - d35d7a45-2289-44e5-b471-2aabdc31fa0b
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:19 GMT
+ - Thu, 10 Sep 2020 15:25:43 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'
+ - '10'
status:
code: 400
message: Bad Request
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 554b5dc6d544..a5675248da5b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - f7cd8364-9393-4ee6-8164-1df9cda01c70
+ - 00bb9223-460e-46c5-ab2c-3528ff45459e
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:43 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -63,21 +63,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - a1ed5ef1-4fea-46ed-b836-659475a32277
+ - 3996bdff-6486-42ae-93da-24050ffb7904
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:44 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -85,7 +87,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '109'
+ - '75'
status:
code: 200
message: OK
@@ -106,9 +108,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -120,11 +122,11 @@ interactions:
language code. Supported languages: en"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - ef15bf35-0343-4aa5-8d12-97b1af5243ec
+ - 47b25175-0e65-47af-b644-ed7ab3c54253
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:44 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -132,7 +134,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '1'
+ - '2'
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 35988a577216..b0c0b6f147fe 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - bbdd91e0-cdc9-4708-8d20-d4d5be6a4aff
+ - 266b2168-7d87-4ef3-b2f3-bf86f260fad7
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:18 GMT
+ - Thu, 10 Sep 2020 15:25:45 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:
- - '1'
+ - '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 32c5b23e32da..b8f847a8cd02 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
apim-request-id:
- - 40338d13-59a7-41fc-bf9f-39bcbe3030a6
+ - 4772ac65-d9cb-40f2-9735-6deb505bb0c0
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:18 GMT
+ - Thu, 10 Sep 2020 15:25:45 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
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 15f50d6385f4..56ab3d6fd1b8 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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":"2020-07-01"}'
headers:
apim-request-id:
- - 1d7d7f7e-12f7-4e26-a0f1-358dd5e68859
+ - 990db578-cdc6-4669-9231-7851449ec542
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:18 GMT
+ - Thu, 10 Sep 2020 15:25:42 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:
- - '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 8b88801be515..b9b664d07a5f 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,21 +14,22 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: '{"documents":[{"redactedText":"This won''t actually create a warning
+ :''(","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 2c9c52d3-850e-442f-9d59-1e8e4265f60a
+ - 186406d5-95d4-40a9-a890-223a540e1619
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:19 GMT
+ - Thu, 10 Sep 2020 15:25:42 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -36,7 +37,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '127'
+ - '59'
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 6b059da4371e..b1bca0084590 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 7168cdaf-4b84-476d-9ef2-7bd8136feb81
+ - 2a60fe01-49e2-4175-8275-13ad8ad4490b
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:19 GMT
+ - Thu, 10 Sep 2020 15:25:43 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'
+ - '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 ae282bef6b3c..b16c96a0179a 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -26,7 +26,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:19 GMT
+ - Thu, 10 Sep 2020 15:25:43 GMT
status:
code: 401
message: PermissionDenied
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 888e6ed8f939..62cf0bec0c2e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -28,11 +28,11 @@ interactions:
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - a0bdd2e2-4d69-4df9-a295-a95b4f0377fc
+ - 34fdacf6-2fe4-4676-bb21-addafcad92a9
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:19 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '1'
+ - '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 076de6808107..c69ff5ac5579 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,12 +15,13 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"3","entities":[{"text":"998.214.865-68","category":"Brazil
+ string: '{"documents":[{"redactedText":"Is ************** your Brazilian CPF
+ number?","id":"3","entities":[{"text":"998.214.865-68","category":"Brazil
CPF Number","offset":3,"length":14,"confidenceScore":0.85}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
@@ -28,13 +29,13 @@ interactions:
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 120bc6cc-6db4-41ef-928e-66bf40ee61ed
+ - 1513f4e5-0291-44a7-86d7-f757ef7e8b10
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:44 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -42,7 +43,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '75'
+ - '64'
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 cb0650e058ba..a664bfe05dc7 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 7744a13d-caf7-490e-91c1-2ed98b6aabfa
+ - 00e584f1-2298-4303-976f-ec8a9a5e80d6
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '2'
+ - '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 21761d6ee661..e9a67638af42 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 1b0f61a4-f15f-42c4-99b7-19607b852cb1
+ - 4150f7c3-681c-49d6-8c27-356fb089cbcd
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:44 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_korean_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_korean_nfc.yaml
deleted file mode 100644
index ab64d71e8c5c..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_korean_nfc.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "\uc544\uac00 SSN: 859-98-0987", "language":
- "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '87'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
- response:
- body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
- headers:
- apim-request-id:
- - bc6a9e60-774c-443a-9c35-6cbffa210d22
- content-type:
- - application/json; charset=utf-8
- csp-billing-usage:
- - CognitiveServices.TextAnalytics.BatchScoring=1
- date:
- - Thu, 27 Aug 2020 19:32:21 GMT
- strict-transport-security:
- - max-age=31536000; includeSubDomains; preload
- transfer-encoding:
- - chunked
- x-content-type-options:
- - nosniff
- x-envoy-upstream-service-time:
- - '72'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_korean_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_korean_nfd.yaml
deleted file mode 100644
index cf88fbd01eea..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_korean_nfd.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "\uc544\uac00 SSN: 859-98-0987", "language":
- "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '87'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
- response:
- body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
- headers:
- apim-request-id:
- - 3362c6da-0e2e-49be-a661-2c55332f2928
- content-type:
- - application/json; charset=utf-8
- csp-billing-usage:
- - CognitiveServices.TextAnalytics.BatchScoring=1
- date:
- - Thu, 27 Aug 2020 19:32:21 GMT
- strict-transport-security:
- - max-age=31536000; includeSubDomains; preload
- transfer-encoding:
- - chunked
- x-content-type-options:
- - nosniff
- x-envoy-upstream-service-time:
- - '68'
- status:
- code: 200
- message: OK
-version: 1
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 740f8adf3d90..578fd01d9e69 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,22 +14,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill
+ string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"redactedText":"**********
+ is the CEO of *********.","id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill
Gates","category":"Person","offset":0,"length":10,"confidenceScore":0.81},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.64}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 30a05f6a-9222-4173-9391-94cbc884ebf5
+ - edfc64f9-8dce-4a26-a246-07fed5bb7852
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:45 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -37,7 +38,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '76'
+ - '60'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_spanish.yaml
deleted file mode 100644
index 16708cb52ae7..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_spanish.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "Bill Gates is the CEO of Microsoft.",
- "language": "es"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '93'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/1.0.1 Python/3.7.7 (Darwin-17.7.0-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=latest&showStats=true
- response:
- body:
- string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid
- Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
- language code. Supported languages: en"}}}],"modelVersion":"2020-04-01"}'
- headers:
- apim-request-id:
- - 3e6f5b79-e64a-4267-a8e4-16c9017c5843
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 22 Jul 2020 14:50:20 GMT
- strict-transport-security:
- - max-age=31536000; includeSubDomains; preload
- transfer-encoding:
- - chunked
- x-content-type-options:
- - nosniff
- x-envoy-upstream-service-time:
- - '420'
- status:
- code: 200
- message: OK
-version: 1
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 1671cad6e853..ddd9f3212710 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,23 +16,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - a3493dae-85d1-49d4-a577-6576413cf439
+ - 74008f32-6ebf-4a5e-83d5-ebd45664de99
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '64'
+ - '47'
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 c07f6e0572e1..a6ecedd4e36f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - 90ba8b73-da3b-4018-9991-c3116fb36f3f
+ - 2ac722ca-734d-4c71-97ea-aa1db9f7ddab
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=5
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25:44 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:
- - '74'
+ - '48'
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 14cebef2d0f0..f060e69c74df 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: '{"documents":[{"redactedText":"Test passing cls to endpoint","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 8a8147fd-2fc8-4042-a01f-eb9bba5c40fc
+ - 0e83cb52-0274-4756-8b0e-c932915fcf79
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:22 GMT
+ - Thu, 10 Sep 2020 15:25: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:
- - '74'
+ - '56'
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 e0dbd2187485..8a3dd577b7ec 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,29 +17,33 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
+ string: '{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"My
+ SSN is ***********.","id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
+ Social Security Number (SSN)","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":"Phone
Number","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABA
Routing Number","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"New
Zealand Social Welfare Number","offset":18,"length":9,"confidenceScore":0.65},{"text":"111000025","category":"Portugal
- Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
+ Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is
+ ************** your Brazilian CPF number?","id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
CPF Number","offset":3,"length":14,"confidenceScore":0.85}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 0e9b80e1-e74f-449b-b08a-771e48bb9c07
+ - 43e359a1-5dea-4c8f-a1e5-6c882a1ba78d
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:22 GMT
+ - Thu, 10 Sep 2020 15:25:44 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -47,7 +51,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '137'
+ - '103'
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 5a16a3611d43..f83ac922a59a 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,21 +16,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - bb48ee12-770a-4d71-a2a7-ea30caa599a9
+ - 540fdf1f-7e5c-45cd-bc92-3ce2cb49a403
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:45 GMT
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:
- - '82'
+ - '65'
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 ee650032c7a0..32c2e743dc47 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,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"333-333-3333","category":"Phone
+ string: '{"documents":[{"redactedText":"I work at Microsoft and my phone number
+ is ************","id":"0","entities":[{"text":"333-333-3333","category":"Phone
Number","offset":43,"length":12,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - c2319b95-6fd2-46c9-80e3-06c8f2701825
+ - 61e0870f-7eb9-4d25-ba5a-e7a3fd07e390
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Mon, 31 Aug 2020 20:32:54 GMT
+ - Thu, 10 Sep 2020 15:25:44 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -37,7 +38,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '79'
+ - '72'
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 da525c49fea0..dd6440faa1d1 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,22 +14,22 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"U.S.
Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - c5ba8c84-0e46-471a-b4c8-f02c411c20ec
+ - 52cb00ca-65bc-41b4-a963-9335c5edbc34
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Mon, 31 Aug 2020 20:15:43 GMT
+ - Thu, 10 Sep 2020 15:25:44 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:
- - '78'
+ - '61'
status:
code: 200
message: OK
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text_v3_1_preview_1.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text_v3_1_preview_1.yaml
deleted file mode 100644
index 621c6af4efd5..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text_v3_1_preview_1.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", "language":
- "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '80'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
- response:
- body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
- headers:
- apim-request-id:
- - 4ae026d1-15d1-4d77-8913-46922e72d7cb
- content-type:
- - application/json; charset=utf-8
- csp-billing-usage:
- - CognitiveServices.TextAnalytics.BatchScoring=1
- date:
- - Mon, 31 Aug 2020 19:58:17 GMT
- strict-transport-security:
- - max-age=31536000; includeSubDomains; preload
- transfer-encoding:
- - chunked
- x-content-type-options:
- - nosniff
- x-envoy-upstream-service-time:
- - '68'
- status:
- code: 200
- message: OK
-version: 1
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 89deb9f049d2..b0773f7da357 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,21 +16,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - 67817078-fcf6-483e-b95f-23140828b574
+ - 93b23600-2de2-488d-ba0e-d368712ef595
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25:45 GMT
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:
- - '96'
+ - '116'
status:
code: 200
message: OK
@@ -59,9 +61,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -71,7 +73,7 @@ interactions:
content-length:
- '224'
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25:45 GMT
status:
code: 401
message: PermissionDenied
@@ -92,21 +94,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - 6913efd8-0834-4e52-8e4a-6302c7979d9c
+ - a8a6632c-b07e-43f6-9743-4f18ecf8d941
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:22 GMT
+ - Thu, 10 Sep 2020 15:25:45 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -114,7 +118,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '152'
+ - '62'
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 1682bfa127c6..4b7339acf4cd 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,23 +16,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":[{"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
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - c94b7e10-ee0b-434e-af07-5054b39c87c1
+ - 2ecfd21a-04fd-42cf-9e96-8c3d8de0e74c
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=4
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25:45 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'
+ - '47'
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 b53195935671..280c62a8b13a 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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:
- - 5bdd7340-d5c5-41b6-ac2d-18533938d933
+ - dc3690e4-27ae-4170-bce1-c84ac9b94736
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:23 GMT
+ - Thu, 10 Sep 2020 15:25:45 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'
+ - '4'
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 5f1f3a6d13f5..31fc7cf6affa 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,21 +16,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - 45f74f51-713a-4dc0-adf4-b80ba0f9a268
+ - 77873445-b1a7-40af-beb3-070b8061aa72
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25:45 GMT
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:
- - '93'
+ - '78'
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 22257016f01d..fe91c4a04d7a 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,21 +16,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
apim-request-id:
- - d60ce436-4886-404e-be9b-f313e803a85b
+ - 28f165ac-5570-4d6e-bbf0-74f822ec5713
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=3
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25:45 GMT
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:
- - '127'
+ - '73'
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 4d088496d67b..ec981658fa3b 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - b95c1ece-3f2e-42d3-871c-5ba5c0cdcc84
+ - a6db5943-f2e4-47bb-8f7c-3acce6a5292a
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25:44 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:
- - '1'
+ - '2'
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 77e7fefa2b5f..143868d3ca67 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,25 +16,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"3","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
+ string: '{"documents":[{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 79decd0f-84e6-4041-b6be-3e9c1357a2ed
+ - ad751adb-c958-4074-b094-ecc65ea64247
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:22 GMT
+ - Thu, 10 Sep 2020 15:25:44 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:
- - '70'
+ - '73'
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 2a5d05e6dead..d2c55ca2040e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
apim-request-id:
- - 933a1b16-a91d-4a42-8ca2-3b36645d3dba
+ - 0bd824b4-8101-407e-b60e-06b0d5f36c0b
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 Aug 2020 19:32:20 GMT
+ - Thu, 10 Sep 2020 15:25:44 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:
- - '5'
+ - '2'
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 fa5f1b115182..aab23453b3ce 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,25 +16,28 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"3","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
- Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
- language code. Supported languages: en"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
- Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
- language code. Supported languages: en"}}}],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\u732B\u306F\u5E78\u305B\",\"id\"\
+ :\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[{\"id\":\"1\",\"error\"\
+ :{\"code\":\"InvalidArgument\",\"message\":\"Invalid Language Code.\",\"innererror\"\
+ :{\"code\":\"UnsupportedLanguageCode\",\"message\":\"Invalid language code.\
+ \ Supported languages: en\"}}},{\"id\":\"2\",\"error\":{\"code\":\"InvalidArgument\"\
+ ,\"message\":\"Invalid Language Code.\",\"innererror\":{\"code\":\"UnsupportedLanguageCode\"\
+ ,\"message\":\"Invalid language code. Supported languages: en\"}}}],\"modelVersion\"\
+ :\"2020-07-01\"}"
headers:
apim-request-id:
- - a233480b-7b8f-4f17-a2a1-660c7604c3ed
+ - 2be4c56d-0462-468f-8b3e-e30a96dd845e
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.BatchScoring=1
date:
- - Thu, 27 Aug 2020 19:32:21 GMT
+ - Thu, 10 Sep 2020 15:25:44 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
@@ -42,7 +45,7 @@ interactions:
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- - '56'
+ - '57'
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 f90b091090ba..95d3a9ceb2e6 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,29 +12,33 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"id":"2","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
+ string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My
+ SSN is ***********.","id":"1","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
+ Social Security Number (SSN)","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","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
Number","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABA
Routing Number","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"New
Zealand Social Welfare Number","offset":18,"length":9,"confidenceScore":0.65},{"text":"111000025","category":"Portugal
- Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
+ Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is
+ ************** your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
CPF Number","offset":3,"length":14,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 57420848-7e2e-4cc5-9b35-b09e33f63963
+ apim-request-id: b70e8b1c-1fa4-4283-ae92-d08048ba7d57
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:22 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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: '90'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 8ac00eb32803..1286747cf866 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,29 +12,33 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"id":"2","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
+ string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My
+ SSN is ***********.","id":"1","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
+ Social Security Number (SSN)","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","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
Number","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABA
Routing Number","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"New
Zealand Social Welfare Number","offset":18,"length":9,"confidenceScore":0.65},{"text":"111000025","category":"Portugal
- Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
+ Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is
+ ************** your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
CPF Number","offset":3,"length":14,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: ee5ca9b1-9705-4a35-b4b8-b06f85d2ca02
+ apim-request-id: ea974837-3be5-4cec-ba82-d95fcf4f34c8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:22 GMT
+ date: Thu, 10 Sep 2020 15:25:46 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '102'
+ x-envoy-upstream-service-time: '92'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 a023c3c9a13a..be48681fcb95 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:45 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 293c2488b3b9..acb685e7e62f 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,23 +10,23 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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"}}}'
headers:
- apim-request-id: 43bedb24-bd9c-44ae-90c5-460a32119809
+ apim-request-id: 6cf0e4ed-12c7-4746-927c-40d84e8d21a4
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:22 GMT
+ date: Thu, 10 Sep 2020 15:25:45 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: '5'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 4d10c69255dc..4ff9a7b9d3c4 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 37da7e75-6c21-445a-aaa6-b55d2da0905d
+ apim-request-id: bac7cd5d-2cf8-4d52-bd4b-304cdb2af635
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 0f6d3efba8cf..b82fd30874dd 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 81161f83-2b34-4eb4-b8ba-49cc40e927df
+ apim-request-id: 80759db7-05e3-4b59-8756-87c02e456135
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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: '10'
status:
code: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_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 e33bfab35515..efc5b81b32e0 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,9 +12,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 72900d93-a5ad-4ef6-b515-25221980fad3
+ apim-request-id: 9dcb5cd7-7738-46c0-951d-abe98241615b
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:22 GMT
+ date: Thu, 10 Sep 2020 15:25:45 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -35,7 +35,7 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -49,25 +49,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
- apim-request-id: c999cf14-f1fa-4a82-9cad-5e6c137a84c3
+ apim-request-id: 0c723f73-ba0b-4278-b0ab-8ba12ec938ab
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:45 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: '86'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -81,9 +83,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -94,15 +96,15 @@ interactions:
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 87d50a97-692b-478f-ae4c-ecc742ddc8f2
+ apim-request-id: e78b4f04-bc22-4b51-a76c-3d0ad7ae9dec
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:45 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: '1'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_diacritics_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_diacritics_nfc.yaml
deleted file mode 100644
index c47f7647102c..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_diacritics_nfc.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "a\u00f1o SSN: 859-98-0987", "language":
- "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '83'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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:
- content-length: '224'
- date: Fri, 28 Aug 2020 16:56:28 GMT
- status:
- code: 401
- message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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_diacritics_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_diacritics_nfd.yaml
deleted file mode 100644
index ae26beef9a99..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_diacritics_nfd.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "an\u0303o SSN: 859-98-0987", "language":
- "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '84'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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:
- content-length: '224'
- date: Fri, 28 Aug 2020 16:56:28 GMT
- status:
- code: 401
- message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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_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 63e7992456c0..588d036763dc 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,18 +9,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: c62dcb0e-de00-4c1f-bfeb-4a757297665b
+ apim-request-id: ceda25a9-2db9-4f8e-9e6d-485844759162
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:22 GMT
+ date: Thu, 10 Sep 2020 15:25: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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 888ba222d32b..4edfc9cc1273 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"2020-07-01"}'
headers:
- apim-request-id: 7555b158-b4fd-48db-b80e-907817c236f2
+ apim-request-id: 841ed91c-7e78-4a25-9217-276c992276a0
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25: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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 5a5683622b6d..fc78f2a55146 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -27,9 +27,9 @@ interactions:
size to: 5120 text elements. For additional details on the data limitations
see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: bdccbcd2-f4aa-4a08-a823-ee11d6a7e98a
+ apim-request-id: f07f44f6-b98e-4aac-aee4-7416c0950bed
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:46 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -37,5 +37,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 df39201ee93d..979325b7dae6 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,23 +10,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: '{"documents":[{"redactedText":"This won''t actually create a warning
+ :''(","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 1174b12d-1b69-4ca0-99c8-dc8720bcc910
+ apim-request-id: a8c540de-f744-43b3-a745-07d9fc78f7c1
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:46 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '102'
+ x-envoy-upstream-service-time: '58'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 a256cdda166f..9d68b9ae1519 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: e67e8d7d-d60e-4925-b11e-87454e545736
+ apim-request-id: 87a22a2a-aebc-47c5-b4e1-d5a37635b8c2
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_emoji.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_emoji.yaml
deleted file mode 100644
index cdb44d9ae10e..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_emoji.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "\ud83d\udc69 SSN: 859-98-0987", "language":
- "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '87'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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:
- content-length: '224'
- date: Fri, 28 Aug 2020 16:56:27 GMT
- status:
- code: 401
- message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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_emoji_family.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_emoji_family.yaml
deleted file mode 100644
index 48ddda9d21a8..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_emoji_family.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67
- SSN: 859-98-0987", "language": "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '141'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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:
- content-length: '224'
- date: Fri, 28 Aug 2020 16:56:28 GMT
- status:
- code: 401
- message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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_emoji_family_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_emoji_family_with_skin_tone_modifier.yaml
deleted file mode 100644
index 1cfa26f6a7f2..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_emoji_family_with_skin_tone_modifier.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "\ud83d\udc69\ud83c\udffb\u200d\ud83d\udc69\ud83c\udffd\u200d\ud83d\udc67\ud83c\udffe\u200d\ud83d\udc66\ud83c\udfff
- SSN: 859-98-0987", "language": "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '189'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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:
- content-length: '224'
- date: Fri, 28 Aug 2020 16:56:28 GMT
- status:
- code: 401
- message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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_emoji_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_emoji_with_skin_tone_modifier.yaml
deleted file mode 100644
index 85a8b4c68348..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_emoji_with_skin_tone_modifier.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "\ud83d\udc69\ud83c\udffb SSN: 859-98-0987",
- "language": "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '99'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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:
- content-length: '224'
- date: Fri, 28 Aug 2020 16:56:28 GMT
- status:
- code: 401
- message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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 a023c3c9a13a..be48681fcb95 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,9 +10,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -20,9 +20,9 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:23 GMT
+ date: Thu, 10 Sep 2020 15:25:45 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml
index 2b2f0220f383..cb56e49a87fe 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
@@ -23,9 +23,9 @@ interactions:
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 7c0d7dc0-d0c1-41fb-9e65-70d574e289b6
+ apim-request-id: 4a0f1152-4eaa-4725-82f4-ab3ab4ab38ba
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:46 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
@@ -33,5 +33,5 @@ interactions:
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 1bd044ee937d..4b35bfe637c7 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,28 +11,29 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"3","entities":[{"text":"998.214.865-68","category":"Brazil
+ string: '{"documents":[{"redactedText":"Is ************** your Brazilian CPF
+ number?","id":"3","entities":[{"text":"998.214.865-68","category":"Brazil
CPF Number","offset":3,"length":14,"confidenceScore":0.85}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 99992683-434e-48e9-8201-3f7adeb81f56
+ apim-request-id: 5436bc25-14af-48bc-94ef-1ce1d94adb78
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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: '64'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 c70b9fe8f0b9..6d22c6b80958 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,24 +10,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: f6023f95-fa23-444a-8eb2-63a3738839f8
+ apim-request-id: a9727960-d4be-42d6-bbc7-2b1234d75b02
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 3242cf343967..87f5dc957d12 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,18 +10,18 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 3ec87b00-53b7-4a4e-8e81-918ae5c25aa3
+ apim-request-id: 86205f73-fb7a-4eb2-9f4b-c1dc42a93c15
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_korean_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_korean_nfc.yaml
deleted file mode 100644
index 906c950775e9..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_korean_nfc.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "\uc544\uac00 SSN: 859-98-0987", "language":
- "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '87'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
- response:
- body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
- headers:
- apim-request-id: f7cdcc8b-eb6f-4a04-8e6d-77d2eaeaf8f9
- content-type: application/json; charset=utf-8
- csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:24 GMT
- strict-transport-security: max-age=31536000; includeSubDomains; preload
- transfer-encoding: chunked
- x-content-type-options: nosniff
- x-envoy-upstream-service-time: '68'
- status:
- code: 200
- message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/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_korean_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_korean_nfd.yaml
deleted file mode 100644
index 52e339150f69..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_korean_nfd.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "\uc544\uac00 SSN: 859-98-0987", "language":
- "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '87'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
- response:
- body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":8,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
- headers:
- apim-request-id: 297a6648-784e-4424-8019-1085237d7a5d
- content-type: application/json; charset=utf-8
- csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:24 GMT
- strict-transport-security: max-age=31536000; includeSubDomains; preload
- transfer-encoding: chunked
- x-content-type-options: nosniff
- x-envoy-upstream-service-time: '62'
- status:
- code: 200
- message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/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 66e98bebbf33..7863f2a1efd5 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,24 +10,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill
+ string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"redactedText":"**********
+ is the CEO of *********.","id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill
Gates","category":"Person","offset":0,"length":10,"confidenceScore":0.81},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.64}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 5ad422ee-f8c3-47f5-b78c-b23eea574c45
+ apim-request-id: e62fe766-aeb7-406f-a142-7ef7dc4c99c2
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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: '65'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 857d88682d61..c77dc22ad673 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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
+ 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":"2020-07-01"}'
headers:
- apim-request-id: 3cafa2e1-fbcd-44c7-ab11-726dd74bcdf4
+ apim-request-id: a614b263-12e5-45f3-b883-44e2bb5a1dac
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:47 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: '69'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2d35ef44ed90..ac09ab5e16c3 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
- apim-request-id: a9661dd9-24be-4466-ac59-8898ad3661f8
+ apim-request-id: 22002653-8b82-4cb6-8200-3d1a8e075f81
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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: '49'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 7aefaccbeec8..f87d58a2405f 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ string: '{"documents":[{"redactedText":"Test passing cls to endpoint","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 55a5b072-c151-49b2-9852-54c9133df269
+ apim-request-id: f6c6c0cc-f466-4ada-9345-b590f95be46f
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:46 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: '55'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 6ec3272c4573..ca5f0050010c 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,31 +13,35 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
- Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"Phone
+ string: '{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"My
+ SSN is ***********.","id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"U.S.
+ Social Security Number (SSN)","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":"Phone
Number","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABA
Routing Number","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"New
Zealand Social Welfare Number","offset":18,"length":9,"confidenceScore":0.65},{"text":"111000025","category":"Portugal
- Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
+ Tax Identification Number","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is
+ ************** your Brazilian CPF number?","id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[{"text":"998.214.865-68","category":"Brazil
CPF Number","offset":3,"length":14,"confidenceScore":0.85}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid
document in request.","innererror":{"code":"InvalidDocument","message":"Document
text is empty."}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: b251a5b4-7fef-4e29-9983-f3f5bd7cdd63
+ apim-request-id: 4bce2632-54b2-4613-bb7c-90061515b463
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:46 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '161'
+ x-envoy-upstream-service-time: '83'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 41c7c0931bed..be8be5802c9a 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,23 +12,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
- apim-request-id: 1a93da83-85eb-4aac-8926-e1ca29043a33
+ apim-request-id: 4be32316-e284-44f3-bc15-cbd82cbc4843
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25:46 GMT
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: '67'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 7395d5ac2e41..3d140a3b82ed 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,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"333-333-3333","category":"Phone
+ string: '{"documents":[{"redactedText":"I work at Microsoft and my phone number
+ is ************","id":"0","entities":[{"text":"333-333-3333","category":"Phone
Number","offset":43,"length":12,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: 9265752d-3262-4dbb-94d6-be26889e3db9
+ apim-request-id: 58475a75-aa91-431e-ba05-91d0d0230155
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Mon, 31 Aug 2020 20:32:55 GMT
+ date: Thu, 10 Sep 2020 15:25:46 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '82'
+ x-envoy-upstream-service-time: '65'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 df78eca47113..60374a5932bd 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,24 +10,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":"U.S.
Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: dc638432-dc71-4f52-aadb-829c2dfd1935
+ apim-request-id: 6d093cf9-538f-433d-a909-e04e4403401f
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Mon, 31 Aug 2020 20:15:43 GMT
+ date: Thu, 10 Sep 2020 15:25:47 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: '60'
status:
code: 200
message: OK
- url: https://cognitiveusw2dev.azure-api.net//text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_redacted_text_v3_1_preview_1.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text_v3_1_preview_1.yaml
index 55b101e7b851..779a2f553406 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text_v3_1_preview_1.yaml
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text_v3_1_preview_1.yaml
@@ -10,24 +10,24 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[{"text":"859-98-0987","category":"U.S.
+ string: '{"documents":[{"redactedText":"My SSN is ***********.","id":"0","entities":[{"text":"859-98-0987","category":"U.S.
Social Security Number (SSN)","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: eeda4dd4-74dd-4e54-88cb-5a0352f065cf
+ apim-request-id: b94f3905-dbe3-47ce-a0ba-662a828b4e3c
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Mon, 31 Aug 2020 19:58:17 GMT
+ date: Thu, 10 Sep 2020 15:24:22 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: '63'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 197e7a7b620f..5b33d2479676 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,25 +12,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
- apim-request-id: f2635c08-1d74-485b-8b1c-514cd9c61542
+ apim-request-id: c590663a-12ea-4b0f-ab9c-88efa25de3b5
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:47 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '90'
+ x-envoy-upstream-service-time: '62'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -44,9 +46,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"error":{"code":"401","message":"Access denied due to invalid subscription
@@ -54,11 +56,11 @@ interactions:
subscription and use a correct regional API endpoint for your resource."}}'
headers:
content-length: '224'
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:47 GMT
status:
code: 401
message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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":
@@ -72,23 +74,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
- apim-request-id: aeb55f41-e114-480a-a2ba-7e5250f22f08
+ apim-request-id: 349f6caa-914d-4844-a44e-709c8108ba19
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:47 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '73'
+ x-envoy-upstream-service-time: '63'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 9977aacfda81..824e99ef059e 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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":[{"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
+ 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":"2020-07-01"}'
headers:
- apim-request-id: d5e8fa24-c0ea-446c-82ce-465afd420a54
+ apim-request-id: a60c64d7-e564-42d3-b1eb-04fe6382d305
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4
- date: Thu, 27 Aug 2020 19:32:24 GMT
+ date: Thu, 10 Sep 2020 15:25:47 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: '49'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 56706be0ec8f..9a03b8e747c4 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,17 +12,17 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-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: 8525f819-bc0c-4ff5-9a0f-52759fb16d7f
+ apim-request-id: c2801ca6-32dc-4126-b1b8-ad252ba20f74
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25: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: 400
message: Bad Request
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 fdc25f6346ba..fae18ebea0f4 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,23 +12,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
- apim-request-id: 39ee2ff0-2d84-4625-9124-3cc5685c1bc6
+ apim-request-id: 16bdeafe-ee58-4c89-b316-4f122f2e0723
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25:47 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: '92'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 5e701f52db69..a25b2d6c1da2 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,23 +12,25 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}'
+ 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":"2020-07-01"}'
headers:
- apim-request-id: 127e5be5-8c8e-45da-a6ec-e30c204e9999
+ apim-request-id: bff77a34-fa72-409c-9607-dac513b3bcf8
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25:47 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
- x-envoy-upstream-service-time: '115'
+ x-envoy-upstream-service-time: '73'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 2d0224ebfafe..6ac8c3502322 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,9 +12,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid
@@ -25,9 +25,9 @@ interactions:
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: c0c5352c-a4ec-42b1-a305-152abfb9eb50
+ apim-request-id: a9f07c8e-4787-4cf9-8a83-2ce2cb191669
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25:47 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 0853da6e78e2..ce5a7f0732a9 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,27 +12,27 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"3","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
+ string: '{"documents":[{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
language code. Supported languages: en"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: dbf6df1e-c572-4af1-8b8b-1c99573fbc50
+ apim-request-id: ee3d1480-b2d1-4b4f-ba60-041420835d66
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25:47 GMT
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: '67'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 560f9f00effe..bede07826066 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.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?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"}}}],"modelVersion":"2020-07-01"}'
headers:
- apim-request-id: b8a22188-a7ee-4271-9b97-8ac6d0d94087
+ apim-request-id: c0b5d4b0-69c1-4eb1-8398-e5a80f945ecd
content-type: application/json; charset=utf-8
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25:47 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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 55daf2e0fd94..d834537374a2 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,27 +12,30 @@ interactions:
Content-Type:
- application/json
User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
+ - azsdk-python-ai-textanalytics/5.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ uri: https://westcentralus.api.cognitive.microsoft.com/text/analytics/v3.1-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
response:
body:
- string: '{"documents":[{"id":"3","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid
- Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
- language code. Supported languages: en"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid
- Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid
- language code. Supported languages: en"}}}],"modelVersion":"2020-07-01"}'
+ string: "{\"documents\":[{\"redactedText\":\"\u732B\u306F\u5E78\u305B\",\"id\"\
+ :\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[{\"id\":\"1\",\"error\"\
+ :{\"code\":\"InvalidArgument\",\"message\":\"Invalid Language Code.\",\"innererror\"\
+ :{\"code\":\"UnsupportedLanguageCode\",\"message\":\"Invalid language code.\
+ \ Supported languages: en\"}}},{\"id\":\"2\",\"error\":{\"code\":\"InvalidArgument\"\
+ ,\"message\":\"Invalid Language Code.\",\"innererror\":{\"code\":\"UnsupportedLanguageCode\"\
+ ,\"message\":\"Invalid language code. Supported languages: en\"}}}],\"modelVersion\"\
+ :\"2020-07-01\"}"
headers:
- apim-request-id: fa6a6003-0b1f-41a1-be65-36b4407fd016
+ apim-request-id: 1bb6dd45-fd49-4b68-b29a-4575bce54d30
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1
- date: Thu, 27 Aug 2020 19:32:25 GMT
+ date: Thu, 10 Sep 2020 15:25:47 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: '47'
status:
code: 200
message: OK
- url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
+ url: https://westcentralus.api.cognitive.microsoft.com//text/analytics/v3.1-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_zalgo_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_zalgo_text.yaml
deleted file mode 100644
index 4adce716edfe..000000000000
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_zalgo_text.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-interactions:
-- request:
- body: '{"documents": [{"id": "0", "text": "o\u0335\u0308\u0307\u0312\u0303\u034b\u0307\u0305\u035b\u030b\u035b\u030e\u0341\u0351\u0304\u0310\u0302\u030e\u031b\u0357\u035d\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032d\u0327\u031f\u0319\u034e\u0348\u031e\u0322\u0354m\u0335\u035d\u0315\u0304\u030f\u0360\u034c\u0302\u0311\u033d\u034d\u0349\u0317g\u0335\u030b\u0352\u0344\u0360\u0313\u0312\u0308\u030d\u030c\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033f\u030f\u0301\u0357\u0300\u0307\u035b\u030f\u0300\u031b\u0344\u0300\u030a\u033e\u0340\u035d\u0314\u0349\u0322\u031e\u0321\u032f\u0320\u0324\u0323\u0355\u0322\u031f\u032b\u032b\u033c\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035c\u0327\u0323\u0323\u034e
- SSN: 859-98-0987", "language": "en"}]}'
- headers:
- Accept:
- - application/json, text/json
- Content-Length:
- - '750'
- Content-Type:
- - application/json
- User-Agent:
- - azsdk-python-ai-textanalytics/5.0.1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- method: POST
- uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/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:
- content-length: '224'
- date: Fri, 28 Aug 2020 16:56:28 GMT
- status:
- code: 401
- message: PermissionDenied
- url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint
-version: 1
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment.py
index 0205cd265cb3..88365d0949cf 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment.py
@@ -664,7 +664,7 @@ def test_opinion_mining_v3(self, client):
with pytest.raises(NotImplementedError) as excinfo:
client.analyze_sentiment(["will fail"], show_opinion_mining=True)
- assert "'show_opinion_mining' is only available for API version v3.1-preview.1 and up" in str(excinfo.value)
+ assert "'show_opinion_mining' is only available for API version v3.1-preview and up" in str(excinfo.value)
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer()
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment_async.py
index 5ff9656e6fc3..61204e13da35 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment_async.py
@@ -680,7 +680,7 @@ async def test_opinion_mining_v3(self, client):
with pytest.raises(NotImplementedError) as excinfo:
await client.analyze_sentiment(["will fail"], show_opinion_mining=True)
- assert "'show_opinion_mining' is only available for API version v3.1-preview.1 and up" in str(excinfo.value)
+ assert "'show_opinion_mining' is only available for API version v3.1-preview and up" in str(excinfo.value)
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer()
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_auth.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_auth.py
index 1e2c4d9202af..2f464ac6a46b 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_auth.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_auth.py
@@ -13,6 +13,7 @@
class TestAuth(TextAnalyticsTest):
@pytest.mark.live_test_only
def test_active_directory_auth(self):
+ pytest.skip("v3.1-preview.2 doesn't have AAD yet")
token = self.generate_oauth_token()
endpoint = self.get_oauth_endpoint()
text_analytics = TextAnalyticsClient(endpoint, token)
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_auth_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_auth_async.py
index 462f53f707c0..726e8cdc48e7 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_auth_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_auth_async.py
@@ -29,6 +29,7 @@ class TestAuth(AsyncTextAnalyticsTest):
@pytest.mark.live_test_only
@GlobalTextAnalyticsAccountPreparer()
async def test_active_directory_auth(self):
+ pytest.skip("v3.1-preview.2 doesn't have AAD yet")
token = self.generate_oauth_token()
endpoint = self.get_oauth_endpoint()
text_analytics = TextAnalyticsClient(endpoint, token)
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_json_pointer.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_json_pointer.py
index 211891e638ce..2bd2b1202c6c 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_json_pointer.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_json_pointer.py
@@ -15,7 +15,7 @@
from azure.ai.textanalytics._response_handlers import sentiment_result
-from azure.ai.textanalytics._generated.v3_1_preview_1 import models as _generated_models
+from azure.ai.textanalytics._generated.v3_1_preview_2 import models as _generated_models
@pytest.fixture
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py
index 71ce8fae6d23..4f3b0b0276c9 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py
@@ -16,7 +16,7 @@ class TestRecognizeEntities(TextAnalyticsTest):
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer()
def test_default_api_version(self, client):
- assert "v3.1-preview.1" in client._client._client._base_url
+ assert "v3.1-preview.2" in client._client._client._base_url
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0})
@@ -24,6 +24,6 @@ def test_v3_0_api_version(self, client):
assert "v3.0" in client._client._client._base_url
@GlobalTextAnalyticsAccountPreparer()
- @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_1_PREVIEW_1})
- def test_v3_1_preview_1_api_version(self, client):
- assert "v3.1-preview.1" in client._client._client._base_url
\ No newline at end of file
+ @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_1_PREVIEW})
+ def test_v3_1_preview_api_version(self, client):
+ assert "v3.1-preview.2" in client._client._client._base_url
\ No newline at end of file
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 f42a5430ffd5..dfebcf47e236 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py
@@ -16,7 +16,7 @@ class TestRecognizeEntities(TextAnalyticsTest):
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer()
def test_default_api_version(self, client):
- assert "v3.1-preview.1" in client._client._client._base_url
+ assert "v3.1-preview.2" in client._client._client._base_url
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0})
@@ -24,6 +24,6 @@ def test_v3_0_api_version(self, client):
assert "v3.0" in client._client._client._base_url
@GlobalTextAnalyticsAccountPreparer()
- @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_1_PREVIEW_1})
- def test_v3_1_preview_1_api_version(self, client):
- assert "v3.1-preview.1" in client._client._client._base_url
\ No newline at end of file
+ @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_1_PREVIEW})
+ def test_v3_1_preview_api_version(self, client):
+ assert "v3.1-preview.2" in client._client._client._base_url
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities.py
index fcfea2889843..51dba93a5696 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities.py
@@ -576,6 +576,6 @@ def test_no_offset_length_v3_categorized_entities(self, client):
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0})
def test_string_index_type_not_fail_v3(self, client):
- # make sure that the addition of the string_index_type kwarg for v3.1-preview.1 doesn't
+ # make sure that the addition of the string_index_type kwarg for v3.1-preview doesn't
# cause v3.0 calls to fail
client.recognize_entities(["please don't fail"])
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities_async.py
index eee520fb7a9d..196bc9e91762 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities_async.py
@@ -595,6 +595,6 @@ async def test_no_offset_length_v3_categorized_entities(self, client):
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0})
async def test_string_index_type_not_fail_v3(self, client):
- # make sure that the addition of the string_index_type kwarg for v3.1-preview.1 doesn't
+ # make sure that the addition of the string_index_type kwarg for v3.1-preview doesn't
# cause v3.0 calls to fail
await client.recognize_entities(["please don't fail"])
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities.py
index 3701e1d58e71..4a58b11614f0 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities.py
@@ -583,18 +583,12 @@ def test_no_offset_length_v3_linked_entity_match(self, client):
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0})
def test_string_index_type_not_fail_v3(self, client):
- # make sure that the addition of the string_index_type kwarg for v3.1-preview.1 doesn't
+ # make sure that the addition of the string_index_type kwarg for v3.1-preview doesn't
# cause v3.0 calls to fail
client.recognize_linked_entities(["please don't fail"])
- # currently only have this as playback since the dev endpoint is unreliable
- @pytest.mark.playback_test_only
@GlobalTextAnalyticsAccountPreparer()
- @TextAnalyticsClientPreparer(client_kwargs={
- "api_version": TextAnalyticsApiVersion.V3_1_PREVIEW_2,
- "text_analytics_account_key": os.environ.get('AZURE_TEXT_ANALYTICS_KEY'),
- "text_analytics_account": "https://cognitiveusw2dev.azure-api.net/"
- })
+ @TextAnalyticsClientPreparer()
def test_bing_id(self, client):
result = client.recognize_linked_entities(["Microsoft was founded by Bill Gates and Paul Allen"])
for doc in result:
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py
index 4a2488da0c80..d10902e8a57f 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py
@@ -619,18 +619,12 @@ async def test_no_offset_length_v3_linked_entity_match(self, client):
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0})
async def test_string_index_type_not_fail_v3(self, client):
- # make sure that the addition of the string_index_type kwarg for v3.1-preview.1 doesn't
+ # make sure that the addition of the string_index_type kwarg for v3.1-preview doesn't
# cause v3.0 calls to fail
await client.recognize_linked_entities(["please don't fail"])
- # currently only have this as playback since the dev endpoint is unreliable
- @pytest.mark.playback_test_only
@GlobalTextAnalyticsAccountPreparer()
- @TextAnalyticsClientPreparer(client_kwargs={
- "api_version": TextAnalyticsApiVersion.V3_1_PREVIEW_2,
- "text_analytics_account_key": os.environ.get('AZURE_TEXT_ANALYTICS_KEY'),
- "text_analytics_account": "https://cognitiveusw2dev.azure-api.net/"
- })
+ @TextAnalyticsClientPreparer()
async def test_bing_id(self, client):
result = await client.recognize_linked_entities(["Microsoft was founded by Bill Gates and Paul Allen"])
for doc in result:
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities.py
index fbafdb0e446f..3171d439241d 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities.py
@@ -574,25 +574,14 @@ def test_recognize_pii_entities_v3(self, client):
with pytest.raises(NotImplementedError) as excinfo:
client.recognize_pii_entities(["this should fail"])
- assert "'recognize_pii_entities' endpoint is only available for API version v3.1-preview.1 and up" in str(excinfo.value)
+ assert "'recognize_pii_entities' endpoint is only available for API version v3.1-preview and up" in str(excinfo.value)
- # currently only have this as playback since the dev endpoint is unreliable
- @pytest.mark.playback_test_only
@GlobalTextAnalyticsAccountPreparer()
- @TextAnalyticsClientPreparer(client_kwargs={
- "api_version": TextAnalyticsApiVersion.V3_1_PREVIEW_2,
- "text_analytics_account_key": os.environ.get('AZURE_TEXT_ANALYTICS_KEY'),
- "text_analytics_account": "https://cognitiveusw2dev.azure-api.net/"
- })
+ @TextAnalyticsClientPreparer()
def test_redacted_text(self, client):
result = client.recognize_pii_entities(["My SSN is 859-98-0987."])
self.assertEqual("My SSN is ***********.", result[0].redacted_text)
- @GlobalTextAnalyticsAccountPreparer()
- @TextAnalyticsClientPreparer()
- def test_redacted_text_v3_1_preview_1(self, client):
- result = client.recognize_pii_entities(["My SSN is 859-98-0987."])
- self.assertIsNone(result[0].redacted_text)
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer()
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities_async.py
index 863504c2ebbc..dbc9edc82b74 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities_async.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities_async.py
@@ -572,26 +572,14 @@ async def test_recognize_pii_entities_v3(self, client):
with pytest.raises(NotImplementedError) as excinfo:
await client.recognize_pii_entities(["this should fail"])
- assert "'recognize_pii_entities' endpoint is only available for API version v3.1-preview.1 and up" in str(excinfo.value)
+ assert "'recognize_pii_entities' endpoint is only available for API version v3.1-preview and up" in str(excinfo.value)
- # currently only have this as playback since the dev endpoint is unreliable
- @pytest.mark.playback_test_only
@GlobalTextAnalyticsAccountPreparer()
- @TextAnalyticsClientPreparer(client_kwargs={
- "api_version": TextAnalyticsApiVersion.V3_1_PREVIEW_2,
- "text_analytics_account_key": os.environ.get('AZURE_TEXT_ANALYTICS_KEY'),
- "text_analytics_account": "https://cognitiveusw2dev.azure-api.net/"
- })
+ @TextAnalyticsClientPreparer()
async def test_redacted_text(self, client):
result = await client.recognize_pii_entities(["My SSN is 859-98-0987."])
self.assertEqual("My SSN is ***********.", result[0].redacted_text)
- @GlobalTextAnalyticsAccountPreparer()
- @TextAnalyticsClientPreparer()
- async def test_redacted_text_v3_1_preview_1(self, client):
- result = await client.recognize_pii_entities(["My SSN is 859-98-0987."])
- self.assertIsNone(result[0].redacted_text)
-
@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer()
async def test_phi_domain_filter(self, client):
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_repr.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_repr.py
index 602c910bdcd3..5b9f82f5b3de 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_repr.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_repr.py
@@ -7,7 +7,7 @@
import pytest
from azure.ai.textanalytics import _models
-from azure.ai.textanalytics._generated.v3_1_preview_1 import models as _generated_models
+from azure.ai.textanalytics._generated.v3_1_preview_2 import models as _generated_models
# All features return a tuple of the object and the repr of the obejct
diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/testcase.py b/sdk/textanalytics/azure-ai-textanalytics/tests/testcase.py
index c91d1bf1e3cb..22ab4772fd3e 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/tests/testcase.py
+++ b/sdk/textanalytics/azure-ai-textanalytics/tests/testcase.py
@@ -17,6 +17,8 @@
from devtools_testutils.cognitiveservices_testcase import CognitiveServicesAccountPreparer
from azure_devtools.scenario_tests import ReplayableTest
+REGION = 'westcentralus'
+
class FakeTokenCredential(object):
"""Protocol for classes able to provide OAuth tokens.
@@ -92,7 +94,7 @@ def create_resource(self, name, **kwargs):
)
return {
- 'location': 'westus',
+ 'location': REGION,
'resource_group': rg,
}
@@ -108,7 +110,7 @@ def create_resource(self, name, **kwargs):
text_analytics_account = TextAnalyticsTest._TEXT_ANALYTICS_ACCOUNT
return {
- 'location': 'westus2',
+ 'location': REGION,
'resource_group': TextAnalyticsTest._RESOURCE_GROUP,
'text_analytics_account': text_analytics_account,
'text_analytics_account_key': TextAnalyticsTest._TEXT_ANALYTICS_KEY,
@@ -147,7 +149,9 @@ def create_text_analytics_client(self, **kwargs):
def text_analytics_account():
test_case = AzureTestCase("__init__")
rg_preparer = ResourceGroupPreparer(random_name_enabled=True, name_prefix='pycog')
- text_analytics_preparer = CognitiveServicesAccountPreparer(random_name_enabled=True, name_prefix='pycog')
+ text_analytics_preparer = CognitiveServicesAccountPreparer(
+ random_name_enabled=True, name_prefix='pycog', location=REGION
+ )
try:
rg_name, rg_kwargs = rg_preparer._prepare_create_resource(test_case)