diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs index 64bd492cc2422..7b27ca05276e8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs @@ -4,7 +4,7 @@ public partial class AnalyzeHealthcareEntitiesOperation : Azure.AI.TextAnalytics { public AnalyzeHealthcareEntitiesOperation(string operationId, Azure.AI.TextAnalytics.TextAnalyticsClient client) { } public System.DateTimeOffset CreatedOn { get { throw null; } } - public System.DateTimeOffset ExpiresOn { get { throw null; } } + public System.DateTimeOffset? ExpiresOn { get { throw null; } } public override bool HasCompleted { get { throw null; } } public override bool HasValue { get { throw null; } } public override string Id { get { throw null; } } @@ -167,16 +167,6 @@ public EntitiesTaskParameters() { } public string ModelVersion { get { throw null; } set { } } public Azure.AI.TextAnalytics.StringIndexType StringIndexType { get { throw null; } set { } } } - public partial class Entity - { - internal Entity() { } - public string Category { get { throw null; } } - public double ConfidenceScore { get { throw null; } } - public int Length { get { throw null; } } - public int Offset { get { throw null; } } - public string Subcategory { get { throw null; } } - public string Text { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EntityCategory : System.IEquatable { @@ -242,15 +232,18 @@ internal HealthcareEntity() { } public System.Collections.Generic.IReadOnlyCollection DataSources { get { throw null; } } public int Length { get { throw null; } } public int Offset { get { throw null; } } - public System.Collections.Generic.Dictionary RelatedEntities { get { throw null; } } + public System.Collections.Generic.IDictionary RelatedEntities { get { throw null; } } public string SubCategory { get { throw null; } } public string Text { get { throw null; } } } - public partial class HealthcareEntityRelationType : System.IEquatable + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct HealthcareEntityRelationType : System.IEquatable { - internal HealthcareEntityRelationType() { } + private readonly object _dummy; + private readonly int _dummyPrimitive; public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType DirectionOfBodyStructure; public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType DirectionOfExamination; + public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType DosageOfMedication; public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType RelationOfExamination; public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType TimeOfExamination; public bool Equals(Azure.AI.TextAnalytics.HealthcareEntityRelationType other) { throw null; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOperation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOperation.cs index f4cfe39e38302..2019a87be8aeb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOperation.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOperation.cs @@ -22,19 +22,19 @@ public class AnalyzeHealthcareEntitiesOperation : PageableOperation - /// CreatedOn + /// Time when the operation was created on. /// - public DateTimeOffset CreatedOn { get; } + public DateTimeOffset CreatedOn => _createdOn; /// - /// ExpiresOn + /// Time when the operation will expire. /// - public DateTimeOffset ExpiresOn { get; } + public DateTimeOffset? ExpiresOn => _expiresOn; /// - /// LastModified + /// Time when the operation was last modified on /// - public DateTimeOffset LastModified { get; } + public DateTimeOffset LastModified => _lastModified; /// /// Gets the status of the operation. @@ -80,6 +80,21 @@ public class AnalyzeHealthcareEntitiesOperation : PageableOperation + /// Time when the operation will expire. + /// + private DateTimeOffset? _expiresOn; + + /// + /// Time when the operation was last modified on. + /// + private DateTimeOffset _lastModified; + + /// + /// Time when the operation was created on. + /// + private DateTimeOffset _createdOn; + /// /// Provides the input to be part of AnalyzeHealthcareEntitiesOperation class /// @@ -201,11 +216,14 @@ private async ValueTask UpdateStatusAsync(bool async, CancellationToke _response = update.GetRawResponse(); _status = update.Value.Status; + _createdOn = update.Value.CreatedDateTime; + _expiresOn = update.Value.ExpirationDateTime; + _lastModified = update.Value.LastUpdateDateTime; if (_status == TextAnalyticsOperationStatus.Succeeded) { var nextLink = update.Value.NextLink; - var value = Transforms.ConvertToRecognizeHealthcareEntitiesResultCollection(update.Value.Results, _idToIndexMap); + var value = Transforms.ConvertToAnalyzeHealthcareEntitiesResultCollection(update.Value.Results, _idToIndexMap); _firstPage = Page.FromValues(new List() { value }, nextLink, _response); _hasCompleted = true; } @@ -295,7 +313,7 @@ async Task> NextPageFunc(string { Response jobState = await _serviceClient.HealthStatusNextPageAsync(_apiVersion, nextLink, _showStats).ConfigureAwait(false); - AnalyzeHealthcareEntitiesResultCollection result = Transforms.ConvertToRecognizeHealthcareEntitiesResultCollection(jobState.Value.Results, _idToIndexMap); + AnalyzeHealthcareEntitiesResultCollection result = Transforms.ConvertToAnalyzeHealthcareEntitiesResultCollection(jobState.Value.Results, _idToIndexMap); return Page.FromValues(new List() { result }, jobState.Value.NextLink, jobState.GetRawResponse()); } catch (Exception) @@ -327,7 +345,7 @@ Page NextPageFunc(string nextLink, in { Response jobState = _serviceClient.HealthStatusNextPage(_apiVersion, nextLink, _showStats); - AnalyzeHealthcareEntitiesResultCollection result = Transforms.ConvertToRecognizeHealthcareEntitiesResultCollection(jobState.Value.Results, _idToIndexMap); + AnalyzeHealthcareEntitiesResultCollection result = Transforms.ConvertToAnalyzeHealthcareEntitiesResultCollection(jobState.Value.Results, _idToIndexMap); return Page.FromValues(new List() { result }, jobState.Value.NextLink, jobState.GetRawResponse()); } catch (Exception) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Entity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Entity.cs deleted file mode 100644 index 805bfb10314e7..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Entity.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.AI.TextAnalytics -{ - /// - /// Entity. - /// - [CodeGenModel("Entity")] - public partial class Entity - { - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs index fd55598e6dc1d..94e1ec99bf2bc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs @@ -8,9 +8,9 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.TextAnalytics +namespace Azure.AI.TextAnalytics.Models { - public partial class Entity + internal partial class Entity { internal static Entity DeserializeEntity(JsonElement element) { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs index 2f9ba9583b116..56a5002e7305a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.cs @@ -7,10 +7,10 @@ using System; -namespace Azure.AI.TextAnalytics +namespace Azure.AI.TextAnalytics.Models { /// The Entity. - public partial class Entity + internal partial class Entity { /// Initializes a new instance of Entity. /// Entity text as appears in the request. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs index 8254438133d97..437e9198948fb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.AI.TextAnalytics.Models; using Azure.Core; namespace Azure.AI.TextAnalytics diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs index a3fe3bf2eed7c..e2f6335c263b4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs @@ -19,7 +19,7 @@ internal HealthcareEntity(HealthcareEntityInternal entity) Offset = entity.Offset; Length = entity.Length; DataSources = entity.Links; - RelatedEntities = new Dictionary(entity.RelatedEntities); + RelatedEntities = new Dictionary(); } /// /// Gets the entity text as it appears in the input document. @@ -67,6 +67,6 @@ internal HealthcareEntity(HealthcareEntityInternal entity) /// /// Gets the entities and the relationship between the entities. /// - public Dictionary RelatedEntities { get; } + public IDictionary RelatedEntities { get; internal set; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs index 4dd61d8319e7b..e2ee08f926a0a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs @@ -10,11 +10,5 @@ namespace Azure.AI.TextAnalytics /// HealthcareEntity. /// [CodeGenModel("HealthcareEntity")] - internal partial class HealthcareEntityInternal - { - /// - /// Gets the dictionary for related entity with mapped relation type for each. - /// - internal Dictionary RelatedEntities { get; } = new Dictionary(); - } + internal partial class HealthcareEntityInternal { } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs index 1cc17f53f7379..a8aee59701a95 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs @@ -10,7 +10,7 @@ namespace Azure.AI.TextAnalytics /// /// HealthcareEntityRelationType /// - public class HealthcareEntityRelationType : IEquatable + public readonly struct HealthcareEntityRelationType : IEquatable { /// /// Specifies the relation type DirectionOfBodyStructure. @@ -32,6 +32,11 @@ public class HealthcareEntityRelationType : IEquatable public static readonly HealthcareEntityRelationType TimeOfExamination = new HealthcareEntityRelationType("TimeOfExamination"); + /// + /// Specifies the relation type DosageOfMedication. + /// + public static readonly HealthcareEntityRelationType DosageOfMedication = new HealthcareEntityRelationType("DosageOfMedication"); + private readonly string _value; private HealthcareEntityRelationType(string relationtype) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/PiiEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/PiiEntity.cs index daea7be2fbe9c..dae6b20bd38a1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/PiiEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/PiiEntity.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using Azure.AI.TextAnalytics.Models; + namespace Azure.AI.TextAnalytics { /// diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs index bec0c1aeb7101..99682856d25ae 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs @@ -265,7 +265,7 @@ internal static List ConvertToHealthcareEntityCollection(IEnum return entities; } - internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHealthcareEntitiesResultCollection(HealthcareResult results, IDictionary idToIndexMap) + internal static AnalyzeHealthcareEntitiesResultCollection ConvertToAnalyzeHealthcareEntitiesResultCollection(HealthcareResult results, IDictionary idToIndexMap) { var healthcareEntititesResults = new List(); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs index ecb134ef3328c..c43235ca7b9f2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs @@ -58,6 +58,8 @@ public async Task RecognizeHealthcareEntitiesTest() await operation.WaitForCompletionAsync(PollingInterval); + ValidateOperationProperties(operation); + List resultInPages = operation.Value.ToEnumerableAsync().Result; Assert.AreEqual(1, resultInPages.Count); @@ -94,9 +96,7 @@ public async Task RecognizeHealthcareEntitiesTest() Assert.AreEqual(9, relatedEntity.Length); Assert.AreEqual(27, relatedEntity.Offset); Assert.AreEqual(1.0, relatedEntity.ConfidenceScore); - - // TODO - DosageOfMedication is not in relation types and is returned from the service. Need to add to swagger. - //Assert.AreEqual(HealthcareEntityRelationType.DosageOfMedication, entity.RelatedEntities.ElementAt(0).Value); + Assert.AreEqual(HealthcareEntityRelationType.DosageOfMedication, entity.RelatedEntities.FirstOrDefault().Value); } } } @@ -110,6 +110,8 @@ public async Task RecognizeHealthcareEntitiesWithLanguageTest() await operation.WaitForCompletionAsync(PollingInterval); + ValidateOperationProperties(operation); + //Take the first page AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); @@ -137,6 +139,8 @@ public async Task RecognizeHealthcareEntitiesBatchWithErrorTest() await operation.WaitForCompletionAsync(PollingInterval); + ValidateOperationProperties(operation); + //Take the first page AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); @@ -159,6 +163,8 @@ public async Task RecognizeHealthcareEntitiesBatchConvenienceTest() await operation.WaitForCompletionAsync(PollingInterval); + ValidateOperationProperties(operation); + //Take the first page AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); @@ -185,6 +191,8 @@ public async Task RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest( await operation.WaitForCompletionAsync(PollingInterval); + ValidateOperationProperties(operation); + //Take the first page AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); @@ -206,6 +214,8 @@ public async Task RecognizeHealthcareEntitiesBatchTest() await operation.WaitForCompletionAsync(PollingInterval); + ValidateOperationProperties(operation); + //Take the first page AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); @@ -232,6 +242,8 @@ public async Task RecognizeHealthcareEntitiesBatchWithStatisticsTest() await operation.WaitForCompletionAsync(PollingInterval); + ValidateOperationProperties(operation); + //Take the first page AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); @@ -297,6 +309,8 @@ public async Task AnalyzeHealthcareEntitiesPagination() Assert.IsTrue(operation.HasCompleted); Assert.IsTrue(operation.HasValue); + ValidateOperationProperties(operation); + // try async //There most be 1 page List asyncPages = operation.Value.ToEnumerableAsync().Result; @@ -372,5 +386,16 @@ private void ValidateBatchDocumentsResult(AnalyzeHealthcareEntitiesResultCollect ValidateInDocumenResult(entitiesInDocument.Entities, minimumExpectedOutput[entitiesInDocument.Id]); } } + + private void ValidateOperationProperties(AnalyzeHealthcareEntitiesOperation operation) + { + Assert.AreNotEqual(new DateTimeOffset(), operation.CreatedOn); + Assert.AreNotEqual(new DateTimeOffset(), operation.LastModified); + + if (operation.ExpiresOn.HasValue) + { + Assert.AreNotEqual(new DateTimeOffset(), operation.ExpiresOn.Value); + } + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceTest.json deleted file mode 100644 index 23b262eed101d..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceTest.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "294", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-cce1d902bd20234fa9c79452402d5620-260db3088ff4954f-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "ac8b31cd1fe4a5f7118b81a8154a09ca", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d7080007-db47-40ae-a546-e813cb6b1363", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Mon, 02 Nov 2020 21:59:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "242" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "id": "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 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1208558188", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceTestAsync.json deleted file mode 100644 index 83451caf93aa1..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceTestAsync.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "294", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b1220871fe511140be5e501382eba0c1-3a1e1a51162fcf47-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "71060fe59e6440a18e1dcb07127c5e38", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6639d4d4-e6ca-4750-8afd-c538e594daea", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Mon, 02 Nov 2020 21:59:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "150" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "id": "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 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "400013383", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceWithStatisticsTest.json deleted file mode 100644 index 948d52118cb08..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceWithStatisticsTest.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=true\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "294", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-73cb09bb80fe6148b19640c1611fc69f-9649d1dc0a214d45-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "aa68fd09abaf12159bac58173ccbcb9f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c2da6b7c-0c46-4e86-8e8d-dfb59fe929a3", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Mon, 02 Nov 2020 21:59:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "203" - }, - "ResponseBody": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "statistics": { - "charactersCount": 100, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "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 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1893186830", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceWithStatisticsTestAsync.json deleted file mode 100644 index 984742b48dad1..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchConvenienceWithStatisticsTestAsync.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=true\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "294", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f402a1212d93104c9887e7d319ea8341-5682f09f6773f947-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "b4ea16a0906a3620e059fc121a2d3fd4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3b0ba507-ad3d-4d3e-a802-a7597caccfd5", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Mon, 02 Nov 2020 21:59:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "155" - }, - "ResponseBody": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "statistics": { - "charactersCount": 100, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "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 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "862597014", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchTest.json deleted file mode 100644 index 46a0ae4df8aaf..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchTest.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "294", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b793f9ab46824749b75adce32269afdf-740ecfff35433047-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "54b13717f3889e88e3c55e7e6b40c8be", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "1", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "2", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e2fe07e6-1d66-40aa-a9fe-c3ea1fadf251", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Mon, 02 Nov 2020 21:59:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "152" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "1", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "id": "2", - "entities": [ - { - "text": "111000025", - "category": "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 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1622107649", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchTestAsync.json deleted file mode 100644 index fdbc6fab186c4..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchTestAsync.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "294", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0dceaf10a979784a81aa2fccf087a8ce-7b10da106d3fe840-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "87778b577df43b54c1fe213a2db287d1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "1", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "2", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6f02acb2-466e-4cbf-be7c-aa6a5e5a46d2", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Mon, 02 Nov 2020 21:59:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "132" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "1", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "id": "2", - "entities": [ - { - "text": "111000025", - "category": "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 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "171113489", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithErrorTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithErrorTest.json deleted file mode 100644 index 67348d091f90b..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithErrorTest.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "331", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c470438811d35d47a510115a9f8194d8-1ced1bcc86d93c4c-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "02894db8540cbddf8617855df521d168", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "1", - "text": "", - "language": "en" - }, - { - "id": "2", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "eb25ad0f-673d-46cc-802d-aaee051d2187", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Tue, 03 Nov 2020 02:13:46 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "139" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "id": "2", - "entities": [ - { - "text": "111000025", - "category": "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 - } - ], - "warnings": [] - } - ], - "errors": [ - { - "id": "1", - "error": { - "code": "InvalidArgument", - "message": "Invalid document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "2045235937", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithErrorTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithErrorTestAsync.json deleted file mode 100644 index a3d48842792e0..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithErrorTestAsync.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "331", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-753180af684fa74a90545ebce3b37b91-0872edc50dbe3949-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "e404b5dba1a6cde3ce4fa034ef2e5a68", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "1", - "text": "", - "language": "en" - }, - { - "id": "2", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8ed2af8f-18d1-4bf0-8ccb-2774a36cde88", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Tue, 03 Nov 2020 02:13:47 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "163" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "id": "2", - "entities": [ - { - "text": "111000025", - "category": "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 - } - ], - "warnings": [] - } - ], - "errors": [ - { - "id": "1", - "error": { - "code": "InvalidArgument", - "message": "Invalid document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "782097725", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithStatisticsTest.json deleted file mode 100644 index 521462e03645b..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithStatisticsTest.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=true\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "294", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1687f68a6da7a847b6a6332d070ba1c4-fa87ece00ad70842-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "2b25152f473684496471eb9b8d57e679", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "1", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "2", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5309e1d6-6fe5-43ee-9ec6-c0219c0685a1", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Mon, 02 Nov 2020 21:59:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "145" - }, - "ResponseBody": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "1", - "statistics": { - "charactersCount": 100, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "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 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1811770374", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithStatisticsTestAsync.json deleted file mode 100644 index 45badf6c45cda..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesBatchWithStatisticsTestAsync.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=true\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "294", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-19055a593bae7947b612de88611dc688-474b3be07ced2342-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "74c8351dc950ef2d0d1383edf314e7c8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "1", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - }, - { - "id": "2", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8352b192-e27b-4ef4-af0b-2dd1e11c216f", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2", - "Date": "Mon, 02 Nov 2020 21:59:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "132" - }, - "ResponseBody": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "1", - "statistics": { - "charactersCount": 100, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "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 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1166279893", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesTest.json deleted file mode 100644 index b3e9c72d2d513..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesTest.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "152", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e87028d213055f45b2747f760196a6c0-a8fd3c5c1a051346-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "dddcc8de8b1df2a7bb8870db02c86fec", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4e6d8909-b205-4554-b839-56ec28107633", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1", - "Date": "Mon, 02 Nov 2020 21:59:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1286939485", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesTestAsync.json deleted file mode 100644 index d7784439b394b..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesTestAsync.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "152", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-09b1d41f5edd2b47af6921cc71215490-ac1754d4e5ecbd48-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "4ff6bdd48e941f0c8121f98a5f91782b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8ca9f618-a3f8-4708-9f3a-78ffe403c9c8", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1", - "Date": "Mon, 02 Nov 2020 21:59:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "108" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "344494906", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithDomainTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithDomainTest.json deleted file mode 100644 index 2c1cfc5a05962..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithDomainTest.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "107", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ab227f9d0f949a4491204f8bfce96c07-0ba5c880b77e6749-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "ff65bded004287f21aa1d3b05b97f50d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "I work at Microsoft and my email is atest@microsoft.com", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3f76c1c6-e754-4ba7-bccb-dd7060026b30", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1", - "Date": "Mon, 02 Nov 2020 21:59:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "83" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "I work at Microsoft and my email is *******************", - "id": "0", - "entities": [ - { - "text": "atest@microsoft.com", - "category": "Email", - "offset": 36, - "length": 19, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "337525195", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithDomainTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithDomainTestAsync.json deleted file mode 100644 index e5f6129105872..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithDomainTestAsync.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "107", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2c41c3f89fdbf74e95cdca915b35bcc5-7cb82d0dedb3b14b-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "458a519e986ca99c278ba748dc69c858", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "I work at Microsoft and my email is atest@microsoft.com", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "854b3544-259a-440b-b093-d4253cd118d6", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1", - "Date": "Mon, 02 Nov 2020 21:59:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "82" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "I work at Microsoft and my email is *******************", - "id": "0", - "entities": [ - { - "text": "atest@microsoft.com", - "category": "Email", - "offset": 36, - "length": 19, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1549016743", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithLanguageTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithLanguageTest.json deleted file mode 100644 index bd0ea40ae2340..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithLanguageTest.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "152", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0aa99c837c3a614eb5e854e77c641631-dd14178f43ae984e-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "3e5d88737b2a027b2c897229cd036ddd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "34397768-e1c7-48fb-b473-dc3b5b544c49", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1", - "Date": "Mon, 02 Nov 2020 21:59:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1496908493", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithLanguageTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithLanguageTestAsync.json deleted file mode 100644 index 3167c23717acf..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizePiiEntitiesWithLanguageTestAsync.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://cognitiveusw2dev.azure-api.net/text/analytics/v3.1-preview.3/entities/recognition/pii?showStats=false\u0026domain=PHI\u0026stringIndexType=Utf16CodeUnit", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "152", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7b902055f956534d9234a891a4a8347c-9823b2b1e4627e4e-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201102.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "e0281898674fb192966ccac8dcd26687", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "documents": [ - { - "id": "0", - "text": "A developer with SSN 859-98-0987 whose phone number is 800-102-1100 is building tools with our APIs.", - "language": "en" - } - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "42b64b5e-01aa-42c7-98ef-7fa65539a314", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1", - "Date": "Mon, 02 Nov 2020 21:59:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "104" - }, - "ResponseBody": { - "documents": [ - { - "redactedText": "A developer with SSN *********** whose phone number is ************ is building tools with our APIs.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "U.S. Social Security Number (SSN)", - "offset": 21, - "length": 11, - "confidenceScore": 0.65 - }, - { - "text": "800-102-1100", - "category": "Phone Number", - "offset": 55, - "length": 12, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ], - "Variables": { - "RandomSeed": "1065377519", - "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://cognitiveusw2dev.azure-api.net" - } -} \ No newline at end of file