diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md index 3980dba5c43ab..c949940954626 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md @@ -3,6 +3,8 @@ ## 5.1.0-beta.7 (Unreleased) ### New features - Added property `DisableServiceLogs` to `TextAnalyticsRequestOptions`. +- Added support for Sentiment Analysis as an action type for `StartAnalyzeBatchActions`. +- Changed type of `IncludeOpinionMining` to `bool?`. ### Breaking changes - The client defaults to the latest supported service version, which currently is `3.1-preview.5`. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md index f6819c926dbbd..8854b23ab2062 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md @@ -538,31 +538,22 @@ Text Analytics for health is a containerized service that extracts and labels re ``` ### Run multiple actions Asynchronously -This functionality allows running multiple actions in one or more documents. Actions include entity recognition, linked entity recognition, key phrase extraction, and Personally Identifiable Information (PII) Recognition. For more information see [Using analyze][analyze_operation_howto]. +This functionality allows running multiple actions in one or more documents. Actions include entity recognition, linked entity recognition, key phrase extraction, Personally Identifiable Information (PII) Recognition, and sentiment analysis. For more information see [Using analyze][analyze_operation_howto]. ```C# Snippet:AnalyzeOperationBatchConvenienceAsync string documentA = @"We love this trail and make the trip every year. The views are breathtaking and well worth the hike! Yesterday was foggy though, so we missed the spectacular views. We tried again today and it was amazing. Everyone in my family liked the trail although - it was too challenging for the less athletic among us. - Not necessarily recommended for small children. - A hotel close to the trail offers services for childcare in case you want that."; + it was too challenging for the less athletic among us."; string documentB = @"Last week we stayed at Hotel Foo to celebrate our anniversary. The staff knew about our anniversary so they helped me organize a little surprise for my partner. The room was clean and with the decoration I requested. It was perfect!"; - string documentC = @"That was the best day of my life! We went on a 4 day trip where we stayed at Hotel Foo. - They had great amenities that included an indoor pool, a spa, and a bar. - The spa offered couples massages which were really good. - The spa was clean and felt very peaceful. Overall the whole experience was great. - We will definitely come back."; - var batchDocuments = new List { documentA, - documentB, - documentC + documentB }; TextAnalyticsActions actions = new TextAnalyticsActions() @@ -571,6 +562,7 @@ This functionality allows running multiple actions in one or more documents. Act RecognizeEntitiesOptions = new List() { new RecognizeEntitiesOptions() }, RecognizePiiEntitiesOptions = new List() { new RecognizePiiEntitiesOptions() }, RecognizeLinkedEntitiesOptions = new List() { new RecognizeLinkedEntitiesOptions() }, + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() }, DisplayName = "AnalyzeOperationSample" }; @@ -591,88 +583,117 @@ This functionality allows running multiple actions in one or more documents. Act await foreach (AnalyzeBatchActionsResult documentsInPage in operation.Value) { - RecognizeEntitiesResultCollection entitiesResult = documentsInPage.RecognizeEntitiesActionsResults.FirstOrDefault().Result; - - ExtractKeyPhrasesResultCollection keyPhrasesResult = documentsInPage.ExtractKeyPhrasesActionsResults.FirstOrDefault().Result; - - RecognizePiiEntitiesResultCollection piiResult = documentsInPage.RecognizePiiEntitiesActionsResults.FirstOrDefault().Result; - - RecognizeLinkedEntitiesResultCollection linkedEntitiesResult = documentsInPage.RecognizeLinkedEntitiesActionsResults.FirstOrDefault().Result; + IReadOnlyCollection keyPhrasesActionsResults = documentsInPage.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection entitiesActionsResults = documentsInPage.RecognizeEntitiesActionsResults; + IReadOnlyCollection piiActionsResults = documentsInPage.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = documentsInPage.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = documentsInPage.AnalyzeSentimentActionsResults; Console.WriteLine("Recognized Entities"); - - foreach (RecognizeEntitiesResult result in entitiesResult) + int docNumber = 1; + foreach (RecognizeEntitiesActionResult entitiesActionResults in entitiesActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); - - foreach (CategorizedEntity entity in result.Entities) + foreach (RecognizeEntitiesResult result in entitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); + + foreach (CategorizedEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized PII Entities"); - - foreach (RecognizePiiEntitiesResult result in piiResult) + docNumber = 1; + foreach (RecognizePiiEntitiesActionResult piiActionResults in piiActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); - - foreach (PiiEntity entity in result.Entities) + foreach (RecognizePiiEntitiesResult result in piiActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); + + foreach (PiiEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Key Phrases"); - - foreach (ExtractKeyPhrasesResult result in keyPhrasesResult) + docNumber = 1; + foreach (ExtractKeyPhrasesActionResult keyPhrasesActionResult in keyPhrasesActionsResults) { - Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); - - foreach (string keyphrase in result.KeyPhrases) + foreach (ExtractKeyPhrasesResult result in keyPhrasesActionResult.Result) { - Console.WriteLine($" {keyphrase}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); + + foreach (string keyphrase in result.KeyPhrases) + { + Console.WriteLine($" {keyphrase}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized Linked Entities"); - - foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesResult) + docNumber = 1; + foreach (RecognizeLinkedEntitiesActionResult linkedEntitiesActionResults in entityLinkingActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); - - foreach (LinkedEntity entity in result.Entities) + foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Name}"); - Console.WriteLine($" DataSource: {entity.DataSource}"); - Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); - Console.WriteLine($" Language: {entity.Language}"); - Console.WriteLine($" DataSource Url: {entity.Url}"); - - Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); - foreach (LinkedEntityMatch match in entity.Matches) + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); + + foreach (LinkedEntity entity in result.Entities) { - Console.WriteLine($" Match Text: {match.Text}"); - Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); - Console.WriteLine($" Offset: {match.Offset}"); - Console.WriteLine($" Length: {match.Length}"); + Console.WriteLine($" Entity: {entity.Name}"); + Console.WriteLine($" DataSource: {entity.DataSource}"); + Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); + Console.WriteLine($" Language: {entity.Language}"); + Console.WriteLine($" DataSource Url: {entity.Url}"); + + Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); + foreach (LinkedEntityMatch match in entity.Matches) + { + Console.WriteLine($" Match Text: {match.Text}"); + Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); + Console.WriteLine($" Offset: {match.Offset}"); + Console.WriteLine($" Length: {match.Length}"); + } + Console.WriteLine(""); } Console.WriteLine(""); } - Console.WriteLine(""); + } + + Console.WriteLine("Analyze Sentiment"); + docNumber = 1; + foreach (AnalyzeSentimentActionResult analyzeSentimentActionsResult in analyzeSentimentActionsResults) + { + foreach (AnalyzeSentimentResult result in analyzeSentimentActionsResult.Result) + { + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Sentiment is {result.DocumentSentiment.Sentiment}, with confidence scores: "); + Console.WriteLine($" Positive confidence score: {result.DocumentSentiment.ConfidenceScores.Positive}."); + Console.WriteLine($" Neutral confidence score: {result.DocumentSentiment.ConfidenceScores.Neutral}."); + Console.WriteLine($" Negative confidence score: {result.DocumentSentiment.ConfidenceScores.Negative}."); + Console.WriteLine(""); + } } } } @@ -746,7 +767,7 @@ Samples are provided for each main functional area, and for each area, samples a - [Recognize PII Entities][recognize_pii_entities_sample] - [Recognize Linked Entities][recognize_linked_entities_sample] - [Recognize Healthcare Entities][recognize_healthcare_sample] -- [Run Analyze Operation][analyze_operation_sample] +- [Run multiple actions][analyze_operation_sample] ### Advanced samples - [Analyze Sentiment with Opinion Mining][analyze_sentiment_opinion_mining_sample] 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 9c64057db574d..3fcdd31a651d9 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 @@ -33,6 +33,7 @@ public AnalyzeBatchActionsOptions() { } public partial class AnalyzeBatchActionsResult { internal AnalyzeBatchActionsResult() { } + public System.Collections.Generic.IReadOnlyCollection AnalyzeSentimentActionsResults { get { throw null; } } public System.Collections.Generic.IReadOnlyCollection ExtractKeyPhrasesActionsResults { get { throw null; } } public System.Collections.Generic.IReadOnlyCollection RecognizeEntitiesActionsResults { get { throw null; } } public System.Collections.Generic.IReadOnlyCollection RecognizeLinkedEntitiesActionsResults { get { throw null; } } @@ -78,10 +79,15 @@ internal AnalyzeHealthcareEntitiesResultCollection() : base (default(System.Coll public string ModelVersion { get { throw null; } } public Azure.AI.TextAnalytics.TextDocumentBatchStatistics Statistics { get { throw null; } } } + public partial class AnalyzeSentimentActionResult : Azure.AI.TextAnalytics.TextAnalyticsActionDetails + { + internal AnalyzeSentimentActionResult() { } + public Azure.AI.TextAnalytics.AnalyzeSentimentResultCollection Result { get { throw null; } } + } public partial class AnalyzeSentimentOptions : Azure.AI.TextAnalytics.TextAnalyticsRequestOptions { public AnalyzeSentimentOptions() { } - public bool IncludeOpinionMining { get { throw null; } set { } } + public bool? IncludeOpinionMining { get { throw null; } set { } } } public partial class AnalyzeSentimentResult : Azure.AI.TextAnalytics.TextAnalyticsResult { @@ -681,6 +687,7 @@ internal TextAnalyticsActionDetails() { } public partial class TextAnalyticsActions { public TextAnalyticsActions() { } + public System.Collections.Generic.IReadOnlyCollection AnalyzeSentimentOptions { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyCollection ExtractKeyPhrasesOptions { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyCollection RecognizeEntitiesOptions { get { throw null; } set { } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md index f985b2afea26f..e4e4eff11043f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md @@ -19,6 +19,7 @@ Azure Cognitive Services Text Analytics is a cloud service that provides advance * Personally Identifiable Information (PII) Recognition * Linked Entity Recognition * Healthcare Recognition +* Running multiple actions in one or more documents ## Common scenarios samples - [Detect Language](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeBatchActions.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeBatchActions.md index 9ae8897fe0e80..6a42697f60c6e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeBatchActions.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeBatchActions.md @@ -1,5 +1,5 @@ # Running multiple actions -This sample demonstrates how to run multiple actions in one or more documents. Actions include entity recognition, linked entity recognition, key phrase extraction, and Personally Identifiable Information (PII) Recognition. To get started you will need a Text Analytics endpoint and credentials. See [README][README] for links and instructions. +This sample demonstrates how to run multiple actions in one or more documents. Actions include entity recognition, linked entity recognition, key phrase extraction, Personally Identifiable Information (PII) Recognition, and sentiment analysis. To get started you will need a Text Analytics endpoint and credentials. See [README][README] for links and instructions. ## Creating a `TextAnalyticsClient` @@ -21,25 +21,16 @@ To run multiple actions in multiple documents, call `StartAnalyzeBatchActionsAsy string documentA = @"We love this trail and make the trip every year. The views are breathtaking and well worth the hike! Yesterday was foggy though, so we missed the spectacular views. We tried again today and it was amazing. Everyone in my family liked the trail although - it was too challenging for the less athletic among us. - Not necessarily recommended for small children. - A hotel close to the trail offers services for childcare in case you want that."; + it was too challenging for the less athletic among us."; string documentB = @"Last week we stayed at Hotel Foo to celebrate our anniversary. The staff knew about our anniversary so they helped me organize a little surprise for my partner. The room was clean and with the decoration I requested. It was perfect!"; - string documentC = @"That was the best day of my life! We went on a 4 day trip where we stayed at Hotel Foo. - They had great amenities that included an indoor pool, a spa, and a bar. - The spa offered couples massages which were really good. - The spa was clean and felt very peaceful. Overall the whole experience was great. - We will definitely come back."; - var batchDocuments = new List { documentA, - documentB, - documentC + documentB }; TextAnalyticsActions actions = new TextAnalyticsActions() @@ -48,6 +39,7 @@ To run multiple actions in multiple documents, call `StartAnalyzeBatchActionsAsy RecognizeEntitiesOptions = new List() { new RecognizeEntitiesOptions() }, RecognizePiiEntitiesOptions = new List() { new RecognizePiiEntitiesOptions() }, RecognizeLinkedEntitiesOptions = new List() { new RecognizeLinkedEntitiesOptions() }, + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() }, DisplayName = "AnalyzeOperationSample" }; @@ -68,88 +60,117 @@ To run multiple actions in multiple documents, call `StartAnalyzeBatchActionsAsy await foreach (AnalyzeBatchActionsResult documentsInPage in operation.Value) { - RecognizeEntitiesResultCollection entitiesResult = documentsInPage.RecognizeEntitiesActionsResults.FirstOrDefault().Result; - - ExtractKeyPhrasesResultCollection keyPhrasesResult = documentsInPage.ExtractKeyPhrasesActionsResults.FirstOrDefault().Result; - - RecognizePiiEntitiesResultCollection piiResult = documentsInPage.RecognizePiiEntitiesActionsResults.FirstOrDefault().Result; - - RecognizeLinkedEntitiesResultCollection linkedEntitiesResult = documentsInPage.RecognizeLinkedEntitiesActionsResults.FirstOrDefault().Result; + IReadOnlyCollection keyPhrasesActionsResults = documentsInPage.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection entitiesActionsResults = documentsInPage.RecognizeEntitiesActionsResults; + IReadOnlyCollection piiActionsResults = documentsInPage.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = documentsInPage.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = documentsInPage.AnalyzeSentimentActionsResults; Console.WriteLine("Recognized Entities"); - - foreach (RecognizeEntitiesResult result in entitiesResult) + int docNumber = 1; + foreach (RecognizeEntitiesActionResult entitiesActionResults in entitiesActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); - - foreach (CategorizedEntity entity in result.Entities) + foreach (RecognizeEntitiesResult result in entitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); + + foreach (CategorizedEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized PII Entities"); - - foreach (RecognizePiiEntitiesResult result in piiResult) + docNumber = 1; + foreach (RecognizePiiEntitiesActionResult piiActionResults in piiActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); - - foreach (PiiEntity entity in result.Entities) + foreach (RecognizePiiEntitiesResult result in piiActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); + + foreach (PiiEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Key Phrases"); - - foreach (ExtractKeyPhrasesResult result in keyPhrasesResult) + docNumber = 1; + foreach (ExtractKeyPhrasesActionResult keyPhrasesActionResult in keyPhrasesActionsResults) { - Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); - - foreach (string keyphrase in result.KeyPhrases) + foreach (ExtractKeyPhrasesResult result in keyPhrasesActionResult.Result) { - Console.WriteLine($" {keyphrase}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); + + foreach (string keyphrase in result.KeyPhrases) + { + Console.WriteLine($" {keyphrase}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized Linked Entities"); - - foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesResult) + docNumber = 1; + foreach (RecognizeLinkedEntitiesActionResult linkedEntitiesActionResults in entityLinkingActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); - - foreach (LinkedEntity entity in result.Entities) + foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Name}"); - Console.WriteLine($" DataSource: {entity.DataSource}"); - Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); - Console.WriteLine($" Language: {entity.Language}"); - Console.WriteLine($" DataSource Url: {entity.Url}"); - - Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); - foreach (LinkedEntityMatch match in entity.Matches) + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); + + foreach (LinkedEntity entity in result.Entities) { - Console.WriteLine($" Match Text: {match.Text}"); - Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); - Console.WriteLine($" Offset: {match.Offset}"); - Console.WriteLine($" Length: {match.Length}"); + Console.WriteLine($" Entity: {entity.Name}"); + Console.WriteLine($" DataSource: {entity.DataSource}"); + Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); + Console.WriteLine($" Language: {entity.Language}"); + Console.WriteLine($" DataSource Url: {entity.Url}"); + + Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); + foreach (LinkedEntityMatch match in entity.Matches) + { + Console.WriteLine($" Match Text: {match.Text}"); + Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); + Console.WriteLine($" Offset: {match.Offset}"); + Console.WriteLine($" Length: {match.Length}"); + } + Console.WriteLine(""); } Console.WriteLine(""); } - Console.WriteLine(""); + } + + Console.WriteLine("Analyze Sentiment"); + docNumber = 1; + foreach (AnalyzeSentimentActionResult analyzeSentimentActionsResult in analyzeSentimentActionsResults) + { + foreach (AnalyzeSentimentResult result in analyzeSentimentActionsResult.Result) + { + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Sentiment is {result.DocumentSentiment.Sentiment}, with confidence scores: "); + Console.WriteLine($" Positive confidence score: {result.DocumentSentiment.ConfidenceScores.Positive}."); + Console.WriteLine($" Neutral confidence score: {result.DocumentSentiment.ConfidenceScores.Neutral}."); + Console.WriteLine($" Negative confidence score: {result.DocumentSentiment.ConfidenceScores.Negative}."); + Console.WriteLine(""); + } } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchActionsOperation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchActionsOperation.cs index 1cfd0c501721a..91f6a843d4a97 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchActionsOperation.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchActionsOperation.cs @@ -266,7 +266,7 @@ private async ValueTask UpdateStatusAsync(bool async, CancellationToke { // we need to first assign a value and then mark the operation as completed to avoid race conditions var nextLink = update.Value.NextLink; - var value = Transforms.ConvertToAnalyzeOperationResult(update.Value, _idToIndexMap); + var value = Transforms.ConvertToAnalyzeBatchActionsResult(update.Value, _idToIndexMap); _firstPage = Page.FromValues(new List() { value }, nextLink, _response); _hasCompleted = true; } @@ -298,7 +298,7 @@ async Task> NextPageFunc(string nextLink, int? p { Response jobState = await _serviceClient.AnalyzeStatusNextPageAsync(RemoveExtraInformationFromNextLink(nextLink)).ConfigureAwait(false); - AnalyzeBatchActionsResult result = Transforms.ConvertToAnalyzeOperationResult(jobState.Value, _idToIndexMap); + AnalyzeBatchActionsResult result = Transforms.ConvertToAnalyzeBatchActionsResult(jobState.Value, _idToIndexMap); return Page.FromValues(new List() { result }, jobState.Value.NextLink, jobState.GetRawResponse()); } catch (Exception) @@ -327,7 +327,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) { Response jobState = _serviceClient.AnalyzeStatusNextPage(RemoveExtraInformationFromNextLink(nextLink)); - AnalyzeBatchActionsResult result = Transforms.ConvertToAnalyzeOperationResult(jobState.Value, _idToIndexMap); + AnalyzeBatchActionsResult result = Transforms.ConvertToAnalyzeBatchActionsResult(jobState.Value, _idToIndexMap); return Page.FromValues(new List() { result }, jobState.Value.NextLink, jobState.GetRawResponse()); } catch (Exception) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchActionsResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchActionsResult.cs index 867e02114f8bb..cb758a204d1dc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchActionsResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchActionsResult.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System.Collections.Generic; -using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics { @@ -16,25 +15,17 @@ internal AnalyzeBatchActionsResult( IReadOnlyCollection recognizeEntitiesActionResults, IReadOnlyCollection recognizePiiEntitiesActionResults, IReadOnlyCollection recognizeLinkedEntitiesActionsResults, + IReadOnlyCollection analyzeSentimentActionsResults, TextDocumentBatchStatistics statistics) { ExtractKeyPhrasesActionsResults = extractKeyPhrasesActionResult; RecognizeEntitiesActionsResults = recognizeEntitiesActionResults; RecognizePiiEntitiesActionsResults = recognizePiiEntitiesActionResults; RecognizeLinkedEntitiesActionsResults = recognizeLinkedEntitiesActionsResults; + AnalyzeSentimentActionsResults = analyzeSentimentActionsResults; Statistics = statistics; } - internal AnalyzeBatchActionsResult(AnalyzeJobState jobState, IDictionary map) - { - AnalyzeBatchActionsResult actionResults = Transforms.ConvertToAnalyzeBatchActionsResult(jobState, map); - ExtractKeyPhrasesActionsResults = actionResults.ExtractKeyPhrasesActionsResults; - RecognizeEntitiesActionsResults = actionResults.RecognizeEntitiesActionsResults; - RecognizePiiEntitiesActionsResults = actionResults.RecognizePiiEntitiesActionsResults; - RecognizeLinkedEntitiesActionsResults = actionResults.RecognizeLinkedEntitiesActionsResults; - Statistics = actionResults.Statistics; - } - /// /// Determines the collection of ExtractKeyPhrasesActionResult. /// @@ -55,6 +46,11 @@ internal AnalyzeBatchActionsResult(AnalyzeJobState jobState, IDictionary public IReadOnlyCollection RecognizeLinkedEntitiesActionsResults { get; } + /// + /// Determines the collection of AnalyzeSentimentActionsResults. + /// + public IReadOnlyCollection AnalyzeSentimentActionsResults { get; } + /// /// Gets statistics about the operation executed and how it was processed /// by the service. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeSentimentActionResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeSentimentActionResult.cs new file mode 100644 index 0000000000000..07ed890e69969 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeSentimentActionResult.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.AI.TextAnalytics.Models; + +namespace Azure.AI.TextAnalytics +{ + /// + /// Action result class for analyze sentiment result. + /// + public class AnalyzeSentimentActionResult : TextAnalyticsActionDetails + { + internal AnalyzeSentimentActionResult(AnalyzeSentimentResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error) + { + Result = result; + } + + /// + /// Gets the result collection for analyze sentiment. + /// + public AnalyzeSentimentResultCollection Result { get; } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeSentimentOptions.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeSentimentOptions.cs index 7753cf626ad19..78f9af218e861 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeSentimentOptions.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeSentimentOptions.cs @@ -30,6 +30,6 @@ internal AnalyzeSentimentOptions(TextAnalyticsRequestOptions options) /// will contain the result of this analysis. /// Only available for service version v3.1-preview and up. /// - public bool IncludeOpinionMining { get; set; } + public bool? IncludeOpinionMining { get; set; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs index 2fd87099467be..3636d470b6c2d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs @@ -24,7 +24,7 @@ internal static AnalyzeTasks DeserializeAnalyzeTasks(JsonElement element) Optional> entityRecognitionPiiTasks = default; Optional> keyPhraseExtractionTasks = default; Optional> entityLinkingTasks = default; - Optional> sentimentAnalysisTasks = default; + Optional> sentimentAnalysisTasks = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("details")) @@ -124,10 +124,10 @@ internal static AnalyzeTasks DeserializeAnalyzeTasks(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(TasksStateTasksSentimentAnalysisTasksItem.DeserializeTasksStateTasksSentimentAnalysisTasksItem(item)); + array.Add(SentimentAnalysisTasksItem.DeserializeSentimentAnalysisTasksItem(item)); } sentimentAnalysisTasks = array; continue; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.cs index 48d8e5c917445..5f2338bb09068 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.cs @@ -28,7 +28,7 @@ internal AnalyzeTasks(int completed, int failed, int inProgress, int total) EntityRecognitionPiiTasks = new ChangeTrackingList(); KeyPhraseExtractionTasks = new ChangeTrackingList(); EntityLinkingTasks = new ChangeTrackingList(); - SentimentAnalysisTasks = new ChangeTrackingList(); + SentimentAnalysisTasks = new ChangeTrackingList(); } /// Initializes a new instance of AnalyzeTasks. @@ -42,7 +42,7 @@ internal AnalyzeTasks(int completed, int failed, int inProgress, int total) /// . /// . /// . - internal AnalyzeTasks(TasksStateTasksDetails details, int completed, int failed, int inProgress, int total, IReadOnlyList entityRecognitionTasks, IReadOnlyList entityRecognitionPiiTasks, IReadOnlyList keyPhraseExtractionTasks, IReadOnlyList entityLinkingTasks, IReadOnlyList sentimentAnalysisTasks) + internal AnalyzeTasks(TasksStateTasksDetails details, int completed, int failed, int inProgress, int total, IReadOnlyList entityRecognitionTasks, IReadOnlyList entityRecognitionPiiTasks, IReadOnlyList keyPhraseExtractionTasks, IReadOnlyList entityLinkingTasks, IReadOnlyList sentimentAnalysisTasks) { Details = details; Completed = completed; @@ -65,6 +65,6 @@ internal AnalyzeTasks(TasksStateTasksDetails details, int completed, int failed, public IReadOnlyList EntityRecognitionPiiTasks { get; } public IReadOnlyList KeyPhraseExtractionTasks { get; } public IReadOnlyList EntityLinkingTasks { get; } - public IReadOnlyList SentimentAnalysisTasks { get; } + public IReadOnlyList SentimentAnalysisTasks { get; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionTasksItemProperties.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.Serialization.cs similarity index 62% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionTasksItemProperties.Serialization.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.Serialization.cs index 3a04b46feabcd..c79b963c797b8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionTasksItemProperties.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class EntityRecognitionTasksItemProperties + internal partial class Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 { - internal static EntityRecognitionTasksItemProperties DeserializeEntityRecognitionTasksItemProperties(JsonElement element) + internal static Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 DeserializeComponents15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1(JsonElement element) { Optional results = default; foreach (var property in element.EnumerateObject()) @@ -28,7 +28,7 @@ internal static EntityRecognitionTasksItemProperties DeserializeEntityRecognitio continue; } } - return new EntityRecognitionTasksItemProperties(results.Value); + return new Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1(results.Value); } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.cs new file mode 100644 index 0000000000000..838812338d5fd --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.AI.TextAnalytics.Models +{ + /// The Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1. + internal partial class Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 + { + /// Initializes a new instance of Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1. + internal Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1() + { + } + + /// Initializes a new instance of Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1. + /// . + internal Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1(EntitiesResult results) + { + Results = results; + } + + public EntitiesResult Results { get; } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionPiiTasksItemProperties.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.Serialization.cs similarity index 63% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionPiiTasksItemProperties.Serialization.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.Serialization.cs index c1b2ee734e9ff..022097ed32d1c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionPiiTasksItemProperties.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class EntityRecognitionPiiTasksItemProperties + internal partial class Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 { - internal static EntityRecognitionPiiTasksItemProperties DeserializeEntityRecognitionPiiTasksItemProperties(JsonElement element) + internal static Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 DeserializeComponents15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1(JsonElement element) { Optional results = default; foreach (var property in element.EnumerateObject()) @@ -29,7 +29,7 @@ internal static EntityRecognitionPiiTasksItemProperties DeserializeEntityRecogni continue; } } - return new EntityRecognitionPiiTasksItemProperties(results.Value); + return new Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1(results.Value); } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.cs new file mode 100644 index 0000000000000..a9e00c24f07d1 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.AI.TextAnalytics; + +namespace Azure.AI.TextAnalytics.Models +{ + /// The Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1. + internal partial class Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 + { + /// Initializes a new instance of Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1. + internal Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1() + { + } + + /// Initializes a new instance of Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1. + /// . + internal Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1(PiiEntitiesResult results) + { + Results = results; + } + + public PiiEntitiesResult Results { get; } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionTasksItemProperties.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.Serialization.cs similarity index 62% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionTasksItemProperties.Serialization.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.Serialization.cs index b7478de0d248f..b46d4da12b93a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionTasksItemProperties.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class KeyPhraseExtractionTasksItemProperties + internal partial class Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 { - internal static KeyPhraseExtractionTasksItemProperties DeserializeKeyPhraseExtractionTasksItemProperties(JsonElement element) + internal static Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 DeserializeComponents1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1(JsonElement element) { Optional results = default; foreach (var property in element.EnumerateObject()) @@ -28,7 +28,7 @@ internal static KeyPhraseExtractionTasksItemProperties DeserializeKeyPhraseExtra continue; } } - return new KeyPhraseExtractionTasksItemProperties(results.Value); + return new Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1(results.Value); } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.cs new file mode 100644 index 0000000000000..3058a30f69fe9 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.AI.TextAnalytics.Models +{ + /// The Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1. + internal partial class Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 + { + /// Initializes a new instance of Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1. + internal Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1() + { + } + + /// Initializes a new instance of Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1. + /// . + internal Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1(KeyPhraseResult results) + { + Results = results; + } + + public KeyPhraseResult Results { get; } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTasksItemsProperties.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1.Serialization.cs similarity index 64% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTasksItemsProperties.Serialization.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1.Serialization.cs index 5b35bebc6d009..c1a8997672a56 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTasksItemsProperties.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class EntityLinkingTasksItemsProperties + internal partial class ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1 { - internal static EntityLinkingTasksItemsProperties DeserializeEntityLinkingTasksItemsProperties(JsonElement element) + internal static ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1 DeserializeComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1(JsonElement element) { Optional results = default; foreach (var property in element.EnumerateObject()) @@ -28,7 +28,7 @@ internal static EntityLinkingTasksItemsProperties DeserializeEntityLinkingTasksI continue; } } - return new EntityLinkingTasksItemsProperties(results.Value); + return new ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1(results.Value); } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1.cs new file mode 100644 index 0000000000000..517fe63649155 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.AI.TextAnalytics.Models +{ + /// The ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1. + internal partial class ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1 + { + /// Initializes a new instance of ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1. + internal ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1() + { + } + + /// Initializes a new instance of ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1. + /// . + internal ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1(EntityLinkingResult results) + { + Results = results; + } + + public EntityLinkingResult Results { get; } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTasksItemsProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTasksItemsProperties.cs deleted file mode 100644 index 61104038aaa0f..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTasksItemsProperties.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.AI.TextAnalytics.Models -{ - /// The ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1. - internal partial class EntityLinkingTasksItemsProperties - { - /// Initializes a new instance of EntityLinkingTasksItemsProperties. - internal EntityLinkingTasksItemsProperties() - { - } - - /// Initializes a new instance of EntityLinkingTasksItemsProperties. - /// . - internal EntityLinkingTasksItemsProperties(EntityLinkingResult results) - { - Results = results; - } - - public EntityLinkingResult Results { get; } - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionPiiTasksItemProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionPiiTasksItemProperties.cs deleted file mode 100644 index d359c3aa3ae88..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionPiiTasksItemProperties.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure.AI.TextAnalytics; - -namespace Azure.AI.TextAnalytics.Models -{ - /// The Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1. - internal partial class EntityRecognitionPiiTasksItemProperties - { - /// Initializes a new instance of EntityRecognitionPiiTasksItemProperties. - internal EntityRecognitionPiiTasksItemProperties() - { - } - - /// Initializes a new instance of EntityRecognitionPiiTasksItemProperties. - /// . - internal EntityRecognitionPiiTasksItemProperties(PiiEntitiesResult results) - { - Results = results; - } - - public PiiEntitiesResult Results { get; } - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionTasksItemProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionTasksItemProperties.cs deleted file mode 100644 index f91af84f43c14..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionTasksItemProperties.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.AI.TextAnalytics.Models -{ - /// The Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1. - internal partial class EntityRecognitionTasksItemProperties - { - /// Initializes a new instance of EntityRecognitionTasksItemProperties. - internal EntityRecognitionTasksItemProperties() - { - } - - /// Initializes a new instance of EntityRecognitionTasksItemProperties. - /// . - internal EntityRecognitionTasksItemProperties(EntitiesResult results) - { - Results = results; - } - - public EntitiesResult Results { get; } - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifestTasks.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifestTasks.cs index 3f794c1ac2f04..e3a59e88ed181 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifestTasks.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobManifestTasks.cs @@ -23,6 +23,5 @@ public JobManifestTasks() EntityLinkingTasks = new ChangeTrackingList(); SentimentAnalysisTasks = new ChangeTrackingList(); } - public IList SentimentAnalysisTasks { get; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionTasksItemProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionTasksItemProperties.cs deleted file mode 100644 index 5d50ea24378fe..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionTasksItemProperties.cs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.AI.TextAnalytics.Models -{ - /// The Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1. - internal partial class KeyPhraseExtractionTasksItemProperties - { - /// Initializes a new instance of KeyPhraseExtractionTasksItemProperties. - internal KeyPhraseExtractionTasksItemProperties() - { - } - - /// Initializes a new instance of KeyPhraseExtractionTasksItemProperties. - /// . - internal KeyPhraseExtractionTasksItemProperties(KeyPhraseResult results) - { - Results = results; - } - - public KeyPhraseResult Results { get; } - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTasksItem.Serialization.cs similarity index 83% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.Serialization.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTasksItem.Serialization.cs index fe140d69483ab..465b144a70bf6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTasksItem.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.AI.TextAnalytics.Models { - internal partial class TasksStateTasksSentimentAnalysisTasksItem + internal partial class SentimentAnalysisTasksItem { - internal static TasksStateTasksSentimentAnalysisTasksItem DeserializeTasksStateTasksSentimentAnalysisTasksItem(JsonElement element) + internal static SentimentAnalysisTasksItem DeserializeSentimentAnalysisTasksItem(JsonElement element) { Optional results = default; DateTimeOffset lastUpdateDateTime = default; @@ -48,7 +48,7 @@ internal static TasksStateTasksSentimentAnalysisTasksItem DeserializeTasksStateT continue; } } - return new TasksStateTasksSentimentAnalysisTasksItem(lastUpdateDateTime, name.Value, status, results.Value); + return new SentimentAnalysisTasksItem(lastUpdateDateTime, name.Value, status, results.Value); } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTasksItem.cs similarity index 52% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTasksItem.cs index 741626f7d3767..c5afed10d5c13 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTasksItem.cs @@ -11,21 +11,21 @@ namespace Azure.AI.TextAnalytics.Models { /// The TasksStateTasksSentimentAnalysisTasksItem. - internal partial class TasksStateTasksSentimentAnalysisTasksItem : TaskState + internal partial class SentimentAnalysisTasksItem : TaskState { - /// Initializes a new instance of TasksStateTasksSentimentAnalysisTasksItem. + /// Initializes a new instance of SentimentAnalysisTasksItem. /// . /// . - internal TasksStateTasksSentimentAnalysisTasksItem(DateTimeOffset lastUpdateDateTime, TextAnalyticsOperationStatus status) : base(lastUpdateDateTime, status) + internal SentimentAnalysisTasksItem(DateTimeOffset lastUpdateDateTime, TextAnalyticsOperationStatus status) : base(lastUpdateDateTime, status) { } - /// Initializes a new instance of TasksStateTasksSentimentAnalysisTasksItem. + /// Initializes a new instance of SentimentAnalysisTasksItem. /// . /// . /// . /// . - internal TasksStateTasksSentimentAnalysisTasksItem(DateTimeOffset lastUpdateDateTime, string name, TextAnalyticsOperationStatus status, SentimentResponse results) : base(lastUpdateDateTime, name, status) + internal SentimentAnalysisTasksItem(DateTimeOffset lastUpdateDateTime, string name, TextAnalyticsOperationStatus status, SentimentResponse results) : base(lastUpdateDateTime, name, status) { Results = results; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityLinkingTasksItemsProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityLinkingTasksItemsProperties.cs deleted file mode 100644 index b64ff5d2c4dfe..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityLinkingTasksItemsProperties.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Core; - -namespace Azure.AI.TextAnalytics.Models -{ - [CodeGenModel("ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1")] - internal partial class EntityLinkingTasksItemsProperties { } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityRecognitionPiiTasksItemsProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityRecognitionPiiTasksItemsProperties.cs deleted file mode 100644 index 487da0f030e5f..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityRecognitionPiiTasksItemsProperties.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Core; - -namespace Azure.AI.TextAnalytics.Models -{ - [CodeGenModel("Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1")] - internal partial class EntityRecognitionPiiTasksItemProperties { } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityRecognitionTasksItemProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityRecognitionTasksItemProperties.cs deleted file mode 100644 index e139c763b0678..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/EntityRecognitionTasksItemProperties.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Core; - -namespace Azure.AI.TextAnalytics.Models -{ - [CodeGenModel("Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1")] - internal partial class EntityRecognitionTasksItemProperties { } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/KeyPhraseExtractionTasksItemProperties.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/KeyPhraseExtractionTasksItemProperties.cs deleted file mode 100644 index c055fda24809a..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/KeyPhraseExtractionTasksItemProperties.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Core; - -namespace Azure.AI.TextAnalytics.Models -{ - [CodeGenModel("Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1")] - internal partial class KeyPhraseExtractionTasksItemProperties - { - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/SentimentAnalysisTasksItem.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/SentimentAnalysisTasksItem.cs new file mode 100644 index 0000000000000..ee213ddc02072 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Internal/SentimentAnalysisTasksItem.cs @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.AI.TextAnalytics.Models +{ + /// + /// SentimentAnalysisTasksItem. + /// + [CodeGenModel("TasksStateTasksSentimentAnalysisTasksItem")] + internal partial class SentimentAnalysisTasksItem { } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/JobManifestTasks.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/JobManifestTasks.cs index 1a4388a13cac7..0660c5596db61 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/JobManifestTasks.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/JobManifestTasks.cs @@ -32,5 +32,10 @@ internal partial class JobManifestTasks /// EntityLinkingTasks /// internal IList EntityLinkingTasks { get; set; } + + /// + /// SentimentAnalysisTasks + /// + internal IList SentimentAnalysisTasks { get; set; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsActions.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsActions.cs index 5addafa85e0b3..49015ea8fa9fe 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsActions.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsActions.cs @@ -32,5 +32,10 @@ public class TextAnalyticsActions /// Recognize Linked Entities actions configurations. /// public IReadOnlyCollection RecognizeLinkedEntitiesOptions { get; set; } + + /// + /// Analyze Sentiment actions configurations. + /// + public IReadOnlyCollection AnalyzeSentimentOptions { get; set; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs index ca2f97ccb6f4f..aaee97187556c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs @@ -2757,7 +2757,8 @@ private async Task StartAnalyzeHealthcareEnt #region Analyze Operation /// - /// StartAnalyzeBatchActionsAsync enables the application to have multiple actions including entity recognition, PII entity recognition, linked entity recognition and key phrases extraction. + /// StartAnalyzeBatchActionsAsync enables the application to have multiple actions including entity recognition, + /// PII entity recognition, linked entity recognition, key phrases extraction, and sentiment analysis. /// Accepts a list of strings which are analyzed asynchronously. /// For document length limits, maximum batch size, and supported text encoding, see /// . @@ -2781,7 +2782,8 @@ public virtual async Task StartAnalyzeBatchActions } /// - /// StartAnalyzeBatchActions enables the application to have multiple actions including entity recognition, PII entity recognition, linked entity recognition and key phrases extraction. + /// StartAnalyzeBatchActionsAsync enables the application to have multiple actions including entity recognition, + /// PII entity recognition, linked entity recognition, key phrases extraction, and sentiment analysis. /// Accepts a list of strings which are analyzed asynchronously. /// For document length limits, maximum batch size, and supported text encoding, see /// . @@ -2805,7 +2807,8 @@ public virtual AnalyzeBatchActionsOperation StartAnalyzeBatchActions(IEnumerable } /// - /// StartAnalyzeBatchActions enables the application to have multiple actions including entity recognition, PII entity recognition, linked entity recognition and key phrases extraction. + /// StartAnalyzeBatchActionsAsync enables the application to have multiple actions including entity recognition, + /// PII entity recognition, linked entity recognition, key phrases extraction, and sentiment analysis. /// Accepts a list of strings which are analyzed asynchronously. /// For document length limits, maximum batch size, and supported text encoding, see /// . @@ -2828,7 +2831,8 @@ public virtual AnalyzeBatchActionsOperation StartAnalyzeBatchActions(IEnumerable } /// - /// StartAnalyzeBatchActionsAsync enables the application to have multiple actions including entity recognition, PII entity recognition, linked entity recognition and key phrases extraction. + /// StartAnalyzeBatchActionsAsync enables the application to have multiple actions including entity recognition, + /// PII entity recognition, linked entity recognition, key phrases extraction, and sentiment analysis. /// Accepts a list of strings which are analyzed asynchronously. /// For document length limits, maximum batch size, and supported text encoding, see /// . @@ -2872,6 +2876,10 @@ private AnalyzeBatchActionsOperation StartAnalyzeBatchActions(MultiLanguageBatch { tasks.EntityLinkingTasks = Transforms.ConvertFromEntityLinkingOptionsToTasks(actions.RecognizeLinkedEntitiesOptions); } + if (actions.AnalyzeSentimentOptions != null) + { + tasks.SentimentAnalysisTasks = Transforms.ConvertFromAnalyzeSentimentOptionsToTasks(actions.AnalyzeSentimentOptions); + } AnalyzeBatchInput analyzeDocumentInputs = new AnalyzeBatchInput(batchInput, tasks) { DisplayName = actions.DisplayName }; @@ -2916,6 +2924,10 @@ private async Task StartAnalyzeBatchActionsAsync(M { tasks.EntityLinkingTasks = Transforms.ConvertFromEntityLinkingOptionsToTasks(actions.RecognizeLinkedEntitiesOptions); } + if (actions.AnalyzeSentimentOptions != null) + { + tasks.SentimentAnalysisTasks = Transforms.ConvertFromAnalyzeSentimentOptionsToTasks(actions.AnalyzeSentimentOptions); + } AnalyzeBatchInput analyzeDocumentInputs = new AnalyzeBatchInput(batchInput, tasks) { DisplayName = actions.DisplayName }; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs index a7f84e0622f79..bb0e99f20b567 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs @@ -374,6 +374,20 @@ internal static KeyPhrasesTask ConvertToKeyPhrasesTask(ExtractKeyPhrasesOptions }; } + internal static SentimentAnalysisTask ConvertToSentimentAnalysisTask(AnalyzeSentimentOptions option) + { + return new SentimentAnalysisTask() + { + Parameters = new SentimentAnalysisTaskParameters() + { + ModelVersion = option.ModelVersion, + StringIndexType = option.StringIndexType, + LoggingOptOut = option.DisableServiceLogs, + OpinionMining = option.IncludeOpinionMining + } + }; + } + internal static IList ConvertFromEntityLinkingOptionsToTasks(IReadOnlyCollection recognizeLinkedEntityOptions) { List list = new List(); @@ -422,9 +436,16 @@ internal static IList ConvertFromPiiEntityOptionsToTasks(IReadOnlyColle return list; } - internal static AnalyzeBatchActionsResult ConvertToAnalyzeOperationResult(AnalyzeJobState jobState, IDictionary map) + internal static IList ConvertFromAnalyzeSentimentOptionsToTasks(IReadOnlyCollection analyzeSentimentOptions) { - return new AnalyzeBatchActionsResult(jobState, map); + List list = new List(); + + foreach (AnalyzeSentimentOptions option in analyzeSentimentOptions) + { + list.Add(ConvertToSentimentAnalysisTask(option)); + } + + return list; } private static string[] parseActionErrorTarget(string targetReference) @@ -453,6 +474,7 @@ internal static AnalyzeBatchActionsResult ConvertToAnalyzeBatchActionsResult(Ana IDictionary entitiesRecognitionErrors = new Dictionary(); IDictionary entitiesPiiRecognitionErrors = new Dictionary(); IDictionary entitiesLinkingRecognitionErrors = new Dictionary(); + IDictionary analyzeSentimentErrors = new Dictionary(); if (jobState.Errors.Any()) { @@ -478,6 +500,10 @@ internal static AnalyzeBatchActionsResult ConvertToAnalyzeBatchActionsResult(Ana { entitiesLinkingRecognitionErrors.Add(taskIndex, error); } + else if ("sentimentAnalysisTasks".Equals(taskName)) + { + analyzeSentimentErrors.Add(taskIndex, error); + } else { throw new InvalidOperationException($"Invalid task name in target reference - {taskName}"); @@ -485,12 +511,35 @@ internal static AnalyzeBatchActionsResult ConvertToAnalyzeBatchActionsResult(Ana } } - var extractKeyPhrasesActionResult = ConvertToExtractKeyPhrasesActionResults(jobState, map, keyPhraseErrors); - var recognizeEntitiesActionResults = ConvertToRecognizeEntitiesActionsResults(jobState, map, entitiesRecognitionErrors); - var recognizePiiEntitiesActionResults = ConvertToRecognizePiiEntitiesActionsResults(jobState, map, entitiesPiiRecognitionErrors); - var recognizeLinkedEntitiesActionsResults = ConvertToRecognizeLinkedEntitiesActionsResults(jobState, map, entitiesLinkingRecognitionErrors); + return new AnalyzeBatchActionsResult( + ConvertToExtractKeyPhrasesActionResults(jobState, map, keyPhraseErrors), + ConvertToRecognizeEntitiesActionsResults(jobState, map, entitiesRecognitionErrors), + ConvertToRecognizePiiEntitiesActionsResults(jobState, map, entitiesPiiRecognitionErrors), + ConvertToRecognizeLinkedEntitiesActionsResults(jobState, map, entitiesLinkingRecognitionErrors), + ConvertToAnalyzeSentimentActionsResults(jobState, map, analyzeSentimentErrors), + jobState.Statistics); + } - return new AnalyzeBatchActionsResult(extractKeyPhrasesActionResult, recognizeEntitiesActionResults, recognizePiiEntitiesActionResults, recognizeLinkedEntitiesActionsResults, jobState.Statistics); + private static IReadOnlyCollection ConvertToAnalyzeSentimentActionsResults(AnalyzeJobState jobState, IDictionary idToIndexMap, IDictionary tasksErrors) + { + var collection = new List(); + int index = 0; + foreach (SentimentAnalysisTasksItem task in jobState.Tasks.SentimentAnalysisTasks) + { + tasksErrors.TryGetValue(index, out TextAnalyticsErrorInternal taskError); + + if (taskError != null) + { + collection.Add(new AnalyzeSentimentActionResult(null, task.LastUpdateDateTime, taskError)); + } + else + { + collection.Add(new AnalyzeSentimentActionResult(ConvertToAnalyzeSentimentResultCollection(task.Results, idToIndexMap), task.LastUpdateDateTime, null)); + } + index++; + } + + return collection; } private static IReadOnlyCollection ConvertToRecognizeLinkedEntitiesActionsResults(AnalyzeJobState jobState, IDictionary idToIndexMap, IDictionary tasksErrors) @@ -515,7 +564,7 @@ private static IReadOnlyCollection ConvertT return collection; } - internal static IReadOnlyCollection ConvertToExtractKeyPhrasesActionResults(AnalyzeJobState jobState, IDictionary idToIndexMap, IDictionary tasksErrors) + private static IReadOnlyCollection ConvertToExtractKeyPhrasesActionResults(AnalyzeJobState jobState, IDictionary idToIndexMap, IDictionary tasksErrors) { var collection = new List(); int index = 0; @@ -537,7 +586,7 @@ internal static IReadOnlyCollection ConvertToExtr return collection; } - internal static IReadOnlyCollection ConvertToRecognizePiiEntitiesActionsResults(AnalyzeJobState jobState, IDictionary idToIndexMap, IDictionary tasksErrors) + private static IReadOnlyCollection ConvertToRecognizePiiEntitiesActionsResults(AnalyzeJobState jobState, IDictionary idToIndexMap, IDictionary tasksErrors) { var collection = new List(); int index = 0; @@ -559,7 +608,7 @@ internal static IReadOnlyCollection ConvertToR return collection; } - internal static IReadOnlyCollection ConvertToRecognizeEntitiesActionsResults(AnalyzeJobState jobState, IDictionary idToIndexMap, IDictionary tasksErrors) + private static IReadOnlyCollection ConvertToRecognizeEntitiesActionsResults(AnalyzeJobState jobState, IDictionary idToIndexMap, IDictionary tasksErrors) { var collection = new List(); int index = 0; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeOperationTests.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeOperationTests.cs index 1f0486bc39ce6..d060e022786b7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeOperationTests.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeOperationTests.cs @@ -49,20 +49,10 @@ public async Task AnalyzeOperationWithAADTest() //Take the first page AnalyzeBatchActionsResult resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); - IReadOnlyCollection entitiesResult = resultCollection.RecognizeEntitiesActionsResults; + IReadOnlyCollection keyPhrasesActionsResults = resultCollection.ExtractKeyPhrasesActionsResults; - ExtractKeyPhrasesResultCollection keyPhrasesResult = resultCollection.ExtractKeyPhrasesActionsResults.ElementAt(0).Result; - - IReadOnlyCollection piiResult = resultCollection.RecognizePiiEntitiesActionsResults; - - IReadOnlyCollection elResult = resultCollection.RecognizeLinkedEntitiesActionsResults; - - Assert.IsNotNull(keyPhrasesResult); - Assert.IsNotNull(entitiesResult); - Assert.IsNotNull(piiResult); - Assert.IsNotNull(elResult); - - Assert.AreEqual(2, keyPhrasesResult.Count); + Assert.IsNotNull(keyPhrasesActionsResults); + Assert.AreEqual(2, keyPhrasesActionsResults.FirstOrDefault().Result.Count); } [RecordedTest] @@ -82,31 +72,30 @@ public async Task AnalyzeOperationTest() //Take the first page AnalyzeBatchActionsResult resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); - IReadOnlyCollection entitiesResult = resultCollection.RecognizeEntitiesActionsResults; - - IReadOnlyCollection keyPhrasesResult = resultCollection.ExtractKeyPhrasesActionsResults; - - IReadOnlyCollection piiResult = resultCollection.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entitiesActionsResults = resultCollection.RecognizeEntitiesActionsResults; + IReadOnlyCollection keyPhrasesActionsResults = resultCollection.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection piiActionsResults = resultCollection.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = resultCollection.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = resultCollection.AnalyzeSentimentActionsResults; - IReadOnlyCollection elResult = resultCollection.RecognizeLinkedEntitiesActionsResults; - - Assert.IsNotNull(keyPhrasesResult); - Assert.IsNotNull(entitiesResult); - Assert.IsNotNull(piiResult); - Assert.IsNotNull(elResult); + Assert.IsNotNull(keyPhrasesActionsResults); + Assert.IsNotNull(entitiesActionsResults); + Assert.IsNotNull(piiActionsResults); + Assert.IsNotNull(entityLinkingActionsResults); + Assert.IsNotNull(analyzeSentimentActionsResults); var keyPhrasesListId1 = new List { "CEO of SpaceX", "Elon Musk", "Tesla" }; var keyPhrasesListId2 = new List { "Tesla stock", "year" }; - var keyPhrases = keyPhrasesResult.FirstOrDefault().Result; - Assert.AreEqual(2, keyPhrases.Count); + ExtractKeyPhrasesResultCollection keyPhrasesResult = keyPhrasesActionsResults.FirstOrDefault().Result; + Assert.AreEqual(2, keyPhrasesResult.Count); - foreach (string keyphrase in keyPhrases[0].KeyPhrases) + foreach (string keyphrase in keyPhrasesResult[0].KeyPhrases) { Assert.IsTrue(keyPhrasesListId1.Contains(keyphrase)); } - foreach (string keyphrase in keyPhrases[1].KeyPhrases) + foreach (string keyphrase in keyPhrasesResult[1].KeyPhrases) { Assert.IsTrue(keyPhrasesListId2.Contains(keyphrase)); } @@ -142,10 +131,11 @@ public async Task AnalyzeOperationWithLanguageTest() //Take the first page AnalyzeBatchActionsResult resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); - ExtractKeyPhrasesResultCollection keyPhrasesResult = resultCollection.ExtractKeyPhrasesActionsResults.ElementAt(0).Result; + IReadOnlyCollection keyPhrasesActionsResults = resultCollection.ExtractKeyPhrasesActionsResults; - Assert.IsNotNull(keyPhrasesResult); + Assert.IsNotNull(keyPhrasesActionsResults); + ExtractKeyPhrasesResultCollection keyPhrasesResult = keyPhrasesActionsResults.FirstOrDefault().Result; Assert.AreEqual(2, keyPhrasesResult.Count); Assert.AreEqual("AnalyzeOperationWithLanguageTest", operation.DisplayName); @@ -187,6 +177,7 @@ public async Task AnalyzeOperationWithMultipleActions() RecognizeEntitiesOptions = new List() { new RecognizeEntitiesOptions() }, RecognizePiiEntitiesOptions = new List() { new RecognizePiiEntitiesOptions() }, RecognizeLinkedEntitiesOptions = new List() { new RecognizeLinkedEntitiesOptions() }, + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() }, DisplayName = "AnalyzeOperationWithMultipleTasks" }; @@ -200,9 +191,9 @@ public async Task AnalyzeOperationWithMultipleActions() await operation.WaitForCompletionAsync(); Assert.AreEqual(0, operation.ActionsFailed); - Assert.AreEqual(4, operation.ActionsSucceeded); + Assert.AreEqual(5, operation.ActionsSucceeded); Assert.AreEqual(0, operation.ActionsInProgress); - Assert.AreEqual(4, operation.ActionsTotal); + Assert.AreEqual(5, operation.ActionsTotal); Assert.AreNotEqual(new DateTimeOffset(), operation.CreatedOn); Assert.AreNotEqual(new DateTimeOffset(), operation.LastModified); Assert.AreNotEqual(new DateTimeOffset(), operation.ExpiresOn); @@ -210,37 +201,37 @@ public async Task AnalyzeOperationWithMultipleActions() //Take the first page AnalyzeBatchActionsResult resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); - RecognizeEntitiesResultCollection entitiesResult = resultCollection.RecognizeEntitiesActionsResults.ElementAt(0).Result; - - ExtractKeyPhrasesResultCollection keyPhrasesResult = resultCollection.ExtractKeyPhrasesActionsResults.ElementAt(0).Result; - - RecognizePiiEntitiesResultCollection piiResult = resultCollection.RecognizePiiEntitiesActionsResults.ElementAt(0).Result; - - RecognizeLinkedEntitiesResultCollection entityLinkingResult = resultCollection.RecognizeLinkedEntitiesActionsResults.ElementAt(0).Result; + IReadOnlyCollection entitiesActionsResults = resultCollection.RecognizeEntitiesActionsResults; + IReadOnlyCollection keyPhrasesActionsResults = resultCollection.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection piiActionsResults = resultCollection.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = resultCollection.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = resultCollection.AnalyzeSentimentActionsResults; - Assert.IsNotNull(keyPhrasesResult); - Assert.IsNotNull(entitiesResult); - Assert.IsNotNull(piiResult); - Assert.IsNotNull(entityLinkingResult); + Assert.IsNotNull(keyPhrasesActionsResults); + Assert.IsNotNull(entitiesActionsResults); + Assert.IsNotNull(piiActionsResults); + Assert.IsNotNull(entityLinkingActionsResults); Assert.AreEqual("AnalyzeOperationWithMultipleTasks", operation.DisplayName); // Keyphrases - Assert.AreEqual(2, keyPhrasesResult.Count); + ExtractKeyPhrasesResultCollection keyPhrasesResults = keyPhrasesActionsResults.FirstOrDefault().Result; + Assert.AreEqual(2, keyPhrasesResults.Count); var keyPhrasesListId1 = new List { "Bill Gates", "Paul Allen", "Microsoft" }; var keyPhrasesListId2 = new List { "gato", "perro", "veterinario" }; - foreach (string keyphrase in keyPhrasesResult[0].KeyPhrases) + foreach (string keyphrase in keyPhrasesResults[0].KeyPhrases) { Assert.IsTrue(keyPhrasesListId1.Contains(keyphrase)); } - foreach (string keyphrase in keyPhrasesResult[1].KeyPhrases) + foreach (string keyphrase in keyPhrasesResults[1].KeyPhrases) { Assert.IsTrue(keyPhrasesListId2.Contains(keyphrase)); } // Entities + RecognizeEntitiesResultCollection entitiesResult = entitiesActionsResults.FirstOrDefault().Result; Assert.AreEqual(2, entitiesResult.Count); Assert.AreEqual(3, entitiesResult[0].Entities.Count); @@ -255,16 +246,16 @@ public async Task AnalyzeOperationWithMultipleActions() } // PII + RecognizePiiEntitiesResultCollection piiResult = piiActionsResults.FirstOrDefault().Result; + Assert.AreEqual(2, piiResult.Count); - Assert.AreEqual(2, entitiesResult.Count); - - Assert.AreEqual(3, entitiesResult[0].Entities.Count); - Assert.IsNotNull(entitiesResult[0].Id); - Assert.IsNotNull(entitiesResult[0].Entities); - Assert.IsNotNull(entitiesResult[0].Error); + Assert.AreEqual(3, piiResult[0].Entities.Count); + Assert.IsNotNull(piiResult[0].Id); + Assert.IsNotNull(piiResult[0].Entities); + Assert.IsNotNull(piiResult[0].Error); // Entity Linking - + RecognizeLinkedEntitiesResultCollection entityLinkingResult = entityLinkingActionsResults.FirstOrDefault().Result; Assert.AreEqual(2, entityLinkingResult.Count); Assert.AreEqual(3, entityLinkingResult[0].Entities.Count); @@ -286,6 +277,13 @@ public async Task AnalyzeOperationWithMultipleActions() Assert.AreEqual("Wikipedia", entity.DataSource); } } + + // Analyze sentiment + AnalyzeSentimentResultCollection analyzeSentimentResult = analyzeSentimentActionsResults.FirstOrDefault().Result; + Assert.AreEqual(2, analyzeSentimentResult.Count); + + Assert.AreEqual(TextSentiment.Neutral, analyzeSentimentResult[0].DocumentSentiment.Sentiment); + Assert.AreEqual(TextSentiment.Neutral, analyzeSentimentResult[1].DocumentSentiment.Sentiment); } [RecordedTest] @@ -394,11 +392,11 @@ public async Task AnalyzeOperationBatchWithErrorsInDocumentTest() AnalyzeBatchActionsResult resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); //Key phrases - var keyPhrasesActions = resultCollection.ExtractKeyPhrasesActionsResults.ToList(); + List keyPhrasesActions = resultCollection.ExtractKeyPhrasesActionsResults.ToList(); Assert.AreEqual(1, keyPhrasesActions.Count); - var results = keyPhrasesActions[0].Result; + ExtractKeyPhrasesResultCollection results = keyPhrasesActions[0].Result; Assert.IsFalse(results[0].HasError); Assert.IsTrue(results[1].HasError); Assert.AreEqual(TextAnalyticsErrorCode.InvalidDocument, results[1].Error.ErrorCode.ToString()); @@ -428,16 +426,17 @@ public async Task AnalyzeOperationBatchWithPHIDomain() //Take the first page AnalyzeBatchActionsResult resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); - RecognizePiiEntitiesResultCollection result = resultCollection.RecognizePiiEntitiesActionsResults.ElementAt(0).Result; + IReadOnlyCollection piiActionsResults = resultCollection.RecognizePiiEntitiesActionsResults; - Assert.IsNotNull(result); + Assert.IsNotNull(piiActionsResults); - Assert.AreEqual(1, result.Count); + RecognizePiiEntitiesResultCollection piiResult = piiActionsResults.FirstOrDefault().Result; + Assert.AreEqual(1, piiResult.Count); - Assert.IsNotEmpty(result[0].Entities.RedactedText); + Assert.IsNotEmpty(piiResult[0].Entities.RedactedText); - Assert.IsFalse(result[0].HasError); - Assert.AreEqual(2, result[0].Entities.Count); + Assert.IsFalse(piiResult[0].HasError); + Assert.AreEqual(2, piiResult[0].Entities.Count); } [RecordedTest] @@ -505,6 +504,7 @@ public async Task AnalyzeOperationAllActionsAndDisableServiceLogs () RecognizeEntitiesOptions = new List() { new RecognizeEntitiesOptions() { DisableServiceLogs = true } }, RecognizePiiEntitiesOptions = new List() { new RecognizePiiEntitiesOptions() { DisableServiceLogs = false } }, RecognizeLinkedEntitiesOptions = new List() { new RecognizeLinkedEntitiesOptions() { DisableServiceLogs = true } }, + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() { DisableServiceLogs = true } }, }; AnalyzeBatchActionsOperation operation = await client.StartAnalyzeBatchActionsAsync(batchConvenienceDocuments, batchActions); @@ -514,22 +514,59 @@ public async Task AnalyzeOperationAllActionsAndDisableServiceLogs () //Take the first page AnalyzeBatchActionsResult resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); - ExtractKeyPhrasesResultCollection keyPhrasesResult = resultCollection.ExtractKeyPhrasesActionsResults.FirstOrDefault().Result; - RecognizeEntitiesResultCollection entitiesResult = resultCollection.RecognizeEntitiesActionsResults.FirstOrDefault().Result; - RecognizePiiEntitiesResultCollection piiResult = resultCollection.RecognizePiiEntitiesActionsResults.FirstOrDefault().Result; - RecognizeLinkedEntitiesResultCollection entityLinkingResult = resultCollection.RecognizeLinkedEntitiesActionsResults.FirstOrDefault().Result; + IReadOnlyCollection keyPhrasesActionsResults = resultCollection.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection entitiesActionsResults = resultCollection.RecognizeEntitiesActionsResults; + IReadOnlyCollection piiActionsResults = resultCollection.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = resultCollection.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = resultCollection.AnalyzeSentimentActionsResults; - Assert.IsNotNull(keyPhrasesResult); - Assert.AreEqual(2, keyPhrasesResult.Count); + Assert.IsNotNull(keyPhrasesActionsResults); + Assert.AreEqual(2, keyPhrasesActionsResults.FirstOrDefault().Result.Count); - Assert.IsNotNull(entitiesResult); - Assert.AreEqual(2, keyPhrasesResult.Count); + Assert.IsNotNull(entitiesActionsResults); + Assert.AreEqual(2, entitiesActionsResults.FirstOrDefault().Result.Count); - Assert.IsNotNull(piiResult); - Assert.AreEqual(2, keyPhrasesResult.Count); + Assert.IsNotNull(piiActionsResults); + Assert.AreEqual(2, piiActionsResults.FirstOrDefault().Result.Count); - Assert.IsNotNull(entityLinkingResult); - Assert.AreEqual(2, keyPhrasesResult.Count); + Assert.IsNotNull(entityLinkingActionsResults); + Assert.AreEqual(2, entityLinkingActionsResults.FirstOrDefault().Result.Count); + + Assert.IsNotNull(analyzeSentimentActionsResults); + Assert.AreEqual(2, analyzeSentimentActionsResults.FirstOrDefault().Result.Count); + } + + [RecordedTest] + public async Task AnalyzeOperationAnalyzeSentimentWithOpinionMining() + { + TextAnalyticsClient client = GetClient(); + + var documents = new List + { + "The park was clean and pretty. The bathrooms and restaurant were not clean.", + }; + + TextAnalyticsActions batchActions = new TextAnalyticsActions() + { + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() { IncludeOpinionMining = true } }, + DisplayName = "AnalyzeOperationWithOpinionMining", + }; + + AnalyzeBatchActionsOperation operation = await client.StartAnalyzeBatchActionsAsync(documents, batchActions); + + await operation.WaitForCompletionAsync(); + + //Take the first page + AnalyzeBatchActionsResult resultCollection = operation.Value.ToEnumerableAsync().Result.FirstOrDefault(); + + IReadOnlyCollection analyzeSentimentActionsResults = resultCollection.AnalyzeSentimentActionsResults; + + Assert.IsNotNull(analyzeSentimentActionsResults); + + AnalyzeSentimentResultCollection analyzeSentimentResult = analyzeSentimentActionsResults.FirstOrDefault().Result; + Assert.AreEqual(1, analyzeSentimentResult.Count); + + Assert.AreEqual(TextSentiment.Mixed, analyzeSentimentResult[0].DocumentSentiment.Sentiment); } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAllActionsAndDisableServiceLogs.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAllActionsAndDisableServiceLogs.json index 34db1e4ff1705..b459657d96d65 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAllActionsAndDisableServiceLogs.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAllActionsAndDisableServiceLogs.json @@ -5,11 +5,11 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", - "Content-Length": "658", + "Content-Length": "757", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d6c20ef98d5c7c4185a778dbbef017ed-01140da1451dfc44-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-517f9c885145ac40b42e56fa080630a2-bbf0ff424b458a4a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "13e0c556bafad42b44377d5dcb3bdff8", "x-ms-return-client-request-id": "true" }, @@ -63,62 +63,70 @@ "stringIndexType": "Utf16CodeUnit" } } + ], + "sentimentAnalysisTasks": [ + { + "parameters": { + "loggingOptOut": true, + "stringIndexType": "Utf16CodeUnit" + } + } ] } }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "8422f6d5-0de2-42db-94e3-f2b1f3b434a3", - "Date": "Wed, 12 May 2021 17:44:05 GMT", - "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699", + "apim-request-id": "891b4eb2-c389-4995-bb11-cffdb4226c30", + "Date": "Fri, 14 May 2021 19:14:32 GMT", + "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "434" + "x-envoy-upstream-service-time": "10383" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "6d5d8d3b7b3a98a0edd66523564e1f46", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "bd35e136-63c2-4759-8f4d-5752740278f6", + "apim-request-id": "bd97aa22-4e07-4b78-9378-09268a349c17", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:08 GMT", + "Date": "Fri, 14 May 2021 19:14:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "2729" + "x-envoy-upstream-service-time": "10123" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:07Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:07Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -205,46 +213,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c9b2ea1f77470d9c42cfa3e6410ede8d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c0cfd45b-994e-497e-8793-1124fafc7f17", + "apim-request-id": "5a5c854b-c157-43da-a528-c9f65b9c1b23", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:12 GMT", + "Date": "Fri, 14 May 2021 19:14:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "2778" + "x-envoy-upstream-service-time": "88" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:07Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:07Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -331,46 +339,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "20af0867b40adbc92547262454087ef5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "88a72ba9-8a16-4ef2-a0bb-c8bbb80a7ea5", + "apim-request-id": "39ab1a7c-3457-4f66-86c1-8dd63be5e26a", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:22 GMT", + "Date": "Fri, 14 May 2021 19:14:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "7645" + "x-envoy-upstream-service-time": "2586" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, - "completed": 2, + "completed": 1, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -452,81 +460,51 @@ "modelVersion": "2020-02-01" } } - ], - "keyPhraseExtractionTasks": [ - { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", - "name": "NA", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "e03e36171688c4b0f04f2a6bd7ba56df", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fe3dc91c-f35e-420a-be76-5aa84a86464c", + "apim-request-id": "cb162537-dc85-4928-bebd-2a018bd750e7", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:23 GMT", + "Date": "Fri, 14 May 2021 19:14:49 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": "34" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, - "completed": 2, + "completed": 1, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -608,81 +586,51 @@ "modelVersion": "2020-02-01" } } - ], - "keyPhraseExtractionTasks": [ - { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", - "name": "NA", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "4ebcd7f7fe9f6a3b21d7a3ff5178b93a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "134f224a-fc6a-4acf-b76f-28d8368ab3b5", + "apim-request-id": "c11a7e38-94c1-4147-97e7-28d2b5494d2b", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:26 GMT", + "Date": "Fri, 14 May 2021 19:14:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "2635" + "x-envoy-upstream-service-time": "55" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, - "completed": 2, + "completed": 1, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -764,81 +712,51 @@ "modelVersion": "2020-02-01" } } - ], - "keyPhraseExtractionTasks": [ - { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", - "name": "NA", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0bceae50fdcf500557ea2fbb895e036b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "79fd78cf-5343-415b-b2a6-b06a99d21878", + "apim-request-id": "c376e1bf-1dbf-4f22-bd60-d7ccf928c00b", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:27 GMT", + "Date": "Fri, 14 May 2021 19:14:51 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": "33" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, - "completed": 2, + "completed": 1, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -920,81 +838,51 @@ "modelVersion": "2020-02-01" } } - ], - "keyPhraseExtractionTasks": [ - { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", - "name": "NA", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7c2c46f0304c1855fad3beb073b07378", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a61946d1-4626-4286-b7dc-3c86201ecf7a", + "apim-request-id": "ce7fa1ed-fe80-4fc8-bcb3-c12b232d85eb", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:28 GMT", + "Date": "Fri, 14 May 2021 19:14:52 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": "37" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, - "completed": 2, + "completed": 1, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -1076,81 +964,51 @@ "modelVersion": "2020-02-01" } } - ], - "keyPhraseExtractionTasks": [ - { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", - "name": "NA", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "281af0964bebf90fd16bf6b4cf80e0c3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3b756ca2-cf74-4721-9a7f-630ea6a29401", + "apim-request-id": "cf114fc5-57e1-4893-b0d0-3dd4f1774488", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:29 GMT", + "Date": "Fri, 14 May 2021 19:14:53 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": "42" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, - "completed": 2, + "completed": 1, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -1232,81 +1090,51 @@ "modelVersion": "2020-02-01" } } - ], - "keyPhraseExtractionTasks": [ - { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", - "name": "NA", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0a0f37d33c4b20ee58b510fb3f55dca7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4df99165-1355-4a03-b2e6-3a035183b11a", + "apim-request-id": "b79c1f82-c0a3-4660-9c11-69158c4df060", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:30 GMT", + "Date": "Fri, 14 May 2021 19:14:54 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": "41" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:38Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:38Z" }, - "completed": 2, + "completed": 1, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -1388,81 +1216,51 @@ "modelVersion": "2020-02-01" } } - ], - "keyPhraseExtractionTasks": [ - { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", - "name": "NA", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9925b776da43a57f3732aae03aa1497a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "87705e60-c144-435b-b426-6652ba61442a", + "apim-request-id": "67b1652c-57e5-4994-b05a-c47039de581e", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:32 GMT", + "Date": "Fri, 14 May 2021 19:14:55 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": "102" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:55Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:55Z" }, - "completed": 2, + "completed": 3, "failed": 0, "inProgress": 2, - "total": 4, - "entityLinkingTasks": [ + "total": 5, + "entityRecognitionTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:55.5650449Z", "name": "NA", "state": "succeeded", "results": { @@ -1471,33 +1269,653 @@ "id": "0", "entities": [ { - "name": "Elon Musk", - "matches": [ - { - "text": "Elon Musk", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - } - ], - "language": "en", - "id": "Elon Musk", - "url": "https://en.wikipedia.org/wiki/Elon_Musk", - "dataSource": "Wikipedia" + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 }, { - "name": "SpaceX", - "matches": [ - { - "text": "SpaceX", - "offset": 24, - "length": 6, - "confidenceScore": 0.63 - } - ], - "language": "en", - "id": "SpaceX", - "url": "https://en.wikipedia.org/wiki/SpaceX", + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "400%", + "category": "Quantity", + "subcategory": "Percentage", + "offset": 21, + "length": 4, + "confidenceScore": 0.8 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:55.3461696Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* is the *** of ****** and *****.", + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3cdcfbf369a1592c02fad0363b13ba7c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "0c936ca2-4845-4684-b644-826905b97476", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:14:56 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "94" + }, + "ResponseBody": { + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:55Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:14:55Z" + }, + "completed": 3, + "failed": 0, + "inProgress": 2, + "total": 5, + "entityRecognitionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:55.5650449Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "400%", + "category": "Quantity", + "subcategory": "Percentage", + "offset": 21, + "length": 4, + "confidenceScore": 0.8 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:55.3461696Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* is the *** of ****** and *****.", + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "183e4e8e475bf87fb769d219910de5b7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "64b0f74c-aad0-4ce8-bcf7-f604dcba2df9", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:14:57 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "135" + }, + "ResponseBody": { + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:57Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:14:57Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityRecognitionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:55.5650449Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "400%", + "category": "Quantity", + "subcategory": "Percentage", + "offset": 21, + "length": 4, + "confidenceScore": 0.8 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", "dataSource": "Wikipedia" }, { @@ -1545,9 +1963,79 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:55.3461696Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* is the *** of ****** and *****.", + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", + "lastUpdateDateTime": "2021-05-14T19:14:57.8855114Z", "name": "NA", "state": "succeeded", "results": { @@ -1579,46 +2067,122 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "3cdcfbf369a1592c02fad0363b13ba7c", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4408966ba0780d058acb97490a496a23", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ac2949e7-86ec-4fe4-8045-ab6dbd68a8c7", + "apim-request-id": "13614ec3-143c-4fd6-b036-dd65bdecc323", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:35 GMT", + "Date": "Fri, 14 May 2021 19:14:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "2591" + "x-envoy-upstream-service-time": "129" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:19Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:14:57Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:19Z" + "lastUpdateDateTime": "2021-05-14T19:14:57Z" }, - "completed": 2, + "completed": 4, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 1, + "total": 5, + "entityRecognitionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:55.5650449Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "400%", + "category": "Quantity", + "subcategory": "Percentage", + "offset": 21, + "length": 4, + "confidenceScore": 0.8 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -1701,9 +2265,79 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:14:55.3461696Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* is the *** of ****** and *****.", + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", + "lastUpdateDateTime": "2021-05-14T19:14:57.8855114Z", "name": "NA", "state": "succeeded", "results": { @@ -1735,46 +2369,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/207ec1cc-997b-4936-be86-2d3525dfd699?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/2860509e-4fa6-4ee0-9998-4c520f382762?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "183e4e8e475bf87fb769d219910de5b7", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "eb512e783162ab1e7be384379613c8f4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "86b91959-fed6-4650-af2d-300a4f1a905c", + "apim-request-id": "08384fb9-b453-48bc-8acc-73e4ac317161", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:36 GMT", + "Date": "Fri, 14 May 2021 19:15:01 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "145" + "x-envoy-upstream-service-time": "167" }, "ResponseBody": { - "jobId": "207ec1cc-997b-4936-be86-2d3525dfd699", - "lastUpdateDateTime": "2021-05-12T17:44:34Z", - "createdDateTime": "2021-05-12T17:44:06Z", - "expirationDateTime": "2021-05-13T17:44:06Z", + "jobId": "2860509e-4fa6-4ee0-9998-4c520f382762", + "lastUpdateDateTime": "2021-05-14T19:15:00Z", + "createdDateTime": "2021-05-14T19:14:22Z", + "expirationDateTime": "2021-05-15T19:14:22Z", "status": "succeeded", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:34Z" + "lastUpdateDateTime": "2021-05-14T19:15:00Z" }, - "completed": 4, + "completed": 5, "failed": 0, "inProgress": 0, - "total": 4, + "total": 5, "entityRecognitionTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:33.7318657Z", + "lastUpdateDateTime": "2021-05-14T19:14:55.5650449Z", "name": "NA", "state": "succeeded", "results": { @@ -1850,7 +2484,7 @@ ], "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:07.7066894Z", + "lastUpdateDateTime": "2021-05-14T19:14:34.4301759Z", "name": "NA", "state": "succeeded", "results": { @@ -1935,13 +2569,13 @@ ], "entityRecognitionPiiTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:34.6763493Z", + "lastUpdateDateTime": "2021-05-14T19:14:55.3461696Z", "name": "NA", "state": "succeeded", "results": { "documents": [ { - "redactedText": "********* is the CEO of ****** and *****.", + "redactedText": "********* is the *** of ****** and *****.", "id": "0", "entities": [ { @@ -1951,6 +2585,13 @@ "length": 9, "confidenceScore": 0.99 }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, { "text": "SpaceX", "category": "Organization", @@ -1969,7 +2610,7 @@ "warnings": [] }, { - "redactedText": "***** stock is up by 400% this year.", + "redactedText": "***** stock is up by 400% *********.", "id": "1", "entities": [ { @@ -1978,6 +2619,14 @@ "offset": 0, "length": 5, "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 } ], "warnings": [] @@ -1990,7 +2639,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:19.3715558Z", + "lastUpdateDateTime": "2021-05-14T19:14:57.8855114Z", "name": "NA", "state": "succeeded", "results": { @@ -2017,6 +2666,65 @@ "modelVersion": "2020-07-01" } } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:00.1367626Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAllActionsAndDisableServiceLogsAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAllActionsAndDisableServiceLogsAsync.json index 1410d4e09dde0..41fdf8b184d73 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAllActionsAndDisableServiceLogsAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAllActionsAndDisableServiceLogsAsync.json @@ -5,11 +5,11 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", - "Content-Length": "658", + "Content-Length": "757", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f7e2e41562705143bbdf0e3dbd41ecc1-bc97b7bdf0ea8947-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-de0685985035b6468f99e0d43502da25-1f45038090d7274f-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "12e389367e3cadaea67d2f89d2183db5", "x-ms-return-client-request-id": "true" }, @@ -63,103 +63,111 @@ "stringIndexType": "Utf16CodeUnit" } } + ], + "sentimentAnalysisTasks": [ + { + "parameters": { + "loggingOptOut": true, + "stringIndexType": "Utf16CodeUnit" + } + } ] } }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "f22a3bbe-2eb8-458c-992a-dfafdee31028", - "Date": "Wed, 12 May 2021 17:44:42 GMT", - "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9", + "apim-request-id": "7696b0da-f72f-4a00-bd58-2554ac0b26a7", + "Date": "Fri, 14 May 2021 19:15:32 GMT", + "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5392" + "x-envoy-upstream-service-time": "213" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "2ca5806f44844841d9dd8b0eaf0c5e75", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f439efe5-e1c5-4d05-8a07-e08f8226914c", + "apim-request-id": "0ad74dca-f395-40cc-a264-d760bca91b0b", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:42 GMT", + "Date": "Fri, 14 May 2021 19:15: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" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:43Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:32Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "notStarted", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:43Z" + "lastUpdateDateTime": "2021-05-14T19:15:32Z" }, "completed": 0, "failed": 0, - "inProgress": 4, - "total": 4 + "inProgress": 5, + "total": 5 } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "07c250fb6baeabf57f96a5f241e95254", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7192350d-e020-4a6a-9dda-9d245c4ccede", + "apim-request-id": "56e0c5d8-e8a6-4575-be56-6e0fcfb1b7a6", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:43 GMT", + "Date": "Fri, 14 May 2021 19:15:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "39" + "x-envoy-upstream-service-time": "36" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:44Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:33Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:44Z" + "lastUpdateDateTime": "2021-05-14T19:15:33Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -246,46 +254,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0f92e9d7a70ef1e6479b395ef2a0fe9a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "df022473-0d9e-4bda-982e-e4ea60deb37b", + "apim-request-id": "53a7216a-89dd-4b3d-8f41-f5ec04fca87b", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:45 GMT", + "Date": "Fri, 14 May 2021 19:15:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "91" + "x-envoy-upstream-service-time": "38" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:44Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:33Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:44Z" + "lastUpdateDateTime": "2021-05-14T19:15:33Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -372,46 +380,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "828eb91f365504068af9aced9f4f06f0", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2257c217-289a-444f-a382-f9255641f2b6", + "apim-request-id": "b1e6f0d4-8c27-4efa-b78b-1e8b4f7f9086", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:46 GMT", + "Date": "Fri, 14 May 2021 19:15:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "37" + "x-envoy-upstream-service-time": "34" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:44Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:33Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:44Z" + "lastUpdateDateTime": "2021-05-14T19:15:33Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -498,46 +506,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c636368b4f7a536669d0bf123296b8df", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3c63df9a-61f4-4d56-8a4e-e0f62001f2ad", + "apim-request-id": "a5bb48b4-fbf0-42c6-a356-5016814e38dc", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:47 GMT", + "Date": "Fri, 14 May 2021 19:15:36 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": "36" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:44Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:33Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:44Z" + "lastUpdateDateTime": "2021-05-14T19:15:33Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -624,46 +632,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "87d30b98cf5aa1ffe28e8415faf852f8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "dc7b30d9-41af-45b6-ba0a-47908f025358", + "apim-request-id": "8970784c-52b0-4d3b-9859-4597b6fbeb28", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:48 GMT", + "Date": "Fri, 14 May 2021 19:15:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "35" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:44Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:33Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:44Z" + "lastUpdateDateTime": "2021-05-14T19:15:33Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -750,46 +758,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "bcd349953769cf1f533a198477f3d2f4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0b4e7fa0-1510-4ea3-b73e-31bdaf260540", + "apim-request-id": "7bbd2dc8-d0ae-4d3a-ace4-9728feae28f2", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:49 GMT", + "Date": "Fri, 14 May 2021 19:15:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "141" + "x-envoy-upstream-service-time": "59" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:44Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:38Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:44Z" + "lastUpdateDateTime": "2021-05-14T19:15:38Z" }, - "completed": 1, + "completed": 2, "failed": 0, "inProgress": 3, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -871,51 +879,81 @@ "modelVersion": "2020-02-01" } } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9355cd407e7cbb953795e4eccb515971", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "924f8c55-706f-45a2-8eb7-058b8881a3b1", + "apim-request-id": "f4ccc933-55c5-4992-85de-e6fa4aaaa062", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:50 GMT", + "Date": "Fri, 14 May 2021 19:15:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "40" + "x-envoy-upstream-service-time": "96" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:51Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:39Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:51Z" + "lastUpdateDateTime": "2021-05-14T19:15:39Z" }, - "completed": 1, + "completed": 3, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 2, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -997,51 +1035,140 @@ "modelVersion": "2020-02-01" } } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "e87dc67efcc26075eb03341fb67b2aee", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "facca90e-2012-4efc-b450-f6f730e83f53", + "apim-request-id": "c30650d9-a5ce-4c95-b942-b65bb118cd7a", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:51 GMT", + "Date": "Fri, 14 May 2021 19:15:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "46" + "x-envoy-upstream-service-time": "97" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:51Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:39Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:51Z" + "lastUpdateDateTime": "2021-05-14T19:15:39Z" }, - "completed": 1, + "completed": 3, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 2, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -1123,51 +1250,140 @@ "modelVersion": "2020-02-01" } } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "2cd490bcbea2177bb31884d453330401", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f24cf6e2-5862-4be8-aa92-864056363edc", + "apim-request-id": "8e6f21c0-3291-4482-bd96-09ac692893eb", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:52 GMT", + "Date": "Fri, 14 May 2021 19:15:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "41" + "x-envoy-upstream-service-time": "95" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:51Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:39Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:51Z" + "lastUpdateDateTime": "2021-05-14T19:15:39Z" }, - "completed": 1, + "completed": 3, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 2, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -1249,51 +1465,140 @@ "modelVersion": "2020-02-01" } } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "b005a7e1e976433158f5a778497505bc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7fba6901-05d2-4656-9e04-e4566e3e8025", + "apim-request-id": "837a56a7-ca10-42d4-b42b-9da5fe2244c3", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:54 GMT", + "Date": "Fri, 14 May 2021 19:15:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "34" + "x-envoy-upstream-service-time": "113" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:51Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:39Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "running", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:51Z" + "lastUpdateDateTime": "2021-05-14T19:15:39Z" }, - "completed": 1, + "completed": 3, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 2, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -1375,56 +1680,2231 @@ "modelVersion": "2020-02-01" } } - ] - } - } - }, - { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "3a30f66a2c7cbfce4b6634aa78a00cb8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d1b4707e-3150-4f95-9dbd-8662bc17409f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:55 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "76" - }, - "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:54Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", - "status": "running", - "errors": [], + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3a30f66a2c7cbfce4b6634aa78a00cb8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "69c415ca-77b0-4ee5-9036-412869ed7042", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:44 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "96" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:39Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:54Z" + "lastUpdateDateTime": "2021-05-14T19:15:39Z" }, - "completed": 2, + "completed": 3, "failed": 0, "inProgress": 2, - "total": 4, - "entityRecognitionTasks": [ + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0e3e33ff7a75d2775f91d4ad1702cd3e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "a6f2bd9c-710f-4e50-a00a-a068094c7c79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:46 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "88" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:39Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:39Z" + }, + "completed": 3, + "failed": 0, + "inProgress": 2, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5d69c813c903b484d9466410b486cbb7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "f172fb51-4dbe-4bd2-b51c-03daa42e3300", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:47 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "90" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:39Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:39Z" + }, + "completed": 3, + "failed": 0, + "inProgress": 2, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1679efe8f636f0467e5ddbeb5721a848", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "b296ec3d-92e0-42af-82f2-6e7f28eca26c", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:48 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "100" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:39Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:39Z" + }, + "completed": 3, + "failed": 0, + "inProgress": 2, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "af97f698af3635b4ae89342e15671ed8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "8c1901c4-e153-4d39-9ee1-f8e0097e68cf", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:49 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "126" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:49Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:49Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:49.4109114Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* is the *** of ****** and *****.", + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "27c41dc5b7891c078179dea6ee985db8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ccaf9fed-dcb5-48c6-b19c-0ff770491fc2", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:50 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "125" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:49Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:49Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:49.4109114Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* is the *** of ****** and *****.", + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bd771c9d1bef39803b4368adc118db17", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "607fe53b-aee5-414c-aec1-446a28b5c80d", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:51 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "115" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:49Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:49Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:49.4109114Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* is the *** of ****** and *****.", + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3a26023e815ce1beee7a2dbdd00d4715", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "d0f21e7d-0ca6-4a0c-84a3-200c2528d333", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:52 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:49Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:49Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:49.4109114Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* is the *** of ****** and *****.", + "id": "0", + "entities": [ + { + "text": "Elon Musk", + "category": "Person", + "offset": 0, + "length": 9, + "confidenceScore": 0.99 + }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, + { + "text": "SpaceX", + "category": "Organization", + "offset": 24, + "length": 6, + "confidenceScore": 0.98 + }, + { + "text": "Tesla", + "category": "Organization", + "offset": 35, + "length": 5, + "confidenceScore": 0.98 + } + ], + "warnings": [] + }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f8917c2c60f0a9e89c8aec454f5a5b69", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "dafd7ea5-a577-479e-a166-2257f03f1e8d", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:54 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "113" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:49Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:49Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "entities": [ + { + "name": "Elon Musk", + "matches": [ + { + "text": "Elon Musk", + "offset": 0, + "length": 9, + "confidenceScore": 0.94 + } + ], + "language": "en", + "id": "Elon Musk", + "url": "https://en.wikipedia.org/wiki/Elon_Musk", + "dataSource": "Wikipedia" + }, + { + "name": "SpaceX", + "matches": [ + { + "text": "SpaceX", + "offset": 24, + "length": 6, + "confidenceScore": 0.63 + } + ], + "language": "en", + "id": "SpaceX", + "url": "https://en.wikipedia.org/wiki/SpaceX", + "dataSource": "Wikipedia" + }, + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 35, + "length": 5, + "confidenceScore": 0.47 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + }, + { + "id": "1", + "entities": [ + { + "name": "Tesla, Inc.", + "matches": [ + { + "text": "Tesla", + "offset": 0, + "length": 5, + "confidenceScore": 0.05 + } + ], + "language": "en", + "id": "Tesla, Inc.", + "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", + "dataSource": "Wikipedia" + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:54.7223901Z", + "lastUpdateDateTime": "2021-05-14T19:15:49.4109114Z", "name": "NA", "state": "succeeded", "results": { "documents": [ { + "redactedText": "********* is the *** of ****** and *****.", "id": "0", "entities": [ { @@ -1459,6 +3939,7 @@ "warnings": [] }, { + "redactedText": "***** stock is up by 400% *********.", "id": "1", "entities": [ { @@ -1468,14 +3949,6 @@ "length": 5, "confidenceScore": 0.95 }, - { - "text": "400%", - "category": "Quantity", - "subcategory": "Percentage", - "offset": 21, - "length": 4, - "confidenceScore": 0.8 - }, { "text": "this year", "category": "DateTime", @@ -1493,9 +3966,139 @@ } } ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "eb68c79d22721c5b5d95ce75edc3692d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "393490c7-0ada-4fc1-8b8e-94b37ec51f26", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:55 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "105" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:49Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:49Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -1577,56 +4180,16 @@ "modelVersion": "2020-02-01" } } - ] - } - } - }, - { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "0e3e33ff7a75d2775f91d4ad1702cd3e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "900d5396-969c-444a-a35f-a44105e6793d", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "89" - }, - "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:56Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", - "status": "running", - "errors": [], - "displayName": "NA", - "tasks": { - "details": { - "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:56Z" - }, - "completed": 3, - "failed": 0, - "inProgress": 1, - "total": 4, - "entityRecognitionTasks": [ + ], + "entityRecognitionPiiTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:54.7223901Z", + "lastUpdateDateTime": "2021-05-14T19:15:49.4109114Z", "name": "NA", "state": "succeeded", "results": { "documents": [ { + "redactedText": "********* is the *** of ****** and *****.", "id": "0", "entities": [ { @@ -1660,44 +4223,167 @@ ], "warnings": [] }, + { + "redactedText": "***** stock is up by 400% *********.", + "id": "1", + "entities": [ + { + "text": "Tesla", + "category": "Organization", + "offset": 0, + "length": 5, + "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", + "name": "NA", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" + ], + "warnings": [] + }, + { + "id": "1", + "keyPhrases": [ + "Tesla stock", + "year" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, { "id": "1", - "entities": [ + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ { - "text": "Tesla", - "category": "Organization", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, "offset": 0, - "length": 5, - "confidenceScore": 0.95 - }, - { - "text": "400%", - "category": "Quantity", - "subcategory": "Percentage", - "offset": 21, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "this year", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 26, - "length": 9, - "confidenceScore": 0.8 + "length": 36, + "text": "Tesla stock is up by 400% this year." } ], "warnings": [] } ], "errors": [], - "modelVersion": "2021-01-15" + "modelVersion": "2020-04-01" } } - ], + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "448052fce286dd26197c9ed295799294", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "e71bd247-8f7a-4465-ad7c-387daed69b7f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:57 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "967" + }, + "ResponseBody": { + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:49Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", + "status": "running", + "errors": [], + "displayName": "NA", + "tasks": { + "details": { + "name": "NA", + "lastUpdateDateTime": "2021-05-14T19:15:49Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -1780,85 +4466,15 @@ } } ], - "keyPhraseExtractionTasks": [ - { - "lastUpdateDateTime": "2021-05-12T17:44:56.0410114Z", - "name": "NA", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "5d69c813c903b484d9466410b486cbb7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "46176637-4d82-47b9-8f74-cc7feeb88e40", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "117" - }, - "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:56Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", - "status": "running", - "errors": [], - "displayName": "NA", - "tasks": { - "details": { - "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:56Z" - }, - "completed": 3, - "failed": 0, - "inProgress": 1, - "total": 4, - "entityRecognitionTasks": [ + "entityRecognitionPiiTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:54.7223901Z", + "lastUpdateDateTime": "2021-05-14T19:15:49.4109114Z", "name": "NA", "state": "succeeded", "results": { "documents": [ { + "redactedText": "********* is the *** of ****** and *****.", "id": "0", "entities": [ { @@ -1893,6 +4509,7 @@ "warnings": [] }, { + "redactedText": "***** stock is up by 400% *********.", "id": "1", "entities": [ { @@ -1902,14 +4519,6 @@ "length": 5, "confidenceScore": 0.95 }, - { - "text": "400%", - "category": "Quantity", - "subcategory": "Percentage", - "offset": 21, - "length": 4, - "confidenceScore": 0.8 - }, { "text": "this year", "category": "DateTime", @@ -1927,118 +4536,92 @@ } } ], - "entityLinkingTasks": [ + "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", "name": "NA", "state": "succeeded", "results": { "documents": [ { "id": "0", - "entities": [ - { - "name": "Elon Musk", - "matches": [ - { - "text": "Elon Musk", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - } - ], - "language": "en", - "id": "Elon Musk", - "url": "https://en.wikipedia.org/wiki/Elon_Musk", - "dataSource": "Wikipedia" - }, - { - "name": "SpaceX", - "matches": [ - { - "text": "SpaceX", - "offset": 24, - "length": 6, - "confidenceScore": 0.63 - } - ], - "language": "en", - "id": "SpaceX", - "url": "https://en.wikipedia.org/wiki/SpaceX", - "dataSource": "Wikipedia" - }, - { - "name": "Tesla, Inc.", - "matches": [ - { - "text": "Tesla", - "offset": 35, - "length": 5, - "confidenceScore": 0.47 - } - ], - "language": "en", - "id": "Tesla, Inc.", - "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", - "dataSource": "Wikipedia" - } + "keyPhrases": [ + "CEO of SpaceX", + "Elon Musk", + "Tesla" ], "warnings": [] }, { "id": "1", - "entities": [ - { - "name": "Tesla, Inc.", - "matches": [ - { - "text": "Tesla", - "offset": 0, - "length": 5, - "confidenceScore": 0.05 - } - ], - "language": "en", - "id": "Tesla, Inc.", - "url": "https://en.wikipedia.org/wiki/Tesla,_Inc.", - "dataSource": "Wikipedia" - } + "keyPhrases": [ + "Tesla stock", + "year" ], "warnings": [] } ], "errors": [], - "modelVersion": "2020-02-01" + "modelVersion": "2020-07-01" } } ], - "keyPhraseExtractionTasks": [ + "sentimentAnalysisTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:56.0410114Z", + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", "name": "NA", "state": "succeeded", "results": { "documents": [ { "id": "0", - "keyPhrases": [ - "CEO of SpaceX", - "Elon Musk", - "Tesla" + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } ], "warnings": [] }, { "id": "1", - "keyPhrases": [ - "Tesla stock", - "year" + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } ], "warnings": [] } ], "errors": [], - "modelVersion": "2020-07-01" + "modelVersion": "2020-04-01" } } ] @@ -2046,46 +4629,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/93e92ac8-04e4-48b6-8be1-0d32387ec8a9?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ca59934b-d331-41b8-969a-91316ff52e3d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "1679efe8f636f0467e5ddbeb5721a848", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0820c41f5ba509a221749b5a9273bbd9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "60f47214-0cb0-4700-be28-5243e4db04d7", + "apim-request-id": "8f928bab-383f-43e0-a8fb-d4d3e37776b8", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 17:44:58 GMT", + "Date": "Fri, 14 May 2021 19:15:59 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "173" + "x-envoy-upstream-service-time": "370" }, "ResponseBody": { - "jobId": "93e92ac8-04e4-48b6-8be1-0d32387ec8a9", - "lastUpdateDateTime": "2021-05-12T17:44:58Z", - "createdDateTime": "2021-05-12T17:44:38Z", - "expirationDateTime": "2021-05-13T17:44:38Z", + "jobId": "ca59934b-d331-41b8-969a-91316ff52e3d", + "lastUpdateDateTime": "2021-05-14T19:15:57Z", + "createdDateTime": "2021-05-14T19:15:32Z", + "expirationDateTime": "2021-05-15T19:15:32Z", "status": "succeeded", "errors": [], "displayName": "NA", "tasks": { "details": { "name": "NA", - "lastUpdateDateTime": "2021-05-12T17:44:58Z" + "lastUpdateDateTime": "2021-05-14T19:15:57Z" }, - "completed": 4, + "completed": 5, "failed": 0, "inProgress": 0, - "total": 4, + "total": 5, "entityRecognitionTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:54.7223901Z", + "lastUpdateDateTime": "2021-05-14T19:15:57.9342902Z", "name": "NA", "state": "succeeded", "results": { @@ -2161,7 +4744,7 @@ ], "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:44.1595352Z", + "lastUpdateDateTime": "2021-05-14T19:15:33.333577Z", "name": "NA", "state": "succeeded", "results": { @@ -2246,13 +4829,13 @@ ], "entityRecognitionPiiTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:58.715936Z", + "lastUpdateDateTime": "2021-05-14T19:15:49.4109114Z", "name": "NA", "state": "succeeded", "results": { "documents": [ { - "redactedText": "********* is the CEO of ****** and *****.", + "redactedText": "********* is the *** of ****** and *****.", "id": "0", "entities": [ { @@ -2262,6 +4845,13 @@ "length": 9, "confidenceScore": 0.99 }, + { + "text": "CEO", + "category": "PersonType", + "offset": 17, + "length": 3, + "confidenceScore": 0.96 + }, { "text": "SpaceX", "category": "Organization", @@ -2280,7 +4870,7 @@ "warnings": [] }, { - "redactedText": "***** stock is up by 400% this year.", + "redactedText": "***** stock is up by 400% *********.", "id": "1", "entities": [ { @@ -2289,6 +4879,14 @@ "offset": 0, "length": 5, "confidenceScore": 0.95 + }, + { + "text": "this year", + "category": "DateTime", + "subcategory": "DateRange", + "offset": 26, + "length": 9, + "confidenceScore": 0.8 } ], "warnings": [] @@ -2301,7 +4899,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-12T17:44:56.0410114Z", + "lastUpdateDateTime": "2021-05-14T19:15:38.2184892Z", "name": "NA", "state": "succeeded", "results": { @@ -2328,6 +4926,65 @@ "modelVersion": "2020-07-01" } } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:39.2579494Z", + "name": "NA", + "state": "succeeded", + "results": { + "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": 41, + "text": "Elon Musk is the CEO of SpaceX and Tesla." + } + ], + "warnings": [] + }, + { + "id": "1", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.0, + "neutral": 1.0, + "negative": 0.0 + }, + "offset": 0, + "length": 36, + "text": "Tesla stock is up by 400% this year." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAnalyzeSentimentWithOpinionMining.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAnalyzeSentimentWithOpinionMining.json new file mode 100644 index 0000000000000..5afb1206f176c --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAnalyzeSentimentWithOpinionMining.json @@ -0,0 +1,811 @@ +{ + "Entries": [ + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Content-Length": "304", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-d706941bb5ce00489c6fa4bed5f972a0-c5ae85a859b2fc45-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aeed755eebf15dfbf87891ec623be508", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "analysisInput": { + "documents": [ + { + "id": "0", + "text": "The park was clean and pretty. The bathrooms and restaurant were not clean.", + "language": "en" + } + ] + }, + "tasks": { + "sentimentAnalysisTasks": [ + { + "parameters": { + "opinionMining": true, + "stringIndexType": "Utf16CodeUnit" + } + } + ] + }, + "displayName": "AnalyzeOperationWithOpinionMining" + }, + "StatusCode": 202, + "ResponseHeaders": { + "apim-request-id": "1d309441-25b4-4eba-846d-61ef66f89f95", + "Date": "Fri, 14 May 2021 19:22:45 GMT", + "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "2777" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b89b687077016fde88c409f18dad86de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "4d84087e-7d89-4ad5-8732-245648d67514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:22:45 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "160" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:45Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "notStarted", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:45Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "cd305befd02867efcaa990c232be4a65", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7d49303a-644c-41f7-83bf-803d33e30f3d", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:22:51 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5069" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:45Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "notStarted", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:45Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ddc0b88facc4e772977d262ce109cf4a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "589d2ecc-dd0d-4f4b-a39e-ce35abf83f91", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7565" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "07fdb3f2180b9fe07934ed57e71b3dc9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "42072e1b-4484-4ddf-961f-bd4a616a6180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:01 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d561a47aa8ed421ae84935aaaac286c1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "42658a24-27b9-4b28-b3f7-40ad1fe1a8dc", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:07 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5052" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7fd045da43c17759d8206490bf1a007b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "53841adc-f8ed-402a-98c8-00b2a0fe34ae", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:08 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3db25c40faa8495d99ba1ec2e235f5b7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "986c4a4e-2fd5-4980-b9c3-d0d352dd3331", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:09 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a17d2badbe4b37084aeafccc448982cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "f663c0c7-3394-4c57-b885-5bd428f38362", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:10 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4e6aba484910e019e786e606249794a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "bb2bc1cf-4830-4997-9448-eea73a8a552a", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:11 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "93e2ac2b5e9d8230537bf2bdfd91050f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fe2da926-d6cf-4ec2-875f-3f8e9bed1900", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:12 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "28795137a7ca64a6129dbac4d80112b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "b5427011-ad01-4be3-a9a4-6489609ec130", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:13 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "97a15955efa6ea3089e8fa95565be256", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "575f43ba-f2ec-4bb5-90d2-984c79525253", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:14 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d2ced6816b1e83d8057e80ffa36baa51", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "e920c154-0eb2-4f46-822b-e68920da889c", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:15 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a46840686df04868218e9ee2ac110eb7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "eccb661c-4606-43c5-92af-f3799328c456", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:17 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:22:56Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:22:56Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/e52e8680-f355-4563-bc94-f7f1b7e751da?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "014264bb4033e993811d91286e30461d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "3bf15379-4753-45c5-b844-7d8d04c310b2", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:18 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "33" + }, + "ResponseBody": { + "jobId": "e52e8680-f355-4563-bc94-f7f1b7e751da", + "lastUpdateDateTime": "2021-05-14T19:23:17Z", + "createdDateTime": "2021-05-14T19:22:42Z", + "expirationDateTime": "2021-05-15T19:22:42Z", + "status": "succeeded", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:17Z" + }, + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:23:17.9104453Z", + "name": "AnalyzeOperationWithOpinionMining", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "sentiment": "mixed", + "confidenceScores": { + "positive": 0.5, + "neutral": 0.0, + "negative": 0.5 + }, + "sentences": [ + { + "sentiment": "positive", + "confidenceScores": { + "positive": 1.0, + "neutral": 0.0, + "negative": 0.0 + }, + "offset": 0, + "length": 30, + "text": "The park was clean and pretty.", + "targets": [ + { + "sentiment": "positive", + "confidenceScores": { + "positive": 1.0, + "negative": 0.0 + }, + "offset": 4, + "length": 4, + "text": "park", + "relations": [ + { + "relationType": "assessment", + "ref": "#/documents/0/sentences/0/assessments/0" + }, + { + "relationType": "assessment", + "ref": "#/documents/0/sentences/0/assessments/1" + } + ] + } + ], + "assessments": [ + { + "sentiment": "positive", + "confidenceScores": { + "positive": 1.0, + "negative": 0.0 + }, + "offset": 13, + "length": 5, + "text": "clean", + "isNegated": false + }, + { + "sentiment": "positive", + "confidenceScores": { + "positive": 1.0, + "negative": 0.0 + }, + "offset": 23, + "length": 6, + "text": "pretty", + "isNegated": false + } + ] + }, + { + "sentiment": "negative", + "confidenceScores": { + "positive": 0.0, + "neutral": 0.0, + "negative": 1.0 + }, + "offset": 31, + "length": 44, + "text": "The bathrooms and restaurant were not clean.", + "targets": [ + { + "sentiment": "negative", + "confidenceScores": { + "positive": 0.01, + "negative": 0.99 + }, + "offset": 35, + "length": 9, + "text": "bathrooms", + "relations": [ + { + "relationType": "assessment", + "ref": "#/documents/0/sentences/1/assessments/0" + } + ] + }, + { + "sentiment": "negative", + "confidenceScores": { + "positive": 0.01, + "negative": 0.99 + }, + "offset": 49, + "length": 10, + "text": "restaurant", + "relations": [ + { + "relationType": "assessment", + "ref": "#/documents/0/sentences/1/assessments/0" + } + ] + } + ], + "assessments": [ + { + "sentiment": "negative", + "confidenceScores": { + "positive": 0.01, + "negative": 0.99 + }, + "offset": 69, + "length": 5, + "text": "clean", + "isNegated": true + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + } + ], + "Variables": { + "RandomSeed": "1819362252", + "TEXT_ANALYTICS_API_KEY": "Sanitized", + "TEXT_ANALYTICS_ENDPOINT": "https://mariari-westus2-s.cognitiveservices.azure.com/" + } +} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAnalyzeSentimentWithOpinionMiningAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAnalyzeSentimentWithOpinionMiningAsync.json new file mode 100644 index 0000000000000..a829402b51a3e --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationAnalyzeSentimentWithOpinionMiningAsync.json @@ -0,0 +1,1385 @@ +{ + "Entries": [ + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Content-Length": "304", + "Content-Type": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-300dfab691f0624ebc72fde175b2e3b0-3c8e51a925070140-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b6927c132680ad8649ac90e19e28d853", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "analysisInput": { + "documents": [ + { + "id": "0", + "text": "The park was clean and pretty. The bathrooms and restaurant were not clean.", + "language": "en" + } + ] + }, + "tasks": { + "sentimentAnalysisTasks": [ + { + "parameters": { + "opinionMining": true, + "stringIndexType": "Utf16CodeUnit" + } + } + ] + }, + "displayName": "AnalyzeOperationWithOpinionMining" + }, + "StatusCode": 202, + "ResponseHeaders": { + "apim-request-id": "4c02d5dc-8865-42cd-940a-0e0c0af10e37", + "Date": "Fri, 14 May 2021 19:23:19 GMT", + "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "149" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "153d4b6951e2c2fd62e262d9e8ed622f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "0895c325-4388-4a97-ae43-3898374cb822", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:19 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "notStarted", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8d697313a410adabb5c42bae4e0a8799", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "08ec2cdd-9051-42ba-891f-063413c0f419", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:20 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4e5bfab8d343c24b7ecf549ec3adc45c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "afe5e223-80f9-41af-b1c6-c74dc784ae7a", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:21 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2ace604a4bbec5429f90601e254f7357", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fd0d779e-a77d-4427-acd6-e55295da18fb", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:22 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ee21c95b139140eb27a70f40500de907", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "94ee8187-8d2b-41d9-94a4-5bb3477b6fab", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:23 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ed63cf005c3c6ddab795afb3722d9d2e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "500e52da-364d-4c44-ba82-d1f12a7484bd", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:24 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f942fc5cd58b36ca758d02173c027591", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "04788e1f-0c6f-44ba-8d8a-0c456da384d4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:25 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "551d58a785ebfe1aefb436fb6438cefa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fb0b9fed-4910-48dc-ba97-556ab7a0e3aa", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:26 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "53e4e00aefca2a7b052d78ae5ac330b5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "f872b1d7-8898-4699-8594-f05f35433e79", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:27 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "190c1d20470fd642e1440ad79fced23c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7d0b21af-8c35-4f0b-acbf-7020f6648205", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:28 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5b0d08bf221db7c6ddf350be0c6ca42c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "39c23bd3-c17e-4d15-9a9a-e00c8cc3134d", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:29 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "46db8183b42cc2ea9d0e7186e4a48b36", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fc75ab9e-29ff-4045-89f3-a2d57cf21813", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:30 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "51ef3c5ad4b6fe9856543c1cf784c975", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "4250be6c-0a65-4071-b629-9fe3d5f49b72", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:31 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1e54de9f8bf30a101e4abe0fb040d239", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "45ac465f-30ea-4774-be7b-67ffe8cdafd6", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:32 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d0641968537cae75e9ddf0d777ceca19", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "3e41e000-96c3-4437-a6fa-93784b35417c", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:33 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "06e6fc446c4fce422ce4336b16884e16", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "05c05ff6-7460-4f13-887d-1eedb365a2b6", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:34 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ddb30381f81f4cf868a534169b389250", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "811e1546-383e-4182-873c-6ce938cf38bd", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:35 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "b3cba480cc59fbe9d695a4981f0a9860", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "91efb61f-53ba-4fa1-860d-02b100dd3d55", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:37 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "11" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7456da8eec1a4bf903999daa382c33f4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "10f4b4f2-bb39-4b7c-b8ee-336826123340", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:38 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "71eae3519abdb5bc1ab8078a54602c5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "4b0b9a72-69bc-452e-a8c4-e21230db6acb", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:39 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "12" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c187d40d1ee19335ab7fb0c02e3ec3aa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "31ee714f-4fe6-4e43-93e0-80ae9c2ccc09", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3c46b061261ff3a31da05a62e56ef7a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fb2e2ae0-8ac3-4ffb-9de3-6fc29ba8c3be", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:41 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "639d3f6c71a43212ad56c63deafc86db", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6f297cc9-1f82-4609-93db-28f226e1fe03", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:42 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "13" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a3285cf4f01ae63e3193a341c4d3ae3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "cf3c62b3-44a5-468c-a7ce-870cae2892ff", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:43 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ef530d885fa1f0059e138fc860650921", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "768d4e56-accb-498c-8c72-2b359f34d070", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:44 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "886d7e1953457c8801b63211ced06ed9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "01cefb20-8428-4f19-bd76-22b6031e1b19", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:45 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ddb489a897a8943957380506607586cb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "b9a3e399-b22c-415e-bd78-310902d524f6", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:46 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4627818a256635f684d6eeeb2df422cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7b663eda-7a5f-4f30-8886-87cfcdc36c90", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:47 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:19Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:19Z" + }, + "completed": 0, + "failed": 0, + "inProgress": 1, + "total": 1 + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/906e046a-2342-4460-ac55-777c9209375d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d620b5a52bb0827844d8310d4e821c8b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "370b507b-ff78-411c-9c0d-0c3bc1f74136", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:23:50 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "2586" + }, + "ResponseBody": { + "jobId": "906e046a-2342-4460-ac55-777c9209375d", + "lastUpdateDateTime": "2021-05-14T19:23:48Z", + "createdDateTime": "2021-05-14T19:23:19Z", + "expirationDateTime": "2021-05-15T19:23:19Z", + "status": "succeeded", + "errors": [], + "displayName": "AnalyzeOperationWithOpinionMining", + "tasks": { + "details": { + "name": "AnalyzeOperationWithOpinionMining", + "lastUpdateDateTime": "2021-05-14T19:23:48Z" + }, + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:23:48.3637851Z", + "name": "AnalyzeOperationWithOpinionMining", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "0", + "sentiment": "mixed", + "confidenceScores": { + "positive": 0.5, + "neutral": 0.0, + "negative": 0.5 + }, + "sentences": [ + { + "sentiment": "positive", + "confidenceScores": { + "positive": 1.0, + "neutral": 0.0, + "negative": 0.0 + }, + "offset": 0, + "length": 30, + "text": "The park was clean and pretty.", + "targets": [ + { + "sentiment": "positive", + "confidenceScores": { + "positive": 1.0, + "negative": 0.0 + }, + "offset": 4, + "length": 4, + "text": "park", + "relations": [ + { + "relationType": "assessment", + "ref": "#/documents/0/sentences/0/assessments/0" + }, + { + "relationType": "assessment", + "ref": "#/documents/0/sentences/0/assessments/1" + } + ] + } + ], + "assessments": [ + { + "sentiment": "positive", + "confidenceScores": { + "positive": 1.0, + "negative": 0.0 + }, + "offset": 13, + "length": 5, + "text": "clean", + "isNegated": false + }, + { + "sentiment": "positive", + "confidenceScores": { + "positive": 1.0, + "negative": 0.0 + }, + "offset": 23, + "length": 6, + "text": "pretty", + "isNegated": false + } + ] + }, + { + "sentiment": "negative", + "confidenceScores": { + "positive": 0.0, + "neutral": 0.0, + "negative": 1.0 + }, + "offset": 31, + "length": 44, + "text": "The bathrooms and restaurant were not clean.", + "targets": [ + { + "sentiment": "negative", + "confidenceScores": { + "positive": 0.01, + "negative": 0.99 + }, + "offset": 35, + "length": 9, + "text": "bathrooms", + "relations": [ + { + "relationType": "assessment", + "ref": "#/documents/0/sentences/1/assessments/0" + } + ] + }, + { + "sentiment": "negative", + "confidenceScores": { + "positive": 0.01, + "negative": 0.99 + }, + "offset": 49, + "length": 10, + "text": "restaurant", + "relations": [ + { + "relationType": "assessment", + "ref": "#/documents/0/sentences/1/assessments/0" + } + ] + } + ], + "assessments": [ + { + "sentiment": "negative", + "confidenceScores": { + "positive": 0.01, + "negative": 0.99 + }, + "offset": 69, + "length": 5, + "text": "clean", + "isNegated": true + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + } + ], + "Variables": { + "RandomSeed": "333490656", + "TEXT_ANALYTICS_API_KEY": "Sanitized", + "TEXT_ANALYTICS_ENDPOINT": "https://mariari-westus2-s.cognitiveservices.azure.com/" + } +} \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithMultipleActions.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithMultipleActions.json index 45ee26e24b237..bee9decc44f41 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithMultipleActions.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithMultipleActions.json @@ -5,11 +5,11 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", - "Content-Length": "645", + "Content-Length": "723", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5ef7825b2bfb8849b6c2050e9f5adf59-7c08b64ac08a3d4c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-48b9cd4ac65ef94d858af003f76268c9-d7ed3c20cf935a49-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "36d74cae0543ad22b4752e104a677574", "x-ms-return-client-request-id": "true" }, @@ -59,145 +59,111 @@ "stringIndexType": "Utf16CodeUnit" } } + ], + "sentimentAnalysisTasks": [ + { + "parameters": { + "stringIndexType": "Utf16CodeUnit" + } + } ] }, "displayName": "AnalyzeOperationWithMultipleTasks" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "715bd221-eb3e-4b3c-a537-c84a7fdbda48", - "Date": "Tue, 11 May 2021 16:01:57 GMT", - "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517", + "apim-request-id": "a6e52f45-fd34-4022-8707-74abf7e95b31", + "Date": "Fri, 14 May 2021 19:15:02 GMT", + "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "7763" + "x-envoy-upstream-service-time": "332" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "360f939000899016ea2d36ca05142466", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "38518262-a27a-4f82-a909-f1bf8ed65b6d", + "apim-request-id": "b19f4958-1bc6-4c99-84a8-98d4070e4332", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:01:57 GMT", + "Date": "Fri, 14 May 2021 19:15:02 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "6" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:01:57Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", - "status": "notStarted", - "errors": [], - "displayName": "AnalyzeOperationWithMultipleTasks", - "tasks": { - "details": { - "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:01:57Z" - }, - "completed": 0, - "failed": 0, - "inProgress": 4, - "total": 4 - } - } - }, - { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "32033b4d84a2f3a2ac913141d710299b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d7236b88-59b8-4e5a-9907-c1b91070ac77", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:01:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "7" - }, - "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:01:58Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:02Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:01:58Z" + "lastUpdateDateTime": "2021-05-14T19:15:02Z" }, "completed": 0, "failed": 0, - "inProgress": 4, - "total": 4 + "inProgress": 5, + "total": 5 } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "f287b823979aae6e35464c16cf57a89f", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "32033b4d84a2f3a2ac913141d710299b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "62903b70-d140-47c8-9c9d-97ea398cd0fe", + "apim-request-id": "f67bd0e3-4d26-4220-8b5e-7bb1a6957735", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:01:59 GMT", + "Date": "Fri, 14 May 2021 19:15:03 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": "50" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:01:58Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:03Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:01:58Z" + "lastUpdateDateTime": "2021-05-14T19:15:03Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -268,46 +234,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "0fc2c75142640bd1f11c89f7cfd5b8da", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f287b823979aae6e35464c16cf57a89f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "543f71aa-4159-4c3e-9db0-1fbf8a6d363e", + "apim-request-id": "334c2f99-d01e-454b-b2b2-20ff2794e921", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:03 GMT", + "Date": "Fri, 14 May 2021 19:15:06 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "2587" + "x-envoy-upstream-service-time": "2590" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:00Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:03Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:00Z" + "lastUpdateDateTime": "2021-05-14T19:15:03Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -378,46 +344,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4da79a03318db6cbcc54fd5b388b2454", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0fc2c75142640bd1f11c89f7cfd5b8da", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "36559d38-0461-4d58-96ee-6551f1f8fbe4", + "apim-request-id": "1349f2d6-9a22-4f55-9d0f-15db2fa62a5b", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:04 GMT", + "Date": "Fri, 14 May 2021 19:15:10 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": "2629" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:07Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:07Z" }, "completed": 2, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 3, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -486,7 +452,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -519,46 +485,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "10ef92e91a4de036e67c017e0d76df5f", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4da79a03318db6cbcc54fd5b388b2454", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e5a12e77-9ac7-4ac3-a6d0-78d1acfd7c05", + "apim-request-id": "a4c8f515-fefd-4029-a7b0-2a4667acbf05", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:05 GMT", + "Date": "Fri, 14 May 2021 19:15:11 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": "66" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:07Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:07Z" }, "completed": 2, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 3, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -627,7 +593,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -660,46 +626,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3412728d5bb02012fb0c420f4575d365", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "10ef92e91a4de036e67c017e0d76df5f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9e7b40ca-f840-4031-a215-256d2049d45c", + "apim-request-id": "00f3fc05-07b4-4bff-b092-9f9602aace97", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:06 GMT", + "Date": "Fri, 14 May 2021 19:15:12 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": "63" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:07Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:07Z" }, "completed": 2, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 3, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -768,7 +734,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -801,46 +767,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3d0e35f7a8e5e98c63c76610304da856", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3412728d5bb02012fb0c420f4575d365", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d8f93934-b799-4d60-bfcd-e123cd8107b4", + "apim-request-id": "7b2dca0c-440d-4419-b0cb-22d56fca3d35", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:07 GMT", + "Date": "Fri, 14 May 2021 19:15:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "59" + "x-envoy-upstream-service-time": "92" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:13Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:13Z" }, - "completed": 2, + "completed": 3, "failed": 0, "inProgress": 2, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -907,9 +873,64 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -942,46 +963,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "c5cd9d75ef798da47fcf1441d8269b70", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3d0e35f7a8e5e98c63c76610304da856", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "827534ab-289b-4625-8ba3-428a435a1e65", + "apim-request-id": "5989a3c8-5e67-4508-80ea-cb88b3421cdc", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:09 GMT", + "Date": "Fri, 14 May 2021 19:15:14 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": "95" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:13Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:13Z" }, - "completed": 2, + "completed": 3, "failed": 0, "inProgress": 2, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1048,9 +1069,64 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1083,46 +1159,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "d8869ca8a267e579e629d0e8f401f0ae", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c5cd9d75ef798da47fcf1441d8269b70", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "54fa36dd-ec45-4f4e-a431-5bf293253f3f", + "apim-request-id": "1dbd89ed-f780-4ed0-9560-10d09bcf5ed7", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:10 GMT", + "Date": "Fri, 14 May 2021 19:15:15 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": "91" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:13Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:13Z" }, - "completed": 2, + "completed": 3, "failed": 0, "inProgress": 2, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1189,9 +1265,64 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1224,46 +1355,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "a79aeb630da808eb9080bd16944a103c", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d8869ca8a267e579e629d0e8f401f0ae", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0204713c-8537-4955-b6a5-20ac62f896e8", + "apim-request-id": "6a566875-8e97-44d4-ae7d-9e0069fe6987", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:11 GMT", + "Date": "Fri, 14 May 2021 19:15:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "74" + "x-envoy-upstream-service-time": "318" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:13Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:13Z" }, - "completed": 2, + "completed": 3, "failed": 0, "inProgress": 2, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1330,81 +1461,136 @@ } } ], - "keyPhraseExtractionTasks": [ + "entityRecognitionPiiTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { "documents": [ { + "redactedText": "********* was founded by ********** and **********.", "id": "1", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [] - }, - { - "id": "2", - "keyPhrases": [ - "gato", - "perro", - "veterinario" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-07-01" - } - } - ] + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9368f62bd0c6d3ee23e8df501fbb997e", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a79aeb630da808eb9080bd16944a103c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "eb304549-20ee-4af8-9c11-7d2b507ab32e", + "apim-request-id": "9cc6d866-311a-4839-85ff-c773f79f68b5", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:12 GMT", + "Date": "Fri, 14 May 2021 19:15:18 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": "85" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:13Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:13Z" }, - "completed": 2, + "completed": 3, "failed": 0, "inProgress": 2, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1471,9 +1657,64 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1506,46 +1747,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "ecde66dff38c9bc8b17e47e7e563509b", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9368f62bd0c6d3ee23e8df501fbb997e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "00e13a57-d015-4672-8551-04cc813824e1", + "apim-request-id": "13ae9ec2-bc9a-44f0-8de3-afa347f99459", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:14 GMT", + "Date": "Fri, 14 May 2021 19:15:19 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": "95" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:13Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:13Z" }, - "completed": 2, + "completed": 3, "failed": 0, "inProgress": 2, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1612,9 +1853,64 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1647,46 +1943,1831 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ecde66dff38c9bc8b17e47e7e563509b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "c5a31667-b001-44be-ab7b-c45ed9b2c938", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:20 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110" + }, + "ResponseBody": { + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:15:21Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "febd93185c9993e7fdc784bf2d9ae8d4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5d9f67a4-9134-43ef-a5f0-fa5fc96fd3f7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:21 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "120" + }, + "ResponseBody": { + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:15:21Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2e363ee7236b38b02ecce2488807edc0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6fb3039f-1b8a-4be2-977a-23c1e08ab89b", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:22 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "130" + }, + "ResponseBody": { + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:15:21Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8b3844989bfe83e57f4befc46f086d16", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1791bdc5-8b54-4f5b-afd2-f6c0b492bde7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:23 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "117" + }, + "ResponseBody": { + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:15:21Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a6ff7395222cf430e384cfcc7a9e0af5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "a35c9091-f38c-4ca8-a045-92343fc2aaa0", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:26 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "119" + }, + "ResponseBody": { + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:15:21Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e927c4d95d624cd658b3af2033ebc925", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "26d50fad-f944-4107-b073-91a94c75ab0f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:27 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "114" + }, + "ResponseBody": { + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:15:21Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "15b2cc5e470775931443a779cb1908e0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1f9eaabd-252d-4f32-b518-9e842b473bed", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:15:28 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "120" + }, + "ResponseBody": { + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:15:21Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "febd93185c9993e7fdc784bf2d9ae8d4", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "aaeaf94084e038b39db34d79720fc1f7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e9c4e4e0-d8b3-4677-a58f-16daa383c219", + "apim-request-id": "988c8321-60a2-4f38-a32e-37934406bc8d", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:15 GMT", + "Date": "Fri, 14 May 2021 19:15:29 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": "117" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:03Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:03Z" + "lastUpdateDateTime": "2021-05-14T19:15:21Z" }, - "completed": 2, + "completed": 4, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 1, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1753,9 +3834,64 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1783,104 +3919,110 @@ "modelVersion": "2020-07-01" } } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "2e363ee7236b38b02ecce2488807edc0", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ae6daabbf5eb92ee30b1d51fb55c813f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "82135180-bc5f-4825-88ae-a58cdcf0d1d2", + "apim-request-id": "1a8f9341-5b0a-4bf1-9692-f7de372c2cf3", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:21 GMT", + "Date": "Fri, 14 May 2021 19:15:30 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5160" + "x-envoy-upstream-service-time": "110" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:16Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:21Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:16Z" + "lastUpdateDateTime": "2021-05-14T19:15:21Z" }, - "completed": 3, + "completed": 4, "failed": 0, "inProgress": 1, - "total": 4, - "entityRecognitionTasks": [ - { - "lastUpdateDateTime": "2021-05-11T16:02:16.7301606Z", - "name": "AnalyzeOperationWithMultipleTasks", - "state": "succeeded", - "results": { - "documents": [ - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.97 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [] - }, - { - "id": "2", - "entities": [ - { - "text": "veterinario", - "category": "PersonType", - "offset": 36, - "length": 11, - "confidenceScore": 0.96 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ], + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1947,9 +4089,64 @@ } } ], + "entityRecognitionPiiTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "redactedText": "********* was founded by ********** and **********.", + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1977,51 +4174,110 @@ "modelVersion": "2020-07-01" } } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c1f673ab-ff3b-46c3-8c83-5fef91f5c517?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/1d635563-0e3c-41e9-b113-9691f4fe4e16?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8b3844989bfe83e57f4befc46f086d16", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3adfceaa1e00da44187a7854f91a0204", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fcbbf963-8255-43ae-b66c-dc8b8dbeb897", + "apim-request-id": "c29145b7-eb8a-47e6-a97e-fef7f66256e2", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:02:23 GMT", + "Date": "Fri, 14 May 2021 19:15:31 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "128" + "x-envoy-upstream-service-time": "139" }, "ResponseBody": { - "jobId": "c1f673ab-ff3b-46c3-8c83-5fef91f5c517", - "lastUpdateDateTime": "2021-05-11T16:02:23Z", - "createdDateTime": "2021-05-11T16:01:49Z", - "expirationDateTime": "2021-05-12T16:01:49Z", + "jobId": "1d635563-0e3c-41e9-b113-9691f4fe4e16", + "lastUpdateDateTime": "2021-05-14T19:15:31Z", + "createdDateTime": "2021-05-14T19:15:01Z", + "expirationDateTime": "2021-05-15T19:15:01Z", "status": "succeeded", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:02:23Z" + "lastUpdateDateTime": "2021-05-14T19:15:31Z" }, - "completed": 4, + "completed": 5, "failed": 0, "inProgress": 0, - "total": 4, + "total": 5, "entityRecognitionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:16.7301606Z", + "lastUpdateDateTime": "2021-05-14T19:15:31.4597419Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2074,7 +4330,7 @@ ], "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:01:58.8121292Z", + "lastUpdateDateTime": "2021-05-14T19:15:02.9901902Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2143,7 +4399,7 @@ ], "entityRecognitionPiiTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:23.3607801Z", + "lastUpdateDateTime": "2021-05-14T19:15:13.7405215Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2177,9 +4433,17 @@ "warnings": [] }, { - "redactedText": "Mi perro y mi gato tienen que ir al veterinario.", + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", "id": "2", - "entities": [], + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], "warnings": [] } ], @@ -2190,7 +4454,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:02:03.9060681Z", + "lastUpdateDateTime": "2021-05-14T19:15:07.8904954Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2218,6 +4482,65 @@ "modelVersion": "2020-07-01" } } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:15:21.1266264Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithMultipleActionsAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithMultipleActionsAsync.json index 5f9d17c6fd357..07f17b314ccd5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithMultipleActionsAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeOperationTests/AnalyzeOperationWithMultipleActionsAsync.json @@ -5,11 +5,11 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", - "Content-Length": "645", + "Content-Length": "723", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d6cc067840c64e48a64573d4a11484e2-cc8c981a5b76fe45-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-c8edb9cbddfa0842a90fd28b1e3d4032-2fa4afd6f611844c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "84b09b92aaeab256574bef378bac8fd4", "x-ms-return-client-request-id": "true" }, @@ -59,145 +59,221 @@ "stringIndexType": "Utf16CodeUnit" } } + ], + "sentimentAnalysisTasks": [ + { + "parameters": { + "stringIndexType": "Utf16CodeUnit" + } + } ] }, "displayName": "AnalyzeOperationWithMultipleTasks" }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "e0ca27d5-e145-44ba-92b3-eefa9166bfd9", - "Date": "Tue, 11 May 2021 16:05:14 GMT", - "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278", + "apim-request-id": "d037a602-a23f-4452-a474-0187cc24768c", + "Date": "Fri, 14 May 2021 19:15:59 GMT", + "operation-location": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "167" + "x-envoy-upstream-service-time": "230" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "28fe54c562f9429f154e7e8cbd24fdd6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "04b65c37-e456-4d00-b3fd-c27f8c9f982f", + "apim-request-id": "9069f97c-7e78-4398-bd9c-349c4d41f791", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:14 GMT", + "Date": "Fri, 14 May 2021 19:15:59 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": "10" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:15Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", - "status": "notStarted", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:00Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", + "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:15Z" + "lastUpdateDateTime": "2021-05-14T19:16:00Z" }, "completed": 0, "failed": 0, - "inProgress": 4, - "total": 4 + "inProgress": 5, + "total": 5 } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "d5a26188dff6bc6bb1f8fa159c08c192", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9362bd1d-25b1-4160-855a-9939652658dd", + "apim-request-id": "c9296336-a27a-4b77-a755-a23c98f9e28d", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:15 GMT", + "Date": "Fri, 14 May 2021 19:16:00 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": "40" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:15Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:01Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:15Z" + "lastUpdateDateTime": "2021-05-14T19:16:01Z" }, - "completed": 0, + "completed": 1, "failed": 0, "inProgress": 4, - "total": 4 + "total": 5, + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "d5de44db1316307dfb6e6e9b2cc9f433", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3600de03-4817-47bb-922c-6df033adcb89", + "apim-request-id": "5c791cd9-6d1b-4914-a123-97c7a01c23ec", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:17 GMT", + "Date": "Fri, 14 May 2021 19:16:01 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": "35" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:16Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:01Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:16Z" + "lastUpdateDateTime": "2021-05-14T19:16:01Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -268,46 +344,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "2aae184eb909e6dee94276006789a50d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ddef1d62-5ba9-41d1-8cb9-428cada9f168", + "apim-request-id": "72d0532b-57ba-489f-ab83-1bd35d937f34", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:19 GMT", + "Date": "Fri, 14 May 2021 19:16:02 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "169" + "x-envoy-upstream-service-time": "38" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:18Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:01Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:18Z" + "lastUpdateDateTime": "2021-05-14T19:16:01Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -378,46 +454,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "79b1eb8c274575c0e472da8870cf8fe8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e834a26a-e5db-49c5-ac63-572b064f1c78", + "apim-request-id": "db8bd515-3245-4eb6-aebb-ae36bd43bd32", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:20 GMT", + "Date": "Fri, 14 May 2021 19:16:03 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": "37" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:20Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:03Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:20Z" + "lastUpdateDateTime": "2021-05-14T19:16:03Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -488,46 +564,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "83c6c7049759218966f8ecd39c7cc871", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "de75aadc-7638-40f7-bfab-ce849decd22d", + "apim-request-id": "0900aca5-44ca-477e-977b-e90027f1d39e", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:21 GMT", + "Date": "Fri, 14 May 2021 19:16:04 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "34" + "x-envoy-upstream-service-time": "35" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:20Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:03Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:20Z" + "lastUpdateDateTime": "2021-05-14T19:16:03Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -598,46 +674,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "400e61c97b1727ed58394696df567619", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b8035489-ec65-4d00-93d5-0bc5bf789da9", + "apim-request-id": "3522d9ef-e07c-44e5-98d3-c23be4a04c4d", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:22 GMT", + "Date": "Fri, 14 May 2021 19:16:06 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "59" + "x-envoy-upstream-service-time": "63" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:23Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:03Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:23Z" + "lastUpdateDateTime": "2021-05-14T19:16:03Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -708,46 +784,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9ffc8eb221c3f5b3628f124d3aecd867", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "856ffca2-3a0f-4b9d-a5dc-cf4f2b06c655", + "apim-request-id": "58ea66fd-5b2b-442f-abec-e3dc4cb39a86", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:24 GMT", + "Date": "Fri, 14 May 2021 19:16:07 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": "35" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:23Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:03Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:23Z" + "lastUpdateDateTime": "2021-05-14T19:16:03Z" }, "completed": 1, "failed": 0, - "inProgress": 3, - "total": 4, + "inProgress": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -818,46 +894,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0fbf68a94fc088d0da9f2b2051f24210", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a6697875-d0a8-4f36-9321-06e24bb33636", + "apim-request-id": "46b2eeb5-7f31-406e-81d9-39db01d876fa", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:26 GMT", + "Date": "Fri, 14 May 2021 19:16:08 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "38" + "x-envoy-upstream-service-time": "82" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:23Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:07Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:23Z" + "lastUpdateDateTime": "2021-05-14T19:16:07Z" }, - "completed": 1, + "completed": 2, "failed": 0, "inProgress": 3, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -923,51 +999,82 @@ "modelVersion": "2020-02-01" } } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0e20d3822980a7aeae19de88689fec6c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "95f6d480-9bc6-4abc-a2f2-aac7e8ab4941", + "apim-request-id": "aaa89f2e-a1c4-45b4-895c-3bdcca443e08", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:27 GMT", + "Date": "Fri, 14 May 2021 19:16:09 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": "63" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:23Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:07Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:23Z" + "lastUpdateDateTime": "2021-05-14T19:16:07Z" }, - "completed": 1, + "completed": 2, "failed": 0, "inProgress": 3, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1033,51 +1140,82 @@ "modelVersion": "2020-02-01" } } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "77edde6166976358be73c523f693a470", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "28a61fc9-cd74-4812-893c-4e94f1619a83", + "apim-request-id": "2bba4e11-5b9f-48cf-b7e6-de379602229a", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:28 GMT", + "Date": "Fri, 14 May 2021 19:16:10 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": "87" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:23Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:07Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:23Z" + "lastUpdateDateTime": "2021-05-14T19:16:07Z" }, - "completed": 1, + "completed": 2, "failed": 0, "inProgress": 3, - "total": 4, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1143,51 +1281,82 @@ "modelVersion": "2020-02-01" } } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "67cb024dcacb80e6b91761a771471f3a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2c228ec4-e147-441f-8980-b4d3b19b0238", + "apim-request-id": "146800a1-a281-471f-81a8-94aee2e1d388", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:29 GMT", + "Date": "Fri, 14 May 2021 19:16:11 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": "60" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:28Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:07Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:28Z" + "lastUpdateDateTime": "2021-05-14T19:16:07Z" }, "completed": 2, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 3, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1256,7 +1425,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:28.9147556Z", + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1289,46 +1458,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "72bebeb3ca051b787abd4f0c638bb11a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b00b9084-bb9d-497a-b149-92d0edeac68b", + "apim-request-id": "1d26630d-2edb-4cb9-b177-19385b21d5cb", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:30 GMT", + "Date": "Fri, 14 May 2021 19:16:13 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": "56" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:28Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:07Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:28Z" + "lastUpdateDateTime": "2021-05-14T19:16:07Z" }, "completed": 2, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 3, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1397,7 +1566,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:28.9147556Z", + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1430,46 +1599,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "663a6d7584d496a0f86cbd7f05b0f176", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5ce93c5a-e7e9-4294-8a9b-5272bc0fe1d7", + "apim-request-id": "d40cf935-0493-4820-adf4-845eab58d85b", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:32 GMT", + "Date": "Fri, 14 May 2021 19:16:14 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": "62" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:28Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:07Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:28Z" + "lastUpdateDateTime": "2021-05-14T19:16:07Z" }, "completed": 2, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 3, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1538,7 +1707,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:28.9147556Z", + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1571,46 +1740,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "37708b5432d4826a8ab0ed0e7ad91c2e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c0968e88-4330-48f1-ab3b-627bddd2ef11", + "apim-request-id": "39c37873-19ff-4f49-89fc-33a49df0eb4f", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:33 GMT", + "Date": "Fri, 14 May 2021 19:16:15 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": "65" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:28Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:07Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:28Z" + "lastUpdateDateTime": "2021-05-14T19:16:07Z" }, "completed": 2, "failed": 0, - "inProgress": 2, - "total": 4, + "inProgress": 3, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1679,7 +1848,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:28.9147556Z", + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1712,46 +1881,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "03324666b90d2e661e2879980cf815c9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ca1bcb9a-dc64-4626-b403-cdb6b5196ccd", + "apim-request-id": "73fca921-6d7b-478a-a8a7-43080e48adcc", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:34 GMT", + "Date": "Fri, 14 May 2021 19:16:16 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": "70" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:34Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:07Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:34Z" + "lastUpdateDateTime": "2021-05-14T19:16:07Z" }, - "completed": 3, + "completed": 2, "failed": 0, - "inProgress": 1, - "total": 4, + "inProgress": 3, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1818,56 +1987,9 @@ } } ], - "entityRecognitionPiiTasks": [ - { - "lastUpdateDateTime": "2021-05-11T16:05:34.4260911Z", - "name": "AnalyzeOperationWithMultipleTasks", - "state": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* was founded by ********** and **********.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.97 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [] - }, - { - "redactedText": "Mi perro y mi gato tienen que ir al veterinario.", - "id": "2", - "entities": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:28.9147556Z", + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -1900,46 +2022,46 @@ } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "d8b8d8cb791a424603b7db2397911b1e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9650ac8e-31ab-4958-8a79-08aaad1f1180", + "apim-request-id": "3202a5ed-c793-4933-8e62-34a899b2f427", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:35 GMT", + "Date": "Fri, 14 May 2021 19:16:17 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": "90" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:34Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:18Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "running", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:34Z" + "lastUpdateDateTime": "2021-05-14T19:16:18Z" }, "completed": 3, "failed": 0, - "inProgress": 1, - "total": 4, + "inProgress": 2, + "total": 5, "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2006,15 +2128,145 @@ } } ], - "entityRecognitionPiiTasks": [ + "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:34.4260911Z", + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:18.0189976Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bf198f4fee7e9a69244218abb8d27691", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "d415004b-f724-4596-863d-c9bb002dc95a", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:16:18 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "131" + }, + "ResponseBody": { + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:18Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:16:18Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityRecognitionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:18.6640365Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { "documents": [ { - "redactedText": "********* was founded by ********** and **********.", "id": "1", "entities": [ { @@ -2042,20 +2294,349 @@ "warnings": [] }, { - "redactedText": "Mi perro y mi gato tienen que ir al veterinario.", + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + ], + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], "warnings": [] } ], "errors": [], + "modelVersion": "2020-02-01" + } + } + ], + "keyPhraseExtractionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "gato", + "perro", + "veterinario" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-07-01" + } + } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:18.0189976Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } + ] + } + } + }, + { + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a142239a4421ec13ffef0055dd42968c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "3f1b98a3-e6d8-47a6-9971-de3a10f1a882", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 May 2021 19:16:19 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "126" + }, + "ResponseBody": { + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:18Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", + "status": "running", + "errors": [], + "displayName": "AnalyzeOperationWithMultipleTasks", + "tasks": { + "details": { + "name": "AnalyzeOperationWithMultipleTasks", + "lastUpdateDateTime": "2021-05-14T19:16:18Z" + }, + "completed": 4, + "failed": 0, + "inProgress": 1, + "total": 5, + "entityRecognitionTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:18.6640365Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "entities": [ + { + "text": "Microsoft", + "category": "Organization", + "offset": 0, + "length": 9, + "confidenceScore": 0.97 + }, + { + "text": "Bill Gates", + "category": "Person", + "offset": 25, + "length": 10, + "confidenceScore": 1.0 + }, + { + "text": "Paul Allen", + "category": "Person", + "offset": 40, + "length": 10, + "confidenceScore": 0.99 + } + ], + "warnings": [] + }, + { + "id": "2", + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], + "warnings": [] + } + ], + "errors": [], "modelVersion": "2021-01-15" } } ], + "entityLinkingTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 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": [], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:28.9147556Z", + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2083,51 +2664,110 @@ "modelVersion": "2020-07-01" } } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:18.0189976Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } }, { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/c71505fc-28ce-4d86-92ee-f40dcb5d2278?showStats=false", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/analyze/jobs/ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "bf198f4fee7e9a69244218abb8d27691", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7d485b0c56dfdd4b6f1db3d8609a8a30", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "deeef18a-b5f6-45c0-b8e5-d57b1e3aee09", + "apim-request-id": "be216c05-0303-47ae-bc76-6875e751e113", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:05:36 GMT", + "Date": "Fri, 14 May 2021 19:16:21 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": "143" }, "ResponseBody": { - "jobId": "c71505fc-28ce-4d86-92ee-f40dcb5d2278", - "lastUpdateDateTime": "2021-05-11T16:05:36Z", - "createdDateTime": "2021-05-11T16:05:15Z", - "expirationDateTime": "2021-05-12T16:05:15Z", + "jobId": "ccbaa6ea-1783-4d62-acdf-b91c3bab7cbc", + "lastUpdateDateTime": "2021-05-14T19:16:21Z", + "createdDateTime": "2021-05-14T19:15:59Z", + "expirationDateTime": "2021-05-15T19:15:59Z", "status": "succeeded", "errors": [], "displayName": "AnalyzeOperationWithMultipleTasks", "tasks": { "details": { "name": "AnalyzeOperationWithMultipleTasks", - "lastUpdateDateTime": "2021-05-11T16:05:36Z" + "lastUpdateDateTime": "2021-05-14T19:16:21Z" }, - "completed": 4, + "completed": 5, "failed": 0, "inProgress": 0, - "total": 4, + "total": 5, "entityRecognitionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:36.90278Z", + "lastUpdateDateTime": "2021-05-14T19:16:18.6640365Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2180,7 +2820,7 @@ ], "entityLinkingTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:16.6602064Z", + "lastUpdateDateTime": "2021-05-14T19:16:00.917459Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2249,7 +2889,7 @@ ], "entityRecognitionPiiTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:34.4260911Z", + "lastUpdateDateTime": "2021-05-14T19:16:21.2234194Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2283,9 +2923,17 @@ "warnings": [] }, { - "redactedText": "Mi perro y mi gato tienen que ir al veterinario.", + "redactedText": "Mi perro y mi gato tienen que ir al ***********.", "id": "2", - "entities": [], + "entities": [ + { + "text": "veterinario", + "category": "PersonType", + "offset": 36, + "length": 11, + "confidenceScore": 0.96 + } + ], "warnings": [] } ], @@ -2296,7 +2944,7 @@ ], "keyPhraseExtractionTasks": [ { - "lastUpdateDateTime": "2021-05-11T16:05:28.9147556Z", + "lastUpdateDateTime": "2021-05-14T19:16:07.8824084Z", "name": "AnalyzeOperationWithMultipleTasks", "state": "succeeded", "results": { @@ -2324,6 +2972,65 @@ "modelVersion": "2020-07-01" } } + ], + "sentimentAnalysisTasks": [ + { + "lastUpdateDateTime": "2021-05-14T19:16:18.0189976Z", + "name": "AnalyzeOperationWithMultipleTasks", + "state": "succeeded", + "results": { + "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 was founded by Bill Gates and Paul Allen." + } + ], + "warnings": [] + }, + { + "id": "2", + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "sentences": [ + { + "sentiment": "neutral", + "confidenceScores": { + "positive": 0.13, + "neutral": 0.85, + "negative": 0.02 + }, + "offset": 0, + "length": 48, + "text": "Mi perro y mi gato tienen que ir al veterinario." + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + } ] } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceFullTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceFullTest.json index 98963eab2a8b3..47c25a5ab3851 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceFullTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceFullTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1a5716c363178c44b385069903a42b7f-bc18e1489baa8041-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-c597a9b76f000f4386d2a7122c67f41d-12be0a4de7406844-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7fbb9dea32b8080ffdad856789b2330d", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4f85a4ad-2226-4cd7-8d75-40fba639eb3c", + "apim-request-id": "bcd70364-da62-47b5-a830-ca69f8d4f62c", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:16 GMT", + "Date": "Fri, 14 May 2021 18:16:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "91" + "x-envoy-upstream-service-time": "100" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceFullTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceFullTestAsync.json index 86bdf4e55ecb4..fff7f1113ea09 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceFullTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceFullTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b1edcd637136b541aa828329951c7a35-715811fcc617d74a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-ca185855ccee004fa202b12021743246-d5be115cec925c4c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9ce6282fe98018f1ea732ad3ecd9e59c", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "36fe0f0b-742b-46d7-8b30-e105028715e6", + "apim-request-id": "e145140c-dc44-4fe1-b15b-8bdf8d4a57e9", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:38 GMT", + "Date": "Fri, 14 May 2021 18:16:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "117" + "x-envoy-upstream-service-time": "98" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceTest.json index 5fedb3e51474c..e8fddd6739c5e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-11e346e62909554fb268203604f58d2d-ff9a0a4e594f8746-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-db267bd1498f0847babd9a9c2910dc97-2abdc254f5180247-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "119c99db1e02c34777426e77d5c75cb6", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1f3b60cd-2251-4654-808b-45f6ddb2bf17", + "apim-request-id": "e4ab61e8-178f-4077-84ff-d8c021fb08c5", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:16 GMT", + "Date": "Fri, 14 May 2021 18:16:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "99" + "x-envoy-upstream-service-time": "112" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceTestAsync.json index 1dbfd926cdf41..33ff534dea167 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-4c5411f858ee424eaec4b48898567e52-05a12ba4491a5547-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-d7ea12c28a256d4088cd284282044b46-d3cdc7881a60a44a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9d1067da67ede0f99771b2c8070f5079", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3f355a45-b11e-42cb-9f1d-9b1e7145cc97", + "apim-request-id": "404efa21-84e1-4e30-ba02-59a280769f19", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:39 GMT", + "Date": "Fri, 14 May 2021 18:16:45 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": "115" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithCancellationTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithCancellationTest.json index 683134121c27f..c8c87a616a62d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithCancellationTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithCancellationTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a4ddd6e17aa10548a937f07b62da276c-480f2f107a68084c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-da39b3f550b5cd4fa91962a04b971fb0-cf91bacc0d66e249-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "86b79e2f0559eb97f25b1c5b233a68dd", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "78f7ccde-028f-47ed-9d6e-59ba6ec770e1", + "apim-request-id": "df3038d0-7840-45d2-b887-65621afb53db", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:16 GMT", + "Date": "Fri, 14 May 2021 18:16:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "126" + "x-envoy-upstream-service-time": "98" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithCancellationTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithCancellationTestAsync.json index a9c60d48a15ef..e91364d133a14 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithCancellationTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithCancellationTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8dda033aaa6f464bb8d80f03abf69855-22827656251d744a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-514c399080cf9045acb1c4e86573a632-7476866449b79c4a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "300adb4a8ab9aa03c50b104c35b7e035", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "798a7f75-01a1-459e-9e29-5ac44096143f", + "apim-request-id": "b01990d4-5726-4be8-b8e3-8aa31346d955", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:39 GMT", + "Date": "Fri, 14 May 2021 18:16:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "112" + "x-envoy-upstream-service-time": "90" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndCancellationTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndCancellationTest.json index 368cb4a2f93ba..cf932df6eaf20 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndCancellationTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndCancellationTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-fd2d782a72e99740b88a609e92087682-5eadcdd2f933574b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-e640b78d7860b54b8451f2a256807cbc-384cad9f16412e4a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "abe848a0b41107615847f9d88e292402", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "122010e0-f4d6-4a03-9777-9ada462c57af", + "apim-request-id": "6d236a3e-3565-4ae7-b757-99de73b2cf8d", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:17 GMT", + "Date": "Fri, 14 May 2021 18:16:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "99" + "x-envoy-upstream-service-time": "84" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndCancellationTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndCancellationTestAsync.json index cad8abab9bb60..5bb19d43d34ca 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndCancellationTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndCancellationTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e66986877085bf45bd0241027f1a77ab-97b541f39833b94c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-6f7b5895d7c7cb48acc9020d3ed16cc9-8b63496610482841-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "e76a4622dec6c96d7ae12bfd307d2c70", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "460cc7b5-f9b0-4655-8695-2bbb1ada1a42", + "apim-request-id": "c86292fb-c017-4cb2-a9aa-b839d1fd4654", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:40 GMT", + "Date": "Fri, 14 May 2021 18:16:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "95" + "x-envoy-upstream-service-time": "104" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndStatisticsTest.json index 3bef350e2356c..c60ba15bc4e5d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndStatisticsTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f7a508c6e258694d9d59f5cad7db1698-11ba48c3f229fc41-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-abc08c5f90dfd94f8bc94cd78c0dd70b-d98e13ee8b7b3441-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "ddaaf35e96b9dae8e520d1e25db41ef1", "x-ms-return-client-request-id": "true" }, @@ -29,10 +29,10 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "55c796c5-c1be-42ca-ab86-76f7cef2b4f1", + "apim-request-id": "d36e08df-5793-452e-87b7-3d35f323ceaf", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:17 GMT", + "Date": "Fri, 14 May 2021 18:16:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndStatisticsTestAsync.json index e3d79458d5728..300afee4b9c22 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageAndStatisticsTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-45747944d47bf648b242f1e685adf572-3ef1cf2c28f7f64f-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-8d649113207f864da13ce3bb2fac4097-acb280eca6748441-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "a461009a7ec465a3d8be1a54c58e3575", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2635536c-6bf9-4c9f-a73c-1ea6cc6c3bcd", + "apim-request-id": "182101f1-6324-480c-b804-c8eee0348fc8", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:40 GMT", + "Date": "Fri, 14 May 2021 18:16:45 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" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageTest.json index d07cf3852bb14..9df141d5f8b8e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-6dea85adf3e76e48b8b6d5ae94a6fe59-459e1c28ae4cce43-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-ac1c27e11b4fa947a11c75e52405fd08-dd6f58c4912ddf4b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "f4f79420d55186c560e783cd65904498", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f6dc1e9c-bd32-470c-8eca-2a67deacb41b", + "apim-request-id": "008f693f-0eeb-4392-a5f0-45f287c7316c", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:18 GMT", + "Date": "Fri, 14 May 2021 18:16:34 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": "99" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageTestAsync.json index 3d313f06f16dc..15a4b8447d87b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithLanguageTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3a4c033515d61441b138f84874992a51-5a2a2127f7048c40-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-55dca85301570a469f24e650a4111d9c-69c903b5cf72314c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "a82300e8850457b9e1ddd84e5e66ebf5", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "95f345f5-a8bd-4140-a3cf-fb196be38fc1", + "apim-request-id": "26ad754f-9fcb-4737-8852-b92fb5d17cdf", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:40 GMT", + "Date": "Fri, 14 May 2021 18:16:45 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": "95" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsAndCancellationTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsAndCancellationTest.json index c419194123fef..237e31150f200 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsAndCancellationTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsAndCancellationTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c1fc76d9afa0b44c8f4033f895b2aa36-a6a2eab75cff4342-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-b247df5451400f4e81d3d69382bd2cb7-bd5437d09b45294d-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "ea37c4c5b43ade506c055e9d1167082c", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "deec1b04-b9f6-45f7-994f-cfacd83593d5", + "apim-request-id": "ee276760-3794-4e26-97fe-1f481d37aa3b", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:23 GMT", + "Date": "Fri, 14 May 2021 18:16:35 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": "152" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsAndCancellationTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsAndCancellationTestAsync.json index 55feaf56ec964..4c3b7327479a6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsAndCancellationTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsAndCancellationTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3ca217035cefb344a8dc3b06dba43c6f-5f889f79fe0c8c42-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-a105ba774a12b74f95dcf72ce634c141-ea22cc9619fddd4a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "d297a709781eea07c58dac26eba5fefd", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ef18f19f-0b1e-43e3-ad40-aca150a75b74", + "apim-request-id": "eee7cdc8-ff7a-4b8b-a6f8-c0c6322374b5", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:44 GMT", + "Date": "Fri, 14 May 2021 18:16:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "96" + "x-envoy-upstream-service-time": "109" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsTest.json index fca7c29ca35f4..3fe73a4d341c5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d65330d85a06e8458f6a0fd261efef2f-a4091935c3e5ea4e-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-14830682cecacb42b14c3cfe15f26d79-9848b6fe95f65a44-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "b93a282865c5e574aa1703755dff0595", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7aba4879-9212-42bb-b0ad-42374feae5cb", + "apim-request-id": "393b1381-38e0-4be8-a860-6d56640e2e80", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:23 GMT", + "Date": "Fri, 14 May 2021 18:16:35 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": "99" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsTestAsync.json index 79817a9780b51..c46cb3e489b15 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchConvenienceWithStatisticsTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "222", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-129b1180d193134bb6d210d229040aa4-ca12874e51018648-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-b28f349bd7071d40bbfe2dde8677942c-d08a67a9cf8d224b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "896aa869bee9e15710e9b281353ff7e1", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "458346ca-6d80-4c08-b1e2-4366cab40358", + "apim-request-id": "7d2c4362-11bf-4cb4-8fb8-b62e336dd0da", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:46 GMT", + "Date": "Fri, 14 May 2021 18:16: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": "101" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchTest.json index ecc66c19ea7dc..ea4b6112d2a8b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "224", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-116a60c68ec1dd46bd6002e3f691c41e-21a507d478add947-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-a450cf73463d2b40b5a57eeac7b4f357-a76ee558846f7e45-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "f4c1d2e666ddf215fcefdfedc5dd71c8", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "66e8aefa-7c57-4c61-abae-32e2f4a73586", + "apim-request-id": "a4ac97f2-7014-4d45-87ef-842cfafa720c", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:24 GMT", + "Date": "Fri, 14 May 2021 18:16:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "122" + "x-envoy-upstream-service-time": "127" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchTestAsync.json index 31e70a1366f03..c3a3c678c4c52 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "224", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-004ec78d11fafc4d9a38cdada88a7d51-8dfc6e0eaca0c641-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-b91e39bb8136f84ebdaf821868b4e9cf-1e13ea75b15d1849-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "26baa46075d446ba158f6fd6eeae447a", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1c4fa650-82b1-4b17-a8ec-5e02ce2eee75", + "apim-request-id": "02f03d49-9797-4f81-adb1-462440bfe59a", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:47 GMT", + "Date": "Fri, 14 May 2021 18:16:46 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": "156" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithErrorTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithErrorTest.json index 910df922cc760..97fcc1e081a54 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithErrorTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithErrorTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "207", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1656217975c9be43bf5fb66a9eee8df2-282bcb4df71b874e-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-5a2716df3dbd2c4d956d4a76582ae900-6204dd7f9b820848-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "381e2b63f2088d45202cae7fd25e5042", "x-ms-return-client-request-id": "true" }, @@ -34,14 +34,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "20893ecc-4f25-4a5c-ae3d-776100feef26", + "apim-request-id": "da3d8f64-26a6-4610-8e9c-36c63cb7a578", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:25 GMT", + "Date": "Fri, 14 May 2021 18:16:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "99" + "x-envoy-upstream-service-time": "102" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithErrorTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithErrorTestAsync.json index c664e8afb47f2..95b1c4d2b18e9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithErrorTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithErrorTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "207", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-fdc1db6c084c6747af6889a887ce0b48-becf4415e1181b46-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-7fa1374c17899343b1052732ef962e7f-9189d478611cc744-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "29ac615e7a25f0506bd8c86ac7133e14", "x-ms-return-client-request-id": "true" }, @@ -34,14 +34,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a645d835-8523-4d43-9541-b84c09b84e29", + "apim-request-id": "e4d0559a-76ab-4b59-957d-1ec85ac1bd2d", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:47 GMT", + "Date": "Fri, 14 May 2021 18:16:47 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": "113" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullIdTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullIdTest.json index f4bfef7952dab..fb66b0ac0e270 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullIdTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullIdTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "64", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-411616a4e8cef144b4bcca664472de63-5f1535517482e541-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-a4d5aee4c9c09b438b6b77572b456a59-5b744c8280cb1743-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "e97c715478efd2b509099d562415356f", "x-ms-return-client-request-id": "true" }, @@ -24,13 +24,13 @@ }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "0ae70d2f-b3f6-432e-8f4d-e88f38978af8", + "apim-request-id": "d96e7dd6-a987-4c67-afb2-ea028d5d32d0", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:07:25 GMT", + "Date": "Fri, 14 May 2021 18:16: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": "13" }, "ResponseBody": { "error": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullIdTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullIdTestAsync.json index 63d765f328910..991faa7efe8ce 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullIdTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullIdTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "64", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-01d00d8d28fc22478336625ac5342803-dbba9e9e86fed042-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-9b9d0e015f9ac249ba21e44b0e4a8bac-b437565bf323ba4d-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7d28785fafea6a705989dd511c352058", "x-ms-return-client-request-id": "true" }, @@ -24,13 +24,13 @@ }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "cc59c1b6-9ad7-4645-9ad8-152a9de6266b", + "apim-request-id": "7421c3c8-b57d-49ca-93f4-40f3a8c13044", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:07:47 GMT", + "Date": "Fri, 14 May 2021 18:16:48 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": "4" }, "ResponseBody": { "error": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullTextTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullTextTest.json index 36d693f7fd0c6..1fef24056dfc1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullTextTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullTextTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "54", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c32443d76595374da0efeb1a5521b0e9-88c754c7b01aa040-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-49433adbf596b940953098e54f88a3d2-89c4f92f26b8904c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "a82047bc1e56521f19fee095619725e3", "x-ms-return-client-request-id": "true" }, @@ -24,13 +24,13 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d57ba465-8457-4f5d-8608-d22a0c094e69", + "apim-request-id": "97e50b16-ccf6-4fa9-8dac-b0c7090fdc7a", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:07:25 GMT", + "Date": "Fri, 14 May 2021 18:16: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" }, "ResponseBody": { "documents": [], diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullTextTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullTextTestAsync.json index bc3af4e71ec9a..584377d302064 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullTextTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithNullTextTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "54", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d29f22bf09c7a84293229400da2b250c-e159a4a2aebdc148-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-54878472f7ec904b92421e78fcc290f5-e2bee692a2fbc845-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "e4b5e1c573e3bc3fc5137a6a90633740", "x-ms-return-client-request-id": "true" }, @@ -24,13 +24,13 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e7c60dbc-edd4-49a1-92c7-cedd3b59878b", + "apim-request-id": "fb25390e-67da-469a-9b0f-d3d26883ba75", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 May 2021 16:07:47 GMT", + "Date": "Fri, 14 May 2021 18:16:48 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" }, "ResponseBody": { "documents": [], diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithStatisticsTest.json index 77eeeb0e60d36..8f6594c77bddf 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithStatisticsTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "224", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-bfac5d416f7daa44a5078c4f2e1b8463-c906f62e7639a142-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-f569734aa7ffa94091b56212c722a7bf-c867a83c3fb35246-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "380d3332cec3ce7a5b0d21c20c2f8b8d", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "103e22c2-4d3b-4d44-85ae-02918ca17ee2", + "apim-request-id": "1dd5a0c8-dde8-4195-bebd-157c820228f1", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:26 GMT", + "Date": "Fri, 14 May 2021 18:16:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "124" + "x-envoy-upstream-service-time": "106" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithStatisticsTestAsync.json index 39e3ce9097b13..6c4ba1cfdf0c8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentBatchWithStatisticsTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=true\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "224", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-97e656ae4ecc2447b018a7883fab43b5-f251436db0a65d40-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-36f86e375b4e3d40af980accca4b0059-fa6955de3872f740-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "f794f0733bb3c43d680189f109278930", "x-ms-return-client-request-id": "true" }, @@ -29,14 +29,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "441a0327-5a0d-4489-a667-bdae49b0944a", + "apim-request-id": "d5d70494-fd4e-4286-bb2c-5894ad4f0f54", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Tue, 11 May 2021 16:07:54 GMT", + "Date": "Fri, 14 May 2021 18:16:49 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": "100" }, "ResponseBody": { "statistics": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentTest.json index 078d413184c5c..e8f2926743897 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "85", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0bdb4479685d6b4fb5390a1dea18d978-7d48bab608450e41-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-2012c32b7f289b4a8afca797b47d041a-7615dac1d5f08d4b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "4e5bdbe5820d38723d195b24082e286d", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "cec8c85b-7d61-4c9f-bde4-37e6c08df392", + "apim-request-id": "11cce8b5-dcf7-4657-9b11-cfad6d3a25bb", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:26 GMT", + "Date": "Fri, 14 May 2021 18:16:38 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": "90" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentTestAsync.json index 440143abc04c2..db49b28fbfe81 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "85", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-75beed24530f7543aca596fd83a904a1-3b57dd5b390a1d48-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-f3f8f00b66ab4d4598ad8cce41d6d69b-98d724eb33634449-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "03ba29d245db7d4660e70538d783a159", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2be86cc1-4b24-4d28-9f13-1002f22fd936", + "apim-request-id": "d1b13bd1-9eed-4c5a-bbc4-e52eb1ddfb2a", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:54 GMT", + "Date": "Fri, 14 May 2021 18:16:49 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": "95" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithAADTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithAADTest.json index b595dc5855bb4..2765daf0d9fd7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithAADTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithAADTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Authorization": "Sanitized", "Content-Length": "85", "Content-Type": "application/json", - "traceparent": "00-400d56c66b2dc042870e2d4524d53bf5-57154e57102f2245-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-64166efab28e1747b4a17fa4bf780e37-036101df2c4a1a44-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "281044ce62413e7f41aa77db23c5b9b7", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "85f797bb-9913-44c5-b8ec-abb5f5755c7d", + "apim-request-id": "51f0a05d-2ef1-447f-9cd8-bd963309823a", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:29 GMT", + "Date": "Fri, 14 May 2021 18:16:40 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": "84" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithAADTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithAADTestAsync.json index c336ef03a7eba..d14687a311044 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithAADTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithAADTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Authorization": "Sanitized", "Content-Length": "85", "Content-Type": "application/json", - "traceparent": "00-555fca323d5b624fb3ed74466d6bd0bf-2c8ef0bd561f5f4e-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-ee73cae4b392ce478413da1e07827b21-2851eb81aae7304f-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "856c28003995315c9665766e550a7c71", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "54c1970c-1563-4816-8967-6d482d26d62c", + "apim-request-id": "fc1aca18-720c-4b2c-813c-1d6c3279504c", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:55 GMT", + "Date": "Fri, 14 May 2021 18:16:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "109" + "x-envoy-upstream-service-time": "87" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithCancellationTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithCancellationTest.json index dfcb174ea3a02..d79438591ee1f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithCancellationTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithCancellationTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "76", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-6d898e88f91f1244880ff800bafc373b-68f9a0953af9a648-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-9d29b2d768f85d4f940c3bf01044693e-85320dee75ab4a44-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "1cd519dfbccdba31b1f719f550932df6", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ac227ff5-527e-413d-81b9-738785a27977", + "apim-request-id": "f5614329-ae2b-4278-a74b-38a8863ce1c4", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:30 GMT", + "Date": "Fri, 14 May 2021 18:16:40 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": "120" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithCancellationTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithCancellationTestAsync.json index 590dbe1d642ef..7642578434d1d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithCancellationTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithCancellationTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "76", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3c9ab0789c940a49b996d8761bb32ae8-2c777bd4e1cd314e-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-9394d1b031c2954587e032292ccce241-4c7f4bf777abda41-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "e4628ff9d75e35fa30a2a74d75b5d054", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a51a5ea7-7ef1-4fd4-b8f0-7013e8a40ba8", + "apim-request-id": "13163133-1504-48c4-be01-664801806d39", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:55 GMT", + "Date": "Fri, 14 May 2021 18:16:50 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": "113" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageAndCancellationTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageAndCancellationTest.json index e0aa425cfd079..8a510facf2309 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageAndCancellationTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageAndCancellationTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "76", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-bc4085daca07a045995ab14492ea575a-c1b92ff82aef424d-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-bc87c316dcba1d4e91a2a4a6d49e0c96-0ba32dfa30f63346-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0226741a4a3852fb661facf15a20cdfc", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2befafed-43b1-45dc-a48f-f25336f65bfe", + "apim-request-id": "fd151357-e81a-4d75-9c5a-36bd71682aba", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:31 GMT", + "Date": "Fri, 14 May 2021 18:16:43 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": "2829" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageAndCancellationTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageAndCancellationTestAsync.json index b6d05878574a8..be50bdf8d0332 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageAndCancellationTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageAndCancellationTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "76", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-525ffc8e56f91a4883d8f3b7e32e8e46-9433169ab75efd4a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-2e6d5d5c30c8e243aee88890c7bc5518-6b9721382e5d1d4c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "1d19c9bc741aeaae2a3044500760d7de", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "758ecb65-b2ac-4e24-adf2-9b75812ca7fe", + "apim-request-id": "4233c682-f87b-47af-bf80-e96a2fff8778", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:58 GMT", + "Date": "Fri, 14 May 2021 18:16:51 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "2624" + "x-envoy-upstream-service-time": "148" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageTest.json index 0ef6bd4bf1a79..f83003c41f396 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageTest.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "76", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8c45f061aa190d4cb0717f12eb2b5dd6-5c00803ba99ae947-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-ad87d5f68386c741b07dbb7d58874fa9-282253404872aa47-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "b1c263e328066fc8dce532b649cbfd03", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e6be9a66-3a3f-4b04-a5fe-e0398c66162b", + "apim-request-id": "bc6b12b8-56e5-4d0a-8008-25bee361f540", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:32 GMT", + "Date": "Fri, 14 May 2021 18:16:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "497" + "x-envoy-upstream-service-time": "114" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageTestAsync.json index a243ddd45dcc6..ea4fad90bcd58 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/AnalyzeSentimentTests/AnalyzeSentimentWithLanguageTestAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026opinionMining=false\u0026stringIndexType=Utf16CodeUnit", + "RequestUri": "https://mariari-westus2-s.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/sentiment?showStats=false\u0026stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", "Content-Length": "76", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-631f747cfc89fd4aa7e57d626a2024ac-458b4cce4e20f14c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210511.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-1a0c7c42d3f9704685fc6926940aa076-15cd01ba83fad740-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210514.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "61e4104888cde5cbe34786063a0401dd", "x-ms-return-client-request-id": "true" }, @@ -24,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2788c3f4-a6c8-4701-87c0-2277419ccf2a", + "apim-request-id": "dcd28aaf-946e-4e7a-be34-db8d66aaf329", "Content-Type": "application/json; charset=utf-8", "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Tue, 11 May 2021 16:07:59 GMT", + "Date": "Fri, 14 May 2021 18:16:51 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": "104" }, "ResponseBody": { "documents": [ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs index 96a8f94934290..f12e5bf6fb245 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs @@ -27,20 +27,12 @@ public void AnalyzeOperation() string documentA = @"We love this trail and make the trip every year. The views are breathtaking and well worth the hike! Yesterday was foggy though, so we missed the spectacular views. We tried again today and it was amazing. Everyone in my family liked the trail although - it was too challenging for the less athletic among us. - Not necessarily recommended for small children. - A hotel close to the trail offers services for childcare in case you want that."; + it was too challenging for the less athletic among us."; string documentB = @"Last week we stayed at Hotel Foo to celebrate our anniversary. The staff knew about our anniversary so they helped me organize a little surprise for my partner. The room was clean and with the decoration I requested. It was perfect!"; - string documentC = @"That was the best day of my life! We went on a 4 day trip where we stayed at Hotel Foo. - They had great amenities that included an indoor pool, a spa, and a bar. - The spa offered couples massages which were really good. - The spa was clean and felt very peaceful. Overall the whole experience was great. - We will definitely come back."; - var batchDocuments = new List { new TextDocumentInput("1", documentA) @@ -48,10 +40,6 @@ The spa was clean and felt very peaceful. Overall the whole experience was great Language = "en", }, new TextDocumentInput("2", documentB) - { - Language = "en", - }, - new TextDocumentInput("3", documentC) { Language = "en", } @@ -63,6 +51,7 @@ The spa was clean and felt very peaceful. Overall the whole experience was great RecognizeEntitiesOptions = new List() { new RecognizeEntitiesOptions() }, RecognizePiiEntitiesOptions = new List() { new RecognizePiiEntitiesOptions() }, RecognizeLinkedEntitiesOptions = new List() { new RecognizeLinkedEntitiesOptions() }, + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() }, DisplayName = "AnalyzeOperationSample" }; @@ -92,88 +81,117 @@ The spa was clean and felt very peaceful. Overall the whole experience was great foreach (AnalyzeBatchActionsResult documentsInPage in operation.GetValues()) { - RecognizeEntitiesResultCollection entitiesResult = documentsInPage.RecognizeEntitiesActionsResults.FirstOrDefault().Result; - - ExtractKeyPhrasesResultCollection keyPhrasesResult = documentsInPage.ExtractKeyPhrasesActionsResults.FirstOrDefault().Result; - - RecognizePiiEntitiesResultCollection piiResult = documentsInPage.RecognizePiiEntitiesActionsResults.FirstOrDefault().Result; - - RecognizeLinkedEntitiesResultCollection linkedEntitiesResult = documentsInPage.RecognizeLinkedEntitiesActionsResults.FirstOrDefault().Result; + IReadOnlyCollection keyPhrasesActionsResults = documentsInPage.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection entitiesActionsResults = documentsInPage.RecognizeEntitiesActionsResults; + IReadOnlyCollection piiActionsResults = documentsInPage.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = documentsInPage.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = documentsInPage.AnalyzeSentimentActionsResults; Console.WriteLine("Recognized Entities"); - - foreach (RecognizeEntitiesResult result in entitiesResult) + int docNumber = 1; + foreach (RecognizeEntitiesActionResult entitiesActionResults in entitiesActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); - - foreach (CategorizedEntity entity in result.Entities) + foreach (RecognizeEntitiesResult result in entitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); + + foreach (CategorizedEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized PII Entities"); - - foreach (RecognizePiiEntitiesResult result in piiResult) + docNumber = 1; + foreach (RecognizePiiEntitiesActionResult piiActionResults in piiActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); - - foreach (PiiEntity entity in result.Entities) + foreach (RecognizePiiEntitiesResult result in piiActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); + + foreach (PiiEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Key Phrases"); - - foreach (ExtractKeyPhrasesResult result in keyPhrasesResult) + docNumber = 1; + foreach (ExtractKeyPhrasesActionResult keyPhrasesActionResult in keyPhrasesActionsResults) { - Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); - - foreach (string keyphrase in result.KeyPhrases) + foreach (ExtractKeyPhrasesResult result in keyPhrasesActionResult.Result) { - Console.WriteLine($" {keyphrase}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); + + foreach (string keyphrase in result.KeyPhrases) + { + Console.WriteLine($" {keyphrase}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized Linked Entities"); - - foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesResult) + docNumber = 1; + foreach (RecognizeLinkedEntitiesActionResult linkedEntitiesActionResults in entityLinkingActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); - - foreach (LinkedEntity entity in result.Entities) + foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Name}"); - Console.WriteLine($" DataSource: {entity.DataSource}"); - Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); - Console.WriteLine($" Language: {entity.Language}"); - Console.WriteLine($" DataSource Url: {entity.Url}"); - - Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); - foreach (LinkedEntityMatch match in entity.Matches) + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); + + foreach (LinkedEntity entity in result.Entities) { - Console.WriteLine($" Match Text: {match.Text}"); - Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); - Console.WriteLine($" Offset: {match.Offset}"); - Console.WriteLine($" Length: {match.Length}"); + Console.WriteLine($" Entity: {entity.Name}"); + Console.WriteLine($" DataSource: {entity.DataSource}"); + Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); + Console.WriteLine($" Language: {entity.Language}"); + Console.WriteLine($" DataSource Url: {entity.Url}"); + + Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); + foreach (LinkedEntityMatch match in entity.Matches) + { + Console.WriteLine($" Match Text: {match.Text}"); + Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); + Console.WriteLine($" Offset: {match.Offset}"); + Console.WriteLine($" Length: {match.Length}"); + } + Console.WriteLine(""); } Console.WriteLine(""); } - Console.WriteLine(""); + } + + Console.WriteLine("Analyze Sentiment"); + docNumber = 1; + foreach (AnalyzeSentimentActionResult analyzeSentimentActionsResult in analyzeSentimentActionsResults) + { + foreach (AnalyzeSentimentResult result in analyzeSentimentActionsResult.Result) + { + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Sentiment is {result.DocumentSentiment.Sentiment}, with confidence scores: "); + Console.WriteLine($" Positive confidence score: {result.DocumentSentiment.ConfidenceScores.Positive}."); + Console.WriteLine($" Neutral confidence score: {result.DocumentSentiment.ConfidenceScores.Neutral}."); + Console.WriteLine($" Negative confidence score: {result.DocumentSentiment.ConfidenceScores.Negative}."); + Console.WriteLine(""); + } } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationAsync.cs index 3233116cec8ab..a6bf2e3b35401 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationAsync.cs @@ -27,20 +27,12 @@ public async Task AnalyzeOperationAsync() string documentA = @"We love this trail and make the trip every year. The views are breathtaking and well worth the hike! Yesterday was foggy though, so we missed the spectacular views. We tried again today and it was amazing. Everyone in my family liked the trail although - it was too challenging for the less athletic among us. - Not necessarily recommended for small children. - A hotel close to the trail offers services for childcare in case you want that."; + it was too challenging for the less athletic among us."; string documentB = @"Last week we stayed at Hotel Foo to celebrate our anniversary. The staff knew about our anniversary so they helped me organize a little surprise for my partner. The room was clean and with the decoration I requested. It was perfect!"; - string documentC = @"That was the best day of my life! We went on a 4 day trip where we stayed at Hotel Foo. - They had great amenities that included an indoor pool, a spa, and a bar. - The spa offered couples massages which were really good. - The spa was clean and felt very peaceful. Overall the whole experience was great. - We will definitely come back."; - var batchDocuments = new List { new TextDocumentInput("1", documentA) @@ -48,10 +40,6 @@ The spa was clean and felt very peaceful. Overall the whole experience was great Language = "en", }, new TextDocumentInput("2", documentB) - { - Language = "en", - }, - new TextDocumentInput("3", documentC) { Language = "en", } @@ -63,6 +51,7 @@ The spa was clean and felt very peaceful. Overall the whole experience was great RecognizeEntitiesOptions = new List() { new RecognizeEntitiesOptions() }, RecognizePiiEntitiesOptions = new List() { new RecognizePiiEntitiesOptions() }, RecognizeLinkedEntitiesOptions = new List() { new RecognizeLinkedEntitiesOptions() }, + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() }, DisplayName = "AnalyzeOperationSample" }; @@ -83,88 +72,117 @@ The spa was clean and felt very peaceful. Overall the whole experience was great await foreach (AnalyzeBatchActionsResult documentsInPage in operation.Value) { - RecognizeEntitiesResultCollection entitiesResult = documentsInPage.RecognizeEntitiesActionsResults.FirstOrDefault().Result; - - ExtractKeyPhrasesResultCollection keyPhrasesResult = documentsInPage.ExtractKeyPhrasesActionsResults.FirstOrDefault().Result; - - RecognizePiiEntitiesResultCollection piiResult = documentsInPage.RecognizePiiEntitiesActionsResults.FirstOrDefault().Result; - - RecognizeLinkedEntitiesResultCollection linkedEntitiesResult = documentsInPage.RecognizeLinkedEntitiesActionsResults.FirstOrDefault().Result; + IReadOnlyCollection keyPhrasesActionsResults = documentsInPage.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection entitiesActionsResults = documentsInPage.RecognizeEntitiesActionsResults; + IReadOnlyCollection piiActionsResults = documentsInPage.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = documentsInPage.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = documentsInPage.AnalyzeSentimentActionsResults; Console.WriteLine("Recognized Entities"); - - foreach (RecognizeEntitiesResult result in entitiesResult) + int docNumber = 1; + foreach (RecognizeEntitiesActionResult entitiesActionResults in entitiesActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); - - foreach (CategorizedEntity entity in result.Entities) + foreach (RecognizeEntitiesResult result in entitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); + + foreach (CategorizedEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized PII Entities"); - - foreach (RecognizePiiEntitiesResult result in piiResult) + docNumber = 1; + foreach (RecognizePiiEntitiesActionResult piiActionResults in piiActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); - - foreach (PiiEntity entity in result.Entities) + foreach (RecognizePiiEntitiesResult result in piiActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); + + foreach (PiiEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Key Phrases"); - - foreach (ExtractKeyPhrasesResult result in keyPhrasesResult) + docNumber = 1; + foreach (ExtractKeyPhrasesActionResult keyPhrasesActionResult in keyPhrasesActionsResults) { - Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); - - foreach (string keyphrase in result.KeyPhrases) + foreach (ExtractKeyPhrasesResult result in keyPhrasesActionResult.Result) { - Console.WriteLine($" {keyphrase}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); + + foreach (string keyphrase in result.KeyPhrases) + { + Console.WriteLine($" {keyphrase}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized Linked Entities"); - - foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesResult) + docNumber = 1; + foreach (RecognizeLinkedEntitiesActionResult linkedEntitiesActionResults in entityLinkingActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); - - foreach (LinkedEntity entity in result.Entities) + foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Name}"); - Console.WriteLine($" DataSource: {entity.DataSource}"); - Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); - Console.WriteLine($" Language: {entity.Language}"); - Console.WriteLine($" DataSource Url: {entity.Url}"); - - Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); - foreach (LinkedEntityMatch match in entity.Matches) + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); + + foreach (LinkedEntity entity in result.Entities) { - Console.WriteLine($" Match Text: {match.Text}"); - Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); - Console.WriteLine($" Offset: {match.Offset}"); - Console.WriteLine($" Length: {match.Length}"); + Console.WriteLine($" Entity: {entity.Name}"); + Console.WriteLine($" DataSource: {entity.DataSource}"); + Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); + Console.WriteLine($" Language: {entity.Language}"); + Console.WriteLine($" DataSource Url: {entity.Url}"); + + Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); + foreach (LinkedEntityMatch match in entity.Matches) + { + Console.WriteLine($" Match Text: {match.Text}"); + Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); + Console.WriteLine($" Offset: {match.Offset}"); + Console.WriteLine($" Length: {match.Length}"); + } + Console.WriteLine(""); } Console.WriteLine(""); } - Console.WriteLine(""); + } + + Console.WriteLine("Analyze Sentiment"); + docNumber = 1; + foreach (AnalyzeSentimentActionResult analyzeSentimentActionsResult in analyzeSentimentActionsResults) + { + foreach (AnalyzeSentimentResult result in analyzeSentimentActionsResult.Result) + { + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Sentiment is {result.DocumentSentiment.Sentiment}, with confidence scores: "); + Console.WriteLine($" Positive confidence score: {result.DocumentSentiment.ConfidenceScores.Positive}."); + Console.WriteLine($" Neutral confidence score: {result.DocumentSentiment.ConfidenceScores.Neutral}."); + Console.WriteLine($" Negative confidence score: {result.DocumentSentiment.ConfidenceScores.Negative}."); + Console.WriteLine(""); + } } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationBatchConvenience.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationBatchConvenience.cs index cbefb0758d308..cb98c5048dd23 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationBatchConvenience.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationBatchConvenience.cs @@ -26,25 +26,16 @@ public void AnalyzeOperationBatchConvenience() string documentA = @"We love this trail and make the trip every year. The views are breathtaking and well worth the hike! Yesterday was foggy though, so we missed the spectacular views. We tried again today and it was amazing. Everyone in my family liked the trail although - it was too challenging for the less athletic among us. - Not necessarily recommended for small children. - A hotel close to the trail offers services for childcare in case you want that."; + it was too challenging for the less athletic among us."; string documentB = @"Last week we stayed at Hotel Foo to celebrate our anniversary. The staff knew about our anniversary so they helped me organize a little surprise for my partner. The room was clean and with the decoration I requested. It was perfect!"; - string documentC = @"That was the best day of my life! We went on a 4 day trip where we stayed at Hotel Foo. - They had great amenities that included an indoor pool, a spa, and a bar. - The spa offered couples massages which were really good. - The spa was clean and felt very peaceful. Overall the whole experience was great. - We will definitely come back."; - var batchDocuments = new List { documentA, - documentB, - documentC + documentB }; TextAnalyticsActions actions = new TextAnalyticsActions() @@ -53,6 +44,7 @@ The spa was clean and felt very peaceful. Overall the whole experience was great RecognizeEntitiesOptions = new List() { new RecognizeEntitiesOptions() }, RecognizePiiEntitiesOptions = new List() { new RecognizePiiEntitiesOptions() }, RecognizeLinkedEntitiesOptions = new List() { new RecognizeLinkedEntitiesOptions() }, + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() }, DisplayName = "AnalyzeOperationSample" }; @@ -82,88 +74,117 @@ The spa was clean and felt very peaceful. Overall the whole experience was great foreach (AnalyzeBatchActionsResult documentsInPage in operation.GetValues()) { - RecognizeEntitiesResultCollection entitiesResult = documentsInPage.RecognizeEntitiesActionsResults.FirstOrDefault().Result; - - ExtractKeyPhrasesResultCollection keyPhrasesResult = documentsInPage.ExtractKeyPhrasesActionsResults.FirstOrDefault().Result; - - RecognizePiiEntitiesResultCollection piiResult = documentsInPage.RecognizePiiEntitiesActionsResults.FirstOrDefault().Result; - - RecognizeLinkedEntitiesResultCollection linkedEntitiesResult = documentsInPage.RecognizeLinkedEntitiesActionsResults.FirstOrDefault().Result; + IReadOnlyCollection keyPhrasesActionsResults = documentsInPage.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection entitiesActionsResults = documentsInPage.RecognizeEntitiesActionsResults; + IReadOnlyCollection piiActionsResults = documentsInPage.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = documentsInPage.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = documentsInPage.AnalyzeSentimentActionsResults; Console.WriteLine("Recognized Entities"); - - foreach (RecognizeEntitiesResult result in entitiesResult) + int docNumber = 1; + foreach (RecognizeEntitiesActionResult entitiesActionResults in entitiesActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); - - foreach (CategorizedEntity entity in result.Entities) + foreach (RecognizeEntitiesResult result in entitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); + + foreach (CategorizedEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized PII Entities"); - - foreach (RecognizePiiEntitiesResult result in piiResult) + docNumber = 1; + foreach (RecognizePiiEntitiesActionResult piiActionResults in piiActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); - - foreach (PiiEntity entity in result.Entities) + foreach (RecognizePiiEntitiesResult result in piiActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); + + foreach (PiiEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Key Phrases"); - - foreach (ExtractKeyPhrasesResult result in keyPhrasesResult) + docNumber = 1; + foreach (ExtractKeyPhrasesActionResult keyPhrasesActionResult in keyPhrasesActionsResults) { - Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); - - foreach (string keyphrase in result.KeyPhrases) + foreach (ExtractKeyPhrasesResult result in keyPhrasesActionResult.Result) { - Console.WriteLine($" {keyphrase}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); + + foreach (string keyphrase in result.KeyPhrases) + { + Console.WriteLine($" {keyphrase}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized Linked Entities"); - - foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesResult) + docNumber = 1; + foreach (RecognizeLinkedEntitiesActionResult linkedEntitiesActionResults in entityLinkingActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); - - foreach (LinkedEntity entity in result.Entities) + foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Name}"); - Console.WriteLine($" DataSource: {entity.DataSource}"); - Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); - Console.WriteLine($" Language: {entity.Language}"); - Console.WriteLine($" DataSource Url: {entity.Url}"); - - Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); - foreach (LinkedEntityMatch match in entity.Matches) + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); + + foreach (LinkedEntity entity in result.Entities) { - Console.WriteLine($" Match Text: {match.Text}"); - Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); - Console.WriteLine($" Offset: {match.Offset}"); - Console.WriteLine($" Length: {match.Length}"); + Console.WriteLine($" Entity: {entity.Name}"); + Console.WriteLine($" DataSource: {entity.DataSource}"); + Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); + Console.WriteLine($" Language: {entity.Language}"); + Console.WriteLine($" DataSource Url: {entity.Url}"); + + Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); + foreach (LinkedEntityMatch match in entity.Matches) + { + Console.WriteLine($" Match Text: {match.Text}"); + Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); + Console.WriteLine($" Offset: {match.Offset}"); + Console.WriteLine($" Length: {match.Length}"); + } + Console.WriteLine(""); } Console.WriteLine(""); } - Console.WriteLine(""); + } + + Console.WriteLine("Analyze Sentiment"); + docNumber = 1; + foreach (AnalyzeSentimentActionResult analyzeSentimentActionsResult in analyzeSentimentActionsResults) + { + foreach (AnalyzeSentimentResult result in analyzeSentimentActionsResult.Result) + { + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Sentiment is {result.DocumentSentiment.Sentiment}, with confidence scores: "); + Console.WriteLine($" Positive confidence score: {result.DocumentSentiment.ConfidenceScores.Positive}."); + Console.WriteLine($" Neutral confidence score: {result.DocumentSentiment.ConfidenceScores.Neutral}."); + Console.WriteLine($" Negative confidence score: {result.DocumentSentiment.ConfidenceScores.Negative}."); + Console.WriteLine(""); + } } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationBatchConvenienceAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationBatchConvenienceAsync.cs index 0eed99c1512e3..9f64d1096c7e5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationBatchConvenienceAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationBatchConvenienceAsync.cs @@ -27,25 +27,16 @@ public async Task AnalyzeOperationBatchConvenienceAsync() string documentA = @"We love this trail and make the trip every year. The views are breathtaking and well worth the hike! Yesterday was foggy though, so we missed the spectacular views. We tried again today and it was amazing. Everyone in my family liked the trail although - it was too challenging for the less athletic among us. - Not necessarily recommended for small children. - A hotel close to the trail offers services for childcare in case you want that."; + it was too challenging for the less athletic among us."; string documentB = @"Last week we stayed at Hotel Foo to celebrate our anniversary. The staff knew about our anniversary so they helped me organize a little surprise for my partner. The room was clean and with the decoration I requested. It was perfect!"; - string documentC = @"That was the best day of my life! We went on a 4 day trip where we stayed at Hotel Foo. - They had great amenities that included an indoor pool, a spa, and a bar. - The spa offered couples massages which were really good. - The spa was clean and felt very peaceful. Overall the whole experience was great. - We will definitely come back."; - var batchDocuments = new List { documentA, - documentB, - documentC + documentB }; TextAnalyticsActions actions = new TextAnalyticsActions() @@ -54,6 +45,7 @@ The spa was clean and felt very peaceful. Overall the whole experience was great RecognizeEntitiesOptions = new List() { new RecognizeEntitiesOptions() }, RecognizePiiEntitiesOptions = new List() { new RecognizePiiEntitiesOptions() }, RecognizeLinkedEntitiesOptions = new List() { new RecognizeLinkedEntitiesOptions() }, + AnalyzeSentimentOptions = new List() { new AnalyzeSentimentOptions() }, DisplayName = "AnalyzeOperationSample" }; @@ -74,88 +66,117 @@ The spa was clean and felt very peaceful. Overall the whole experience was great await foreach (AnalyzeBatchActionsResult documentsInPage in operation.Value) { - RecognizeEntitiesResultCollection entitiesResult = documentsInPage.RecognizeEntitiesActionsResults.FirstOrDefault().Result; - - ExtractKeyPhrasesResultCollection keyPhrasesResult = documentsInPage.ExtractKeyPhrasesActionsResults.FirstOrDefault().Result; - - RecognizePiiEntitiesResultCollection piiResult = documentsInPage.RecognizePiiEntitiesActionsResults.FirstOrDefault().Result; - - RecognizeLinkedEntitiesResultCollection linkedEntitiesResult = documentsInPage.RecognizeLinkedEntitiesActionsResults.FirstOrDefault().Result; + IReadOnlyCollection keyPhrasesActionsResults = documentsInPage.ExtractKeyPhrasesActionsResults; + IReadOnlyCollection entitiesActionsResults = documentsInPage.RecognizeEntitiesActionsResults; + IReadOnlyCollection piiActionsResults = documentsInPage.RecognizePiiEntitiesActionsResults; + IReadOnlyCollection entityLinkingActionsResults = documentsInPage.RecognizeLinkedEntitiesActionsResults; + IReadOnlyCollection analyzeSentimentActionsResults = documentsInPage.AnalyzeSentimentActionsResults; Console.WriteLine("Recognized Entities"); - - foreach (RecognizeEntitiesResult result in entitiesResult) + int docNumber = 1; + foreach (RecognizeEntitiesActionResult entitiesActionResults in entitiesActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); - - foreach (CategorizedEntity entity in result.Entities) + foreach (RecognizeEntitiesResult result in entitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} entities:"); + + foreach (CategorizedEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized PII Entities"); - - foreach (RecognizePiiEntitiesResult result in piiResult) + docNumber = 1; + foreach (RecognizePiiEntitiesActionResult piiActionResults in piiActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); - - foreach (PiiEntity entity in result.Entities) + foreach (RecognizePiiEntitiesResult result in piiActionResults.Result) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); - Console.WriteLine($" SubCategory: {entity.SubCategory}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} PII entities:"); + + foreach (PiiEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" ConfidenceScore: {entity.ConfidenceScore}"); + Console.WriteLine($" SubCategory: {entity.SubCategory}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Key Phrases"); - - foreach (ExtractKeyPhrasesResult result in keyPhrasesResult) + docNumber = 1; + foreach (ExtractKeyPhrasesActionResult keyPhrasesActionResult in keyPhrasesActionsResults) { - Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); - - foreach (string keyphrase in result.KeyPhrases) + foreach (ExtractKeyPhrasesResult result in keyPhrasesActionResult.Result) { - Console.WriteLine($" {keyphrase}"); + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.KeyPhrases.Count} Keyphrases:"); + + foreach (string keyphrase in result.KeyPhrases) + { + Console.WriteLine($" {keyphrase}"); + } + Console.WriteLine(""); } - Console.WriteLine(""); } Console.WriteLine("Recognized Linked Entities"); - - foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesResult) + docNumber = 1; + foreach (RecognizeLinkedEntitiesActionResult linkedEntitiesActionResults in entityLinkingActionsResults) { - Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); - - foreach (LinkedEntity entity in result.Entities) + foreach (RecognizeLinkedEntitiesResult result in linkedEntitiesActionResults.Result) { - Console.WriteLine($" Entity: {entity.Name}"); - Console.WriteLine($" DataSource: {entity.DataSource}"); - Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); - Console.WriteLine($" Language: {entity.Language}"); - Console.WriteLine($" DataSource Url: {entity.Url}"); - - Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); - foreach (LinkedEntityMatch match in entity.Matches) + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Recognized the following {result.Entities.Count} linked entities:"); + + foreach (LinkedEntity entity in result.Entities) { - Console.WriteLine($" Match Text: {match.Text}"); - Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); - Console.WriteLine($" Offset: {match.Offset}"); - Console.WriteLine($" Length: {match.Length}"); + Console.WriteLine($" Entity: {entity.Name}"); + Console.WriteLine($" DataSource: {entity.DataSource}"); + Console.WriteLine($" DataSource EntityId: {entity.DataSourceEntityId}"); + Console.WriteLine($" Language: {entity.Language}"); + Console.WriteLine($" DataSource Url: {entity.Url}"); + + Console.WriteLine($" Total Matches: {entity.Matches.Count()}"); + foreach (LinkedEntityMatch match in entity.Matches) + { + Console.WriteLine($" Match Text: {match.Text}"); + Console.WriteLine($" ConfidenceScore: {match.ConfidenceScore}"); + Console.WriteLine($" Offset: {match.Offset}"); + Console.WriteLine($" Length: {match.Length}"); + } + Console.WriteLine(""); } Console.WriteLine(""); } - Console.WriteLine(""); + } + + Console.WriteLine("Analyze Sentiment"); + docNumber = 1; + foreach (AnalyzeSentimentActionResult analyzeSentimentActionsResult in analyzeSentimentActionsResults) + { + foreach (AnalyzeSentimentResult result in analyzeSentimentActionsResult.Result) + { + Console.WriteLine($" Document #{docNumber++}"); + Console.WriteLine($" Sentiment is {result.DocumentSentiment.Sentiment}, with confidence scores: "); + Console.WriteLine($" Positive confidence score: {result.DocumentSentiment.ConfidenceScores.Positive}."); + Console.WriteLine($" Neutral confidence score: {result.DocumentSentiment.ConfidenceScores.Neutral}."); + Console.WriteLine($" Negative confidence score: {result.DocumentSentiment.ConfidenceScores.Negative}."); + Console.WriteLine(""); + } } } }