From c8188c959c145787c66441ae0ad39d875411b1e0 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Thu, 7 Oct 2021 16:37:43 -0700 Subject: [PATCH 1/5] allow support for multiple actions of the same type --- .../azure-ai-textanalytics/CHANGELOG.md | 1 + .../azure/ai/textanalytics/_models.py | 45 +++--- .../ai/textanalytics/_request_handlers.py | 35 ++--- .../ai/textanalytics/_response_handlers.py | 24 +--- .../textanalytics/_text_analytics_client.py | 107 +++----------- .../aio/_text_analytics_client_async.py | 107 +++----------- .../tests/test_analyze.py | 131 ++++++++++++++++-- .../tests/test_analyze_async.py | 127 +++++++++++++++-- 8 files changed, 335 insertions(+), 242 deletions(-) diff --git a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md index a2e9e5345fde..63ca574523d8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md +++ b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md @@ -8,6 +8,7 @@ This version of the SDK defaults to the latest supported API version, which curr - Added support for Custom Entities Recognition through the `begin_analyze_actions` API with the `RecognizeCustomEntitiesAction` and `RecognizeCustomEntitiesResult` types. - Added support for Custom Single Classification through the `begin_analyze_actions` API with the `SingleCategoryClassifyAction` and `SingleCategoryClassifyActionResult` types. - Added support for Custom Multi Classification through the `begin_analyze_actions` API with the `MultiCategoryClassifyAction` and `MultiCategoryClassifyActionResult` types. +- Multiple of the same action type is now supported with `begin_analyze_actions`. ### Breaking Changes diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py index 0327200212f3..dcc51106fa64 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py @@ -1798,7 +1798,7 @@ def __repr__(self, **kwargs): :1024 ] - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: from ._generated.v3_2_preview_2 import models else: @@ -1808,7 +1808,8 @@ def _to_generated(self, api_version): model_version=self.model_version, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -1875,7 +1876,7 @@ def __repr__(self, **kwargs): )[:1024] ) - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: from ._generated.v3_2_preview_2 import models else: @@ -1886,7 +1887,8 @@ def _to_generated(self, api_version): opinion_mining=self.show_opinion_mining, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -1957,7 +1959,7 @@ def __repr__(self, **kwargs): )[:1024] ) - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: from ._generated.v3_2_preview_2 import models else: @@ -1969,7 +1971,8 @@ def _to_generated(self, api_version): pii_categories=self.categories_filter, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -2012,7 +2015,7 @@ def __repr__(self, **kwargs): )[:1024] ) - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: from ._generated.v3_2_preview_2 import models else: @@ -2021,7 +2024,8 @@ def _to_generated(self, api_version): parameters=models.KeyPhrasesTaskParameters( model_version=self.model_version, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -2074,7 +2078,7 @@ def __repr__(self, **kwargs): )[:1024] ) - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: from ._generated.v3_2_preview_2 import models else: @@ -2084,7 +2088,8 @@ def _to_generated(self, api_version): model_version=self.model_version, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -2143,7 +2148,7 @@ def __repr__(self): )[:1024] ) - def _to_generated(self, api_version): # pylint: disable=unused-argument + def _to_generated(self, api_version, task_id): # pylint: disable=unused-argument return _v3_2_preview_models.ExtractiveSummarizationTask( parameters=_v3_2_preview_models.ExtractiveSummarizationTaskParameters( model_version=self.model_version, @@ -2151,7 +2156,8 @@ def _to_generated(self, api_version): # pylint: disable=unused-argument logging_opt_out=self.disable_service_logs, sentence_count=self.max_sentence_count, sort_by=self.order_by, - ) + ), + task_name=task_id ) @@ -2304,14 +2310,15 @@ def __repr__(self): self.string_index_type, )[:1024] - def _to_generated(self, api_version): # pylint: disable=unused-argument + def _to_generated(self, api_version, task_id): # pylint: disable=unused-argument return _v3_2_preview_models.CustomEntitiesTask( parameters=_v3_2_preview_models.CustomEntitiesTaskParameters( project_name=self.project_name, deployment_name=self.deployment_name, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -2417,13 +2424,14 @@ def __repr__(self): self.disable_service_logs, )[:1024] - def _to_generated(self, api_version): # pylint: disable=unused-argument + def _to_generated(self, api_version, task_id): # pylint: disable=unused-argument return _v3_2_preview_models.CustomMultiClassificationTask( parameters=_v3_2_preview_models.CustomMultiClassificationTaskParameters( project_name=self.project_name, deployment_name=self.deployment_name, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -2529,13 +2537,14 @@ def __repr__(self): self.disable_service_logs, )[:1024] - def _to_generated(self, api_version): # pylint: disable=unused-argument + def _to_generated(self, api_version, task_id): # pylint: disable=unused-argument return _v3_2_preview_models.CustomSingleClassificationTask( parameters=_v3_2_preview_models.CustomSingleClassificationTaskParameters( project_name=self.project_name, deployment_name=self.deployment_name, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py index dffe57534217..497e12a361fa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py @@ -6,18 +6,19 @@ import six - +from ._generated.models import ( + EntitiesTask, + PiiTask, + EntityLinkingTask, + SentimentAnalysisTask, + ExtractiveSummarizationTask, + CustomEntitiesTask, + CustomSingleClassificationTask, + CustomMultiClassificationTask, +) from ._models import ( DetectLanguageInput, TextDocumentInput, - RecognizeEntitiesAction, - RecognizePiiEntitiesAction, - RecognizeLinkedEntitiesAction, - AnalyzeSentimentAction, - ExtractSummaryAction, - RecognizeCustomEntitiesAction, - SingleCategoryClassifyAction, - MultiCategoryClassifyAction, _AnalyzeActionsType, ) @@ -92,21 +93,21 @@ def _validate_input(documents, hint, whole_input_hint): def _determine_action_type(action): # pylint: disable=too-many-return-statements - if isinstance(action, RecognizeEntitiesAction): + if isinstance(action, EntitiesTask): return _AnalyzeActionsType.RECOGNIZE_ENTITIES - if isinstance(action, RecognizePiiEntitiesAction): + if isinstance(action, PiiTask): return _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES - if isinstance(action, RecognizeLinkedEntitiesAction): + if isinstance(action, EntityLinkingTask): return _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES - if isinstance(action, AnalyzeSentimentAction): + if isinstance(action, SentimentAnalysisTask): return _AnalyzeActionsType.ANALYZE_SENTIMENT - if isinstance(action, ExtractSummaryAction): + if isinstance(action, ExtractiveSummarizationTask): return _AnalyzeActionsType.EXTRACT_SUMMARY - if isinstance(action, RecognizeCustomEntitiesAction): + if isinstance(action, CustomEntitiesTask): return _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES - if isinstance(action, SingleCategoryClassifyAction): + if isinstance(action, CustomSingleClassificationTask): return _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY - if isinstance(action, MultiCategoryClassifyAction): + if isinstance(action, CustomMultiClassificationTask): return _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY return _AnalyzeActionsType.EXTRACT_KEY_PHRASES diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py index b61109b47e5c..a6323e57cc1c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py @@ -340,20 +340,14 @@ def _get_property_name_from_task_type(task_type): # pylint: disable=too-many-re return "key_phrase_extraction_tasks" -def _get_good_result( - current_task_type, - index_of_task_result, - doc_id_order, - response_headers, - returned_tasks_object, -): +def _get_good_result(task, doc_id_order, response_headers, returned_tasks_object): + current_task_type, task_name = task deserialization_callback = _get_deserialization_callback_from_task_type( current_task_type ) property_name = _get_property_name_from_task_type(current_task_type) - response_task_to_deserialize = getattr(returned_tasks_object, property_name)[ - index_of_task_result - ] + response_task_to_deserialize = \ + [task for task in getattr(returned_tasks_object, property_name) if task.task_name == task_name][0] return deserialization_callback( doc_id_order, response_task_to_deserialize.results, response_headers, lro=True ) @@ -361,15 +355,10 @@ def _get_good_result( def get_iter_items(doc_id_order, task_order, response_headers, analyze_job_state): iter_items = defaultdict(list) # map doc id to action results - task_type_to_index = defaultdict( - int - ) # need to keep track of how many of each type of tasks we've seen returned_tasks_object = analyze_job_state.tasks - for current_task_type in task_order: - index_of_task_result = task_type_to_index[current_task_type] + for task in task_order: results = _get_good_result( - current_task_type, - index_of_task_result, + task, doc_id_order, response_headers, returned_tasks_object, @@ -377,7 +366,6 @@ def get_iter_items(doc_id_order, task_order, response_headers, analyze_job_state for result in results: iter_items[result.id].append(result) - task_type_to_index[current_task_type] += 1 return [iter_items[doc_id] for doc_id in doc_id_order if doc_id in iter_items] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py index 5bb61f9bc303..bd648579c37e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py @@ -944,112 +944,51 @@ def begin_analyze_actions( # type: ignore continuation_token = kwargs.pop("continuation_token", None) doc_id_order = [doc.get("id") for doc in docs.documents] - task_order = [_determine_action_type(action) for action in actions] - if len(task_order) != len(set(task_order)): - raise ValueError("Multiple of the same action is not currently supported.") + try: + generated_tasks = [action._to_generated(self._api_version, str(idx)) for idx, action in enumerate(actions)] + except AttributeError: + raise TypeError("Unsupported action type in list.") + task_order = [(_determine_action_type(a), a.task_name) for a in generated_tasks] try: analyze_tasks = self._client.models( api_version=self._api_version ).JobManifestTasks( entity_recognition_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_ENTITIES ], entity_recognition_pii_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES ], key_phrase_extraction_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.EXTRACT_KEY_PHRASES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_KEY_PHRASES ], entity_linking_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES ], sentiment_analysis_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.ANALYZE_SENTIMENT - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.ANALYZE_SENTIMENT ], extractive_summarization_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.EXTRACT_SUMMARY - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_SUMMARY ], custom_entity_recognition_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES ], custom_single_classification_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY ], custom_multi_classification_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY ], ) analyze_body = self._client.models( diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py index 59764d7913c7..32e6029bd32f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py @@ -963,112 +963,51 @@ async def begin_analyze_actions( # type: ignore continuation_token = kwargs.pop("continuation_token", None) doc_id_order = [doc.get("id") for doc in docs.documents] - task_order = [_determine_action_type(action) for action in actions] - if len(task_order) != len(set(task_order)): - raise ValueError("Multiple of the same action is not currently supported.") + try: + generated_tasks = [action._to_generated(self._api_version, str(idx)) for idx, action in enumerate(actions)] + except AttributeError: + raise TypeError("Unsupported action type in list.") + task_order = [(_determine_action_type(a), a.task_name) for a in generated_tasks] try: analyze_tasks = self._client.models( api_version=self._api_version ).JobManifestTasks( entity_recognition_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_ENTITIES ], entity_recognition_pii_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES ], key_phrase_extraction_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.EXTRACT_KEY_PHRASES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_KEY_PHRASES ], entity_linking_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES ], sentiment_analysis_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.ANALYZE_SENTIMENT - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.ANALYZE_SENTIMENT ], extractive_summarization_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.EXTRACT_SUMMARY - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_SUMMARY ], custom_entity_recognition_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES ], custom_single_classification_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY ], custom_multi_classification_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY ], ) analyze_body = self._client.models( diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py index 3656e09578aa..f85f8e8b0ff2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py @@ -796,20 +796,125 @@ def test_partial_success_for_actions(self, client): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() - def test_multiple_of_same_action_fail(self, client): - docs = [{"id": "1", "language": "en", "text": "I did not like the hotel we stayed at."}, - {"id": "2", "language": "en", "text": "I did not like the hotel we stayed at."}] + def test_multiple_of_same_action(self, client): + docs = [ + {"id": "28", "text": "My SSN is 859-98-0987. Here is another sentence."}, + {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number? Here is another sentence."}, + {"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + ] - with pytest.raises(ValueError) as e: - client.begin_analyze_actions( - docs, - actions=[ - RecognizePiiEntitiesAction(domain_filter="phi"), - RecognizePiiEntitiesAction(), - ], - polling_interval=self._interval(), - ).result() - assert "Multiple of the same action is not currently supported." in str(e.value) + response = client.begin_analyze_actions( + docs, + actions=[ + AnalyzeSentimentAction(), + RecognizePiiEntitiesAction(), + RecognizeEntitiesAction(), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(order_by="Rank"), + RecognizePiiEntitiesAction(categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]), + ExtractKeyPhrasesAction(), + RecognizeEntitiesAction(), + AnalyzeSentimentAction(show_opinion_mining=True), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(max_sentence_count=1), + ExtractKeyPhrasesAction(), + ], + polling_interval=self._interval(), + ).result() + + action_results = list(response) + assert len(action_results) == len(docs) + assert len(action_results[0]) == 12 + assert len(action_results[1]) == 12 + assert len(action_results[2]) == 12 + + for idx, action_result in enumerate(action_results): + if idx == 0: + doc_id = "28" + elif idx == 1: + doc_id = "3" + else: + doc_id = "5" + + assert isinstance(action_result[0], AnalyzeSentimentResult) + assert not all([sentence.mined_opinions for sentence in action_result[0].sentences]) + assert action_result[0].id == doc_id + + assert isinstance(action_result[1], RecognizePiiEntitiesResult) + assert action_result[1].id == doc_id + + assert isinstance(action_result[2], RecognizeEntitiesResult) + assert action_result[2].id == doc_id + + assert isinstance(action_result[3], RecognizeLinkedEntitiesResult) + assert action_result[3].id == doc_id + + assert isinstance(action_result[4], ExtractSummaryResult) + previous_score = 1.0 + for sentence in action_result[4].sentences: + assert sentence.rank_score <= previous_score + previous_score = sentence.rank_score + assert action_result[4].id == doc_id + + assert isinstance(action_result[5], RecognizePiiEntitiesResult) + assert action_result[5].id == doc_id + if doc_id == "28": + assert action_result[5].entities + else: + assert not action_result[5].entities + + assert isinstance(action_result[6], ExtractKeyPhrasesResult) + assert action_result[6].id == doc_id + + assert isinstance(action_result[7], RecognizeEntitiesResult) + assert action_result[7].id == doc_id + + assert isinstance(action_result[8], AnalyzeSentimentResult) + assert [sentence.mined_opinions for sentence in action_result[0].sentences] + assert action_result[8].id == doc_id + + assert isinstance(action_result[9], RecognizeLinkedEntitiesResult) + assert action_result[9].id == doc_id + + assert isinstance(action_result[10], ExtractSummaryResult) + assert len(action_result[10].sentences) == 1 + + assert isinstance(action_result[11], ExtractKeyPhrasesResult) + assert action_result[11].id == doc_id + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + def test_multiple_of_same_action_with_partial_results(self, client): + docs = [{"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "text": ""}] + + response = client.begin_analyze_actions( + docs, + actions=[ + ExtractSummaryAction(max_sentence_count=3), + RecognizePiiEntitiesAction(), + ExtractSummaryAction(max_sentence_count=5) + ], + polling_interval=self._interval(), + ).result() + + action_results = list(response) + assert len(action_results) == len(docs) + assert len(action_results[0]) == 3 + assert len(action_results[1]) == 3 + + # first doc + assert isinstance(action_results[0][0], ExtractSummaryResult) + assert action_results[0][0].id == "5" + assert isinstance(action_results[0][1], RecognizePiiEntitiesResult) + assert action_results[0][1].id == "5" + assert isinstance(action_results[0][2], ExtractSummaryResult) + assert action_results[0][2].id == "5" + + # second doc + assert action_results[1][0].is_error + assert action_results[1][1].is_error + assert action_results[1][2].is_error @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py index 5c423b6c8d18..5bcff354b681 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py @@ -834,20 +834,131 @@ async def test_partial_success_for_actions(self, client): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() - async def test_multiple_of_same_action_fail(self, client): - docs = [{"id": "1", "language": "en", "text": "I did not like the hotel we stayed at."}, - {"id": "2", "language": "en", "text": "I did not like the hotel we stayed at."}] + async def test_multiple_of_same_action(self, client): + docs = [ + {"id": "28", "text": "My SSN is 859-98-0987. Here is another sentence."}, + {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number? Here is another sentence."}, + {"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + ] + async with client: + response = await (await client.begin_analyze_actions( + docs, + actions=[ + AnalyzeSentimentAction(), + RecognizePiiEntitiesAction(), + RecognizeEntitiesAction(), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(order_by="Rank"), + RecognizePiiEntitiesAction(categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]), + ExtractKeyPhrasesAction(), + RecognizeEntitiesAction(), + AnalyzeSentimentAction(show_opinion_mining=True), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(max_sentence_count=1), + ExtractKeyPhrasesAction(), + ], + polling_interval=self._interval(), + )).result() + + action_results = [] + async for p in response: + action_results.append(p) + assert len(action_results) == len(docs) + assert len(action_results[0]) == 12 + assert len(action_results[1]) == 12 + assert len(action_results[2]) == 12 + + for idx, action_result in enumerate(action_results): + if idx == 0: + doc_id = "28" + elif idx == 1: + doc_id = "3" + else: + doc_id = "5" + + assert isinstance(action_result[0], AnalyzeSentimentResult) + assert not all([sentence.mined_opinions for sentence in action_result[0].sentences]) + assert action_result[0].id == doc_id + + assert isinstance(action_result[1], RecognizePiiEntitiesResult) + assert action_result[1].id == doc_id - with pytest.raises(ValueError) as e: - await client.begin_analyze_actions( + assert isinstance(action_result[2], RecognizeEntitiesResult) + assert action_result[2].id == doc_id + + assert isinstance(action_result[3], RecognizeLinkedEntitiesResult) + assert action_result[3].id == doc_id + + assert isinstance(action_result[4], ExtractSummaryResult) + previous_score = 1.0 + for sentence in action_result[4].sentences: + assert sentence.rank_score <= previous_score + previous_score = sentence.rank_score + assert action_result[4].id == doc_id + + assert isinstance(action_result[5], RecognizePiiEntitiesResult) + assert action_result[5].id == doc_id + if doc_id == "28": + assert action_result[5].entities + else: + assert not action_result[5].entities + + assert isinstance(action_result[6], ExtractKeyPhrasesResult) + assert action_result[6].id == doc_id + + assert isinstance(action_result[7], RecognizeEntitiesResult) + assert action_result[7].id == doc_id + + assert isinstance(action_result[8], AnalyzeSentimentResult) + assert [sentence.mined_opinions for sentence in action_result[0].sentences] + assert action_result[8].id == doc_id + + assert isinstance(action_result[9], RecognizeLinkedEntitiesResult) + assert action_result[9].id == doc_id + + assert isinstance(action_result[10], ExtractSummaryResult) + assert len(action_result[10].sentences) == 1 + + assert isinstance(action_result[11], ExtractKeyPhrasesResult) + assert action_result[11].id == doc_id + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + async def test_multiple_of_same_action_with_partial_results(self, client): + docs = [{"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "text": ""}] + + async with client: + response = await (await client.begin_analyze_actions( docs, actions=[ - RecognizePiiEntitiesAction(domain_filter="phi"), + ExtractSummaryAction(max_sentence_count=3), RecognizePiiEntitiesAction(), + ExtractSummaryAction(max_sentence_count=5) ], polling_interval=self._interval(), - ) - assert "Multiple of the same action is not currently supported." in str(e.value) + )).result() + + action_results = [] + async for p in response: + action_results.append(p) + + assert len(action_results) == len(docs) + assert len(action_results[0]) == 3 + assert len(action_results[1]) == 3 + + # first doc + assert isinstance(action_results[0][0], ExtractSummaryResult) + assert action_results[0][0].id == "5" + assert isinstance(action_results[0][1], RecognizePiiEntitiesResult) + assert action_results[0][1].id == "5" + assert isinstance(action_results[0][2], ExtractSummaryResult) + assert action_results[0][2].id == "5" + + # second doc + assert action_results[1][0].is_error + assert action_results[1][1].is_error + assert action_results[1][2].is_error @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() From c646fcddc502850f2c395e1a1f11a0b60c35c5ec Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Thu, 7 Oct 2021 17:03:16 -0700 Subject: [PATCH 2/5] rerecord all analyze tests now that we set task_name --- ...l_passing_dict_extract_summary_action.yaml | 100 +- ...ccessful_passing_dict_key_phrase_task.yaml | 70 +- ...uccessful_passing_dict_sentiment_task.yaml | 82 +- ...sful_passing_string_pii_entities_task.yaml | 30 +- ...ing_text_document_input_entities_task.yaml | 58 +- .../test_analyze.test_bad_credentials.yaml | 25 +- ...est_bad_model_version_error_all_tasks.yaml | 32 +- ...ad_model_version_error_multiple_tasks.yaml | 27 +- ...ze.test_bad_request_on_empty_document.yaml | 16 +- ...est_analyze.test_custom_partial_error.yaml | 42 +- ...est_analyze.test_disable_service_logs.yaml | 157 +-- ...t_analyze.test_empty_credential_class.yaml | 25 +- ...t_extract_summary_action_with_options.yaml | 97 +- ....test_extract_summary_partial_results.yaml | 58 +- ...yze.test_invalid_language_hint_method.yaml | 177 +++- ..._analyze.test_multi_category_classify.yaml | 30 +- ..._analyze.test_multiple_of_same_action.yaml | 918 ++++++++++++++++++ ...e_of_same_action_with_partial_results.yaml | 184 ++++ ...ages_of_results_returned_successfully.yaml | 177 ++-- ....test_out_of_order_ids_multiple_tasks.yaml | 103 +- ...lyze.test_partial_success_for_actions.yaml | 106 +- .../test_analyze.test_pass_cls.yaml | 24 +- ...yze.test_pii_action_categories_filter.yaml | 71 +- .../test_analyze.test_poller_metadata.yaml | 58 +- ...nalyze.test_recognize_custom_entities.yaml | 20 +- ...ent_analysis_task_with_opinion_mining.yaml | 62 +- ...tats_and_model_version_multiple_tasks.yaml | 77 +- ...analyze.test_single_category_classify.yaml | 42 +- .../test_analyze.test_too_many_documents.yaml | 27 +- ...l_passing_dict_extract_summary_action.yaml | 108 +-- ...ccessful_passing_dict_key_phrase_task.yaml | 122 +-- ...uccessful_passing_dict_sentiment_task.yaml | 104 +- ...sful_passing_string_pii_entities_task.yaml | 54 +- ...ing_text_document_input_entities_task.yaml | 26 +- ...st_analyze_async.test_bad_credentials.yaml | 25 +- ...est_bad_model_version_error_all_tasks.yaml | 32 +- ...ad_model_version_error_multiple_tasks.yaml | 27 +- ...nc.test_bad_request_on_empty_document.yaml | 16 +- ...alyze_async.test_custom_partial_error.yaml | 44 +- ...alyze_async.test_disable_service_logs.yaml | 180 +--- ...yze_async.test_empty_credential_class.yaml | 25 +- ...t_extract_summary_action_with_options.yaml | 101 +- ....test_extract_summary_partial_results.yaml | 66 +- ...ze_async.test_multi_category_classify.yaml | 32 +- ...ze_async.test_multiple_of_same_action.yaml | 340 +++++++ ...e_of_same_action_with_partial_results.yaml | 129 +++ ...ages_of_results_returned_successfully.yaml | 313 ++---- ....test_out_of_order_ids_multiple_tasks.yaml | 121 ++- ...sync.test_partial_success_for_actions.yaml | 102 +- .../test_analyze_async.test_pass_cls.yaml | 26 +- ...ync.test_pii_action_categories_filter.yaml | 61 +- ...st_analyze_async.test_poller_metadata.yaml | 26 +- ..._async.test_recognize_custom_entities.yaml | 24 +- ...ent_analysis_task_with_opinion_mining.yaml | 94 +- ...tats_and_model_version_multiple_tasks.yaml | 111 +-- ...e_async.test_single_category_classify.yaml | 42 +- ...analyze_async.test_too_many_documents.yaml | 25 +- 57 files changed, 3279 insertions(+), 1992 deletions(-) create mode 100644 sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action.yaml create mode 100644 sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action_with_partial_results.yaml create mode 100644 sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action.yaml create mode 100644 sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action_with_partial_results.yaml diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml index f0dd5ffd8eb3..2e2dc5f2a66d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml @@ -4,31 +4,31 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": - [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "The government of British Prime Minster Theresa May has been plunged - into turmoil with the resignation of two senior Cabinet ministers in a deep - split over her Brexit strategy. The Foreign Secretary Boris Johnson, quit on - Monday, hours after the resignation late on Sunday night of the minister in - charge of Brexit negotiations, David Davis. Their decision to leave the government - came three days after May appeared to have agreed a deal with herfractured Cabinet - on the UK''s post Brexit relationship with the EU. That plan is now in tatters - and her political future appears uncertain. May appeared in Parliament on Monday - afternoon to defend her plan, minutes after Downing Street confirmed the departure - of Johnson. May acknowledged the splits in her statement to MPs, saying of the - ministers who quit: We do not agree about the best way of delivering our shared - commitment to honoring the result of the referendum. The Prime Minister''s latest - plitical drama began late on Sunday night when Davis quit, declaring he could - not support May''s Brexit plan. He said it involved too close a relationship - with the EU and gave only an illusion of control being returned to the UK after - it left the EU. It seems to me we''re giving too much away, too easily, and - that''s a dangerous strategy at this time, Davis said in a BBC radio interview - Monday morning. Johnson''s resignation came Monday afternoon local time, just - before the Prime Minister was due to make a scheduled statement in Parliament. - This afternoon, the Prime Minister accepted the resignation of Boris Johnson - as Foreign Secretary, a statement from Downing Street said.", "language": "en"}, - {"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", "language": - "es"}]}}' + 3, "sortBy": "Offset"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "The government of British + Prime Minster Theresa May has been plunged into turmoil with the resignation + of two senior Cabinet ministers in a deep split over her Brexit strategy. The + Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation + late on Sunday night of the minister in charge of Brexit negotiations, David + Davis. Their decision to leave the government came three days after May appeared + to have agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship + with the EU. That plan is now in tatters and her political future appears uncertain. + May appeared in Parliament on Monday afternoon to defend her plan, minutes after + Downing Street confirmed the departure of Johnson. May acknowledged the splits + in her statement to MPs, saying of the ministers who quit: We do not agree about + the best way of delivering our shared commitment to honoring the result of the + referendum. The Prime Minister''s latest plitical drama began late on Sunday + night when Davis quit, declaring he could not support May''s Brexit plan. He + said it involved too close a relationship with the EU and gave only an illusion + of control being returned to the UK after it left the EU. It seems to me we''re + giving too much away, too easily, and that''s a dangerous strategy at this time, + Davis said in a BBC radio interview Monday morning. Johnson''s resignation came + Monday afternoon local time, just before the Prime Minister was due to make + a scheduled statement in Parliament. This afternoon, the Prime Minister accepted + the resignation of Boris Johnson as Foreign Secretary, a statement from Downing + Street said.", "language": "en"}, {"id": "2", "text": "Microsoft fue fundado + por Bill Gates y Paul Allen", "language": "es"}]}}' headers: Accept: - application/json, text/json @@ -37,7 +37,7 @@ interactions: Connection: - keep-alive Content-Length: - - '2251' + - '2268' Content-Type: - application/json User-Agent: @@ -49,11 +49,11 @@ interactions: string: '' headers: apim-request-id: - - e9ef2c41-3b29-4ebb-8f18-9f48dcbd76fa + - 68966721-177c-4b3e-b196-a72dc1c5f869 date: - - Wed, 06 Oct 2021 20:47:05 GMT + - Thu, 07 Oct 2021 23:37:56 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f85d481c-2ee1-4071-b446-cc229f729ae9 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -61,7 +61,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1120' + - '476' status: code: 202 message: Accepted @@ -77,17 +77,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f85d481c-2ee1-4071-b446-cc229f729ae9?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9?showStats=True response: body: - string: '{"jobId":"f85d481c-2ee1-4071-b446-cc229f729ae9","lastUpdateDateTime":"2021-10-06T20:47:06Z","createdDateTime":"2021-10-06T20:47:05Z","expirationDateTime":"2021-10-07T20:47:05Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"8b252660-33b7-4d2c-a19c-fa59361ca1c9","lastUpdateDateTime":"2021-10-07T23:37:57Z","createdDateTime":"2021-10-07T23:37:56Z","expirationDateTime":"2021-10-08T23:37:56Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 225692cc-fce4-4284-8334-a5bf78aa5234 + - f55c994c-1f73-42a9-b842-ffcb2029849a content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:10 GMT + - Thu, 07 Oct 2021 23:38:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -95,7 +95,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '639' + - '756' status: code: 200 message: OK @@ -111,17 +111,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f85d481c-2ee1-4071-b446-cc229f729ae9?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9?showStats=True response: body: - string: '{"jobId":"f85d481c-2ee1-4071-b446-cc229f729ae9","lastUpdateDateTime":"2021-10-06T20:47:06Z","createdDateTime":"2021-10-06T20:47:05Z","expirationDateTime":"2021-10-07T20:47:05Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"8b252660-33b7-4d2c-a19c-fa59361ca1c9","lastUpdateDateTime":"2021-10-07T23:37:57Z","createdDateTime":"2021-10-07T23:37:56Z","expirationDateTime":"2021-10-08T23:37:56Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - dd5796a6-9113-44af-b0fb-274134e0c7c8 + - 649c89b9-aa97-4120-aef7-462c1be30b22 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:15 GMT + - Thu, 07 Oct 2021 23:38:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -129,7 +129,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '69' + - '685' status: code: 200 message: OK @@ -145,17 +145,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f85d481c-2ee1-4071-b446-cc229f729ae9?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9?showStats=True response: body: - string: '{"jobId":"f85d481c-2ee1-4071-b446-cc229f729ae9","lastUpdateDateTime":"2021-10-06T20:47:06Z","createdDateTime":"2021-10-06T20:47:05Z","expirationDateTime":"2021-10-07T20:47:05Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"8b252660-33b7-4d2c-a19c-fa59361ca1c9","lastUpdateDateTime":"2021-10-07T23:37:57Z","createdDateTime":"2021-10-07T23:37:56Z","expirationDateTime":"2021-10-08T23:37:56Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - e475e599-341d-4fab-8ca2-acfd80926a8f + - 6e580812-be12-4381-9f95-137b25bee4c9 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:20 GMT + - Thu, 07 Oct 2021 23:38:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -163,7 +163,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '968' status: code: 200 message: OK @@ -179,10 +179,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f85d481c-2ee1-4071-b446-cc229f729ae9?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9?showStats=True response: body: - string: '{"jobId":"f85d481c-2ee1-4071-b446-cc229f729ae9","lastUpdateDateTime":"2021-10-06T20:47:25Z","createdDateTime":"2021-10-06T20:47:05Z","expirationDateTime":"2021-10-07T20:47:05Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:47:25.0875246Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The + string: '{"jobId":"8b252660-33b7-4d2c-a19c-fa59361ca1c9","lastUpdateDateTime":"2021-10-07T23:38:15Z","createdDateTime":"2021-10-07T23:37:56Z","expirationDateTime":"2021-10-08T23:37:56Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:38:15.3431529Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The government of British Prime Minster Theresa May has been plunged into turmoil with the resignation of two senior Cabinet ministers in a deep split over her Brexit strategy.","rankScore":0.57,"offset":0,"length":176},{"text":"The @@ -195,11 +195,11 @@ interactions: fue fundado por Bill Gates y Paul Allen","rankScore":1.0,"offset":0,"length":49}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: apim-request-id: - - f3037ec6-4a1b-4853-9318-53ebdaf0950e + - dcd3b1b0-9c46-452a-8b02-4b22f52011a0 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:26 GMT + - Thu, 07 Oct 2021 23:38:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -207,7 +207,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '99' + - '325' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml index 302d29c11178..24d2c7aed8fa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml @@ -2,12 +2,12 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - false}}], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], - "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "Microsoft was founded by Bill Gates and Paul Allen", "language": - "en"}, {"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", - "language": "es"}]}}' + false}, "taskName": "0"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded by + Bill Gates and Paul Allen", "language": "en"}, {"id": "2", "text": "Microsoft + fue fundado por Bill Gates y Paul Allen", "language": "es"}]}}' headers: Accept: - application/json, text/json @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '597' + - '614' Content-Type: - application/json User-Agent: @@ -28,11 +28,11 @@ interactions: string: '' headers: apim-request-id: - - 168993bc-db7a-4c78-a990-92f997ec20e8 + - 4900bf99-d90f-4c71-82c7-605da7cb2a61 date: - - Wed, 06 Oct 2021 20:47:27 GMT + - Thu, 07 Oct 2021 23:38:19 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c423a3ce-e636-4e6a-a6cd-7dc4514de7eb + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '353' + - '391' status: code: 202 message: Accepted @@ -56,17 +56,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c423a3ce-e636-4e6a-a6cd-7dc4514de7eb?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True response: body: - string: '{"jobId":"c423a3ce-e636-4e6a-a6cd-7dc4514de7eb","lastUpdateDateTime":"2021-10-06T20:47:27Z","createdDateTime":"2021-10-06T20:47:27Z","expirationDateTime":"2021-10-07T20:47:27Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:20Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 64a01244-12cf-4b3f-b9bb-340ec505df0b + - bf6c5b95-e2f5-497c-87f6-2fc07c832e49 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:32 GMT + - Thu, 07 Oct 2021 23:38:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -90,17 +90,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c423a3ce-e636-4e6a-a6cd-7dc4514de7eb?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True response: body: - string: '{"jobId":"c423a3ce-e636-4e6a-a6cd-7dc4514de7eb","lastUpdateDateTime":"2021-10-06T20:47:27Z","createdDateTime":"2021-10-06T20:47:27Z","expirationDateTime":"2021-10-07T20:47:27Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:20Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 4b6ec174-0ee5-45eb-8752-c11d7218563b + - 33b7a3e6-12af-4c07-9eff-493b2ae60f35 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:37 GMT + - Thu, 07 Oct 2021 23:38:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -108,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '684' status: code: 200 message: OK @@ -124,17 +124,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c423a3ce-e636-4e6a-a6cd-7dc4514de7eb?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True response: body: - string: '{"jobId":"c423a3ce-e636-4e6a-a6cd-7dc4514de7eb","lastUpdateDateTime":"2021-10-06T20:47:27Z","createdDateTime":"2021-10-06T20:47:27Z","expirationDateTime":"2021-10-07T20:47:27Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:20Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 3a3b07bb-6f0e-44ad-afa5-8f23779302db + - 2247a90c-6c9b-46c0-b857-79c74346cc53 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:42 GMT + - Thu, 07 Oct 2021 23:38:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '99' status: code: 200 message: OK @@ -158,17 +158,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c423a3ce-e636-4e6a-a6cd-7dc4514de7eb?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True response: body: - string: '{"jobId":"c423a3ce-e636-4e6a-a6cd-7dc4514de7eb","lastUpdateDateTime":"2021-10-06T20:47:27Z","createdDateTime":"2021-10-06T20:47:27Z","expirationDateTime":"2021-10-07T20:47:27Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:20Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 59390456-511b-4cd8-b845-03d8b88bf7f5 + - 5e5038e6-e506-45f3-81f0-c52afcb7da7e content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:47 GMT + - Thu, 07 Oct 2021 23:38:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -176,7 +176,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '8' status: code: 200 message: OK @@ -192,19 +192,19 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c423a3ce-e636-4e6a-a6cd-7dc4514de7eb?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True response: body: - string: '{"jobId":"c423a3ce-e636-4e6a-a6cd-7dc4514de7eb","lastUpdateDateTime":"2021-10-06T20:47:48Z","createdDateTime":"2021-10-06T20:47:27Z","expirationDateTime":"2021-10-07T20:47:27Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:47:48.5536765Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:42Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:38:42.0291176Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - a546ede8-eb28-4fed-bcb3-8a21a771c55d + - c17b9765-d9b5-4861-8421-19601deb5d4f content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:52 GMT + - Thu, 07 Oct 2021 23:38:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -212,7 +212,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '210' + - '85' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml index 2abf79cf18ec..6ea7403dfc28 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + false}, "taskName": "0"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded by Bill Gates and Paul Allen.", "language": "en"}, {"id": "2", "text": "I did @@ -18,7 +18,7 @@ interactions: Connection: - keep-alive Content-Length: - - '736' + - '753' Content-Type: - application/json User-Agent: @@ -30,11 +30,11 @@ interactions: string: '' headers: apim-request-id: - - 17c2d1fb-e83b-4b66-b43b-048eef7d9b93 + - d0b49155-808e-4856-b491-5cf6f6065300 date: - - Wed, 06 Oct 2021 20:47:53 GMT + - Thu, 07 Oct 2021 23:38:46 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/247f4931-bc0e-414e-904d-ec982d718f6d + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '270' + - '439' status: code: 202 message: Accepted @@ -58,17 +58,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/247f4931-bc0e-414e-904d-ec982d718f6d?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330?showStats=True response: body: - string: '{"jobId":"247f4931-bc0e-414e-904d-ec982d718f6d","lastUpdateDateTime":"2021-10-06T20:47:53Z","createdDateTime":"2021-10-06T20:47:53Z","expirationDateTime":"2021-10-07T20:47:53Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"0bbdff6d-3c1f-469a-8c9b-de6b71738330","lastUpdateDateTime":"2021-10-07T23:38:47Z","createdDateTime":"2021-10-07T23:38:46Z","expirationDateTime":"2021-10-08T23:38:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 002df0ed-823c-4fc7-8e2e-5f424920fe97 + - 91331033-03a5-4547-86b7-4e233039cd17 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:47:58 GMT + - Thu, 07 Oct 2021 23:38:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -76,7 +76,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '9' status: code: 200 message: OK @@ -92,17 +92,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/247f4931-bc0e-414e-904d-ec982d718f6d?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330?showStats=True response: body: - string: '{"jobId":"247f4931-bc0e-414e-904d-ec982d718f6d","lastUpdateDateTime":"2021-10-06T20:47:53Z","createdDateTime":"2021-10-06T20:47:53Z","expirationDateTime":"2021-10-07T20:47:53Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"0bbdff6d-3c1f-469a-8c9b-de6b71738330","lastUpdateDateTime":"2021-10-07T23:38:47Z","createdDateTime":"2021-10-07T23:38:46Z","expirationDateTime":"2021-10-08T23:38:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - ac8ffdff-ab5d-4413-a447-a5c870f28014 + - 23361bad-4577-4e88-b7d2-3bb45ebcc1e4 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:03 GMT + - Thu, 07 Oct 2021 23:38:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -126,17 +126,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/247f4931-bc0e-414e-904d-ec982d718f6d?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330?showStats=True response: body: - string: '{"jobId":"247f4931-bc0e-414e-904d-ec982d718f6d","lastUpdateDateTime":"2021-10-06T20:47:53Z","createdDateTime":"2021-10-06T20:47:53Z","expirationDateTime":"2021-10-07T20:47:53Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"0bbdff6d-3c1f-469a-8c9b-de6b71738330","lastUpdateDateTime":"2021-10-07T23:38:47Z","createdDateTime":"2021-10-07T23:38:46Z","expirationDateTime":"2021-10-08T23:38:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - df0e6d59-cc84-4ab3-9dc3-df6fc4911d0f + - 4da259e6-d208-4c2f-9c32-39a081e1deef content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:08 GMT + - Thu, 07 Oct 2021 23:39:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -160,44 +160,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/247f4931-bc0e-414e-904d-ec982d718f6d?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330?showStats=True response: body: - string: '{"jobId":"247f4931-bc0e-414e-904d-ec982d718f6d","lastUpdateDateTime":"2021-10-06T20:47:53Z","createdDateTime":"2021-10-06T20:47:53Z","expirationDateTime":"2021-10-07T20:47:53Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 3d55b464-2753-4fb7-8991-0098d95c53cc - content-type: - - application/json; charset=utf-8 - date: - - Wed, 06 Oct 2021 20:48:13 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '7' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/247f4931-bc0e-414e-904d-ec982d718f6d?showStats=True - response: - body: - string: '{"jobId":"247f4931-bc0e-414e-904d-ec982d718f6d","lastUpdateDateTime":"2021-10-06T20:48:16Z","createdDateTime":"2021-10-06T20:47:53Z","expirationDateTime":"2021-10-07T20:47:53Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:16.1543268Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft + string: '{"jobId":"0bbdff6d-3c1f-469a-8c9b-de6b71738330","lastUpdateDateTime":"2021-10-07T23:39:07Z","createdDateTime":"2021-10-07T23:38:46Z","expirationDateTime":"2021-10-08T23:38:46Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:07.2675012Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft was founded by Bill Gates and Paul Allen."}],"warnings":[]},{"id":"2","sentiment":"negative","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.22,"negative":0.77},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."},{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":39,"length":21,"text":"It was too expensive."}],"warnings":[]},{"id":"3","sentiment":"positive","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The @@ -205,11 +171,11 @@ interactions: recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 524ee41f-304b-46e5-af41-5367501a28f6 + - 1dd56720-8cff-4969-915d-3eff982ee1cf content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:18 GMT + - Thu, 07 Oct 2021 23:39:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -217,7 +183,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '89' + - '995' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml index 062ca70daa48..335df01f9c52 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml @@ -1,11 +1,11 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": - [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], - "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, - "analysisInput": {"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "0"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "1", "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", "language": "en"}, {"id": "2", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": @@ -18,7 +18,7 @@ interactions: Connection: - keep-alive Content-Length: - - '750' + - '767' Content-Type: - application/json User-Agent: @@ -30,11 +30,11 @@ interactions: string: '' headers: apim-request-id: - - 9805c273-c08c-447e-8f02-c9875bcef186 + - 9958a898-b828-4d19-9713-f45f527a4243 date: - - Wed, 06 Oct 2021 20:48:18 GMT + - Thu, 07 Oct 2021 23:39:11 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/43eeccab-7973-418c-9603-9c703b7511b9 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/712b5d55-16dc-4e4d-b087-b01bc353674b strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '217' + - '248' status: code: 202 message: Accepted @@ -58,21 +58,21 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/43eeccab-7973-418c-9603-9c703b7511b9?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/712b5d55-16dc-4e4d-b087-b01bc353674b?showStats=True response: body: - string: '{"jobId":"43eeccab-7973-418c-9603-9c703b7511b9","lastUpdateDateTime":"2021-10-06T20:48:21Z","createdDateTime":"2021-10-06T20:48:19Z","expirationDateTime":"2021-10-07T20:48:19Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:21.3418688Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My + string: '{"jobId":"712b5d55-16dc-4e4d-b087-b01bc353674b","lastUpdateDateTime":"2021-10-07T23:39:15Z","createdDateTime":"2021-10-07T23:39:11Z","expirationDateTime":"2021-10-08T23:39:11Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:15.4940866Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My SSN is ***********.","id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: apim-request-id: - - 2af5b80e-4993-41ec-bb87-166b1cae2bf6 + - 0dcbc202-3ecb-4b36-b6ab-f1c6a6669fb8 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:23 GMT + - Thu, 07 Oct 2021 23:39:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -80,7 +80,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '87' + - '220' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml index 30c70b1eb25c..64ee4cc6daa1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml @@ -1,8 +1,8 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded @@ -18,7 +18,7 @@ interactions: Connection: - keep-alive Content-Length: - - '797' + - '814' Content-Type: - application/json User-Agent: @@ -30,11 +30,11 @@ interactions: string: '' headers: apim-request-id: - - 925e73b2-cc00-4f2e-bbf1-eec2686be49e + - d91bc9ab-190d-4317-aae1-58f83d75de17 date: - - Wed, 06 Oct 2021 20:48:24 GMT + - Thu, 07 Oct 2021 23:39:17 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/4dc01a35-27a0-4e90-a212-670fa6a3fd05 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f055f6f-8699-4b40-bf0d-38b0bb361e7f strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '215' + - '1000' status: code: 202 message: Accepted @@ -58,44 +58,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/4dc01a35-27a0-4e90-a212-670fa6a3fd05?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f055f6f-8699-4b40-bf0d-38b0bb361e7f?showStats=True response: body: - string: '{"jobId":"4dc01a35-27a0-4e90-a212-670fa6a3fd05","lastUpdateDateTime":"2021-10-06T20:48:25Z","createdDateTime":"2021-10-06T20:48:25Z","expirationDateTime":"2021-10-07T20:48:25Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - df5552f8-cd6d-4f7b-8716-a672cda9aced - content-type: - - application/json; charset=utf-8 - date: - - Wed, 06 Oct 2021 20:48:29 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '56' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/4dc01a35-27a0-4e90-a212-670fa6a3fd05?showStats=True - response: - body: - string: '{"jobId":"4dc01a35-27a0-4e90-a212-670fa6a3fd05","lastUpdateDateTime":"2021-10-06T20:48:32Z","createdDateTime":"2021-10-06T20:48:25Z","expirationDateTime":"2021-10-07T20:48:25Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:32.9257288Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill + string: '{"jobId":"2f055f6f-8699-4b40-bf0d-38b0bb361e7f","lastUpdateDateTime":"2021-10-07T23:39:20Z","createdDateTime":"2021-10-07T23:39:18Z","expirationDateTime":"2021-10-08T23:39:18Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:20.6239035Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"2","statistics":{"charactersCount":72,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -107,11 +73,11 @@ interactions: Allen","category":"Person","offset":52,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - d8931741-e656-40fb-aa43-86ae0421358a + - 3968f48b-ad8a-4f94-9a34-87963f422767 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:35 GMT + - Thu, 07 Oct 2021 23:39:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -119,7 +85,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '81' + - '905' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml index d34e34ca2635..2327dc1a2230 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "This is written in English.", "language": "en"}]}}' headers: @@ -21,7 +22,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1036' + - '1138' Content-Type: - application/json User-Agent: @@ -35,13 +36,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 35834633-421f-48f5-9262-89a358d3deeb + - 3c6b9c55-94ae-412d-8e5b-7135b77d987e content-length: - '224' content-type: - application/json date: - - Wed, 06 Oct 2021 20:48:34 GMT + - Thu, 07 Oct 2021 23:39:24 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml index c2a0f4dfba3e..44cb828ccc92 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml @@ -1,17 +1,19 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": true, "stringIndexType": - "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": - [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I did not like the hotel we stayed at.", "language": "english"}]}}' + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": + [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the + hotel we stayed at.", "language": "english"}]}}' headers: Accept: - application/json, text/json @@ -20,7 +22,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1034' + - '1136' Content-Type: - application/json User-Agent: @@ -34,11 +36,11 @@ interactions: job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: apim-request-id: - - b9f08343-d5c8-45c2-885a-177b6b4c0ddc + - 477a0d83-2bcc-4078-b8ae-c323964379b5 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:35 GMT + - Thu, 07 Oct 2021 23:39:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '654' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml index a60c61f1475e..be6fae1efdda 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the hotel we stayed at.", "language": "english"}]}}' headers: @@ -21,7 +22,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1037' + - '1139' Content-Type: - application/json User-Agent: @@ -35,11 +36,11 @@ interactions: job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: apim-request-id: - - 66cba1b7-76bd-4112-8e92-ac061ece104b + - 093850c2-978a-48df-893e-01a66eb90561 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:35 GMT + - Thu, 07 Oct 2021 23:39:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -47,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml index 0d2b1c83e09a..999d10fbc9a2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml @@ -2,10 +2,10 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - false}}], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], - "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "0", "text": "", "language": "en"}]}}' + false}, "taskName": "0"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "0", "text": "", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -14,7 +14,7 @@ interactions: Connection: - keep-alive Content-Length: - - '455' + - '472' Content-Type: - application/json User-Agent: @@ -27,11 +27,11 @@ interactions: text is empty."}}}' headers: apim-request-id: - - 2d1db232-1e02-4b7a-9047-c464b3caa025 + - 6eff5795-f82e-4f79-9aaf-19c0aa854ef4 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:36 GMT + - Thu, 07 Oct 2021 23:39:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '28' + - '666' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_custom_partial_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_custom_partial_error.yaml index 3ff3b5d5e85c..aa165030f375 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_custom_partial_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_custom_partial_error.yaml @@ -4,17 +4,17 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [{"parameters": {"project-name": "textanalytics_custom_entities_project_name", "deployment-name": - "textanalytics_custom_entities_project_name"}}], "customSingleClassificationTasks": + "textanalytics_custom_entities_project_name"}, "taskName": "2"}], "customSingleClassificationTasks": [{"parameters": {"project-name": "single_category_classify_project_name", "deployment-name": - "single_category_classify_project_name"}}], "customMultiClassificationTasks": + "single_category_classify_project_name"}, "taskName": "0"}], "customMultiClassificationTasks": [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", - "deployment-name": "textanalytics_multi_category_classify_project_name"}}]}, - "analysisInput": {"documents": [{"id": "1", "text": "A recent report by the - Government Accountability Office (GAO) found that the dramatic increase in oil - and natural gas development on federal lands over the past six years has stretched - the staff of the BLM to a point that it has been unable to meet its environmental - protection responsibilities.", "language": "en"}, {"id": "2", "text": "", "language": - "en"}]}}' + "deployment-name": "textanalytics_multi_category_classify_project_name"}, "taskName": + "1"}]}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report + by the Government Accountability Office (GAO) found that the dramatic increase + in oil and natural gas development on federal lands over the past six years + has stretched the staff of the BLM to a point that it has been unable to meet + its environmental protection responsibilities.", "language": "en"}, {"id": "2", + "text": "", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -23,7 +23,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1119' + - '1170' Content-Type: - application/json User-Agent: @@ -35,11 +35,11 @@ interactions: string: '' headers: apim-request-id: - - fa05e542-4e7d-4b25-8e81-40c7363c05ad + - 78c01927-844e-43d5-b214-c434c262bee7 date: - - Wed, 06 Oct 2021 21:17:38 GMT + - Thu, 07 Oct 2021 23:39:29 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b21b6de-c9fa-43ba-8f5c-af3f943b79f1 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cc91b62-6188-4333-99cf-a3c4ad7d5be2 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -47,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '882' + - '2131' status: code: 202 message: Accepted @@ -63,24 +63,24 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b21b6de-c9fa-43ba-8f5c-af3f943b79f1?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cc91b62-6188-4333-99cf-a3c4ad7d5be2?showStats=True response: body: - string: '{"jobId":"8b21b6de-c9fa-43ba-8f5c-af3f943b79f1","lastUpdateDateTime":"2021-10-06T21:17:40Z","createdDateTime":"2021-10-06T21:17:38Z","expirationDateTime":"2021-10-07T21:17:38Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T21:17:40.1667061Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past + string: '{"jobId":"9cc91b62-6188-4333-99cf-a3c4ad7d5be2","lastUpdateDateTime":"2021-10-07T23:39:33Z","createdDateTime":"2021-10-07T23:39:28Z","expirationDateTime":"2021-10-08T23:39:28Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:32.2418795Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past six years","category":"timeRange","offset":156,"length":14,"confidenceScore":0.54}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T21:17:40.2507266Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + text is empty."}}}],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:33.0466949Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T21:17:40.4463608Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + text is empty."}}}],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:32.745959Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - fa174b5d-d809-4a28-b523-789a9c0d97cf + - 46ce3d85-369f-487a-b447-f7ba08da19bb content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 21:17:43 GMT + - Thu, 07 Oct 2021 23:39:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -88,7 +88,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '371' + - '244' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml index 708d88b1eb72..d1a2a184856c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml @@ -1,23 +1,25 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": + "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + true}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": true, "stringIndexType": - "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true}}], "entityLinkingTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": true, "opinionMining": - false}}], "extractiveSummarizationTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": [{"parameters": {"project-name": - "textanalytics_custom_entities_project_name", "deployment-name": "textanalytics_custom_entities_project_name", - "loggingOptOut": true}}], "customSingleClassificationTasks": [{"parameters": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [{"parameters": {"project-name": "textanalytics_custom_entities_project_name", + "deployment-name": "textanalytics_custom_entities_project_name", "loggingOptOut": + true}, "taskName": "8"}], "customSingleClassificationTasks": [{"parameters": {"project-name": "single_category_classify_project_name", "deployment-name": - "single_category_classify_project_name", "loggingOptOut": true}}], "customMultiClassificationTasks": - [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", + "single_category_classify_project_name", "loggingOptOut": true}, "taskName": + "6"}], "customMultiClassificationTasks": [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", "deployment-name": "textanalytics_multi_category_classify_project_name", "loggingOptOut": - true}}]}, "analysisInput": {"documents": [{"id": "0", "text": "Test for logging - disable", "language": "en"}]}}' + true}, "taskName": "7"}]}, "analysisInput": {"documents": [{"id": "0", "text": + "Test for logging disable", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -26,7 +28,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1490' + - '1643' Content-Type: - application/json User-Agent: @@ -38,11 +40,11 @@ interactions: string: '' headers: apim-request-id: - - 45b21f58-981f-41a3-98d6-0c58597c9558 + - 6ee56acd-876e-4b26-ae42-49f38d90c54b date: - - Wed, 06 Oct 2021 20:48:49 GMT + - Thu, 07 Oct 2021 23:39:36 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/90dcf3a2-0306-4cfc-8bc4-0c9f08b42282 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -50,7 +52,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '675' + - '1258' status: code: 202 message: Accepted @@ -66,18 +68,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/90dcf3a2-0306-4cfc-8bc4-0c9f08b42282 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"90dcf3a2-0306-4cfc-8bc4-0c9f08b42282","lastUpdateDateTime":"2021-10-06T20:48:54Z","createdDateTime":"2021-10-06T20:48:49Z","expirationDateTime":"2021-10-07T20:48:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":6,"total":9,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.0029995Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.6692608Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:54.3410875Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:39Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":6,"total":9,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - 18e0e626-87b1-425a-9372-b86b2c3690dc + - 2107abf6-7804-4461-887f-557ea1705ce5 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:48:54 GMT + - Thu, 07 Oct 2021 23:39:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -85,7 +86,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '241' + - '154' status: code: 200 message: OK @@ -101,21 +102,20 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/90dcf3a2-0306-4cfc-8bc4-0c9f08b42282 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"90dcf3a2-0306-4cfc-8bc4-0c9f08b42282","lastUpdateDateTime":"2021-10-06T20:49:00Z","createdDateTime":"2021-10-06T20:48:49Z","expirationDateTime":"2021-10-07T20:48:49Z","status":"running","errors":[{"code":"InternalServerError","message":"1 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":5,"failed":1,"inProgress":3,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:57.9975943Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:00.3820332Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:45Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":4,"total":9,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.0029995Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.6692608Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:56.3169109Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:54.3410875Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - e982c7ad-c18c-4c5f-9e3b-3a6a271e108d + - 0e9f61d4-175f-40d7-be34-f1223602e257 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:00 GMT + - Thu, 07 Oct 2021 23:39:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -123,7 +123,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '302' + - '386' status: code: 200 message: OK @@ -139,22 +139,21 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/90dcf3a2-0306-4cfc-8bc4-0c9f08b42282 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"90dcf3a2-0306-4cfc-8bc4-0c9f08b42282","lastUpdateDateTime":"2021-10-06T20:49:02Z","createdDateTime":"2021-10-06T20:48:49Z","expirationDateTime":"2021-10-07T20:48:49Z","status":"running","errors":[{"code":"InternalServerError","message":"1 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":6,"failed":1,"inProgress":2,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:57.9975943Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:00.3820332Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:50Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":8,"failed":0,"inProgress":1,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:49.1632088Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.0029995Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:02.7285392Z","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.6692608Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:56.3169109Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:54.3410875Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:47.9178506Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:50.0955163Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - 50e2b5a2-ff5d-4740-9203-170c4412523f + - 58f16c18-2458-4e03-92c6-9911f203aaf6 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:06 GMT + - Thu, 07 Oct 2021 23:39:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -162,7 +161,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '406' + - '1084' status: code: 200 message: OK @@ -178,22 +177,21 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/90dcf3a2-0306-4cfc-8bc4-0c9f08b42282 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"90dcf3a2-0306-4cfc-8bc4-0c9f08b42282","lastUpdateDateTime":"2021-10-06T20:49:02Z","createdDateTime":"2021-10-06T20:48:49Z","expirationDateTime":"2021-10-07T20:48:49Z","status":"running","errors":[{"code":"InternalServerError","message":"1 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":6,"failed":1,"inProgress":2,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:57.9975943Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:00.3820332Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:50Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":8,"failed":0,"inProgress":1,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:49.1632088Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.0029995Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:02.7285392Z","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.6692608Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:56.3169109Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:54.3410875Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:47.9178506Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:50.0955163Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - f9ab6c11-b169-4ef2-9545-709446b840d8 + - 7b9e1af8-4010-4180-8f67-06fc3abe41c1 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:11 GMT + - Thu, 07 Oct 2021 23:39:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -201,7 +199,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '334' + - '499' status: code: 200 message: OK @@ -217,23 +215,21 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/90dcf3a2-0306-4cfc-8bc4-0c9f08b42282 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"90dcf3a2-0306-4cfc-8bc4-0c9f08b42282","lastUpdateDateTime":"2021-10-06T20:49:15Z","createdDateTime":"2021-10-06T20:48:49Z","expirationDateTime":"2021-10-07T20:48:49Z","status":"partiallyCompleted","errors":[{"code":"InternalServerError","message":"1 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":8,"failed":1,"inProgress":0,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:57.9975943Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:00.3820332Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:50Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":8,"failed":0,"inProgress":1,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:49.1632088Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.0029995Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:02.7285392Z","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:15.116555Z","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:12.4673152Z","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test - for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:52.6692608Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:56.3169109Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:48:54.3410875Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:47.9178506Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:50.0955163Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - b25b8b59-d7f2-4033-aa0f-56229cc04952 + - 4f80ec6f-73b9-4545-8190-c169e6b4ae67 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:16 GMT + - Thu, 07 Oct 2021 23:40:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -241,7 +237,46 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '492' + - '469' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 + response: + body: + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:40:04Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":9,"failed":0,"inProgress":0,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:49.1632088Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:47.9178506Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:50.0955163Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:40:04.4303317Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test + for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + headers: + apim-request-id: + - f3b4b7f9-8324-49ff-9c44-daf6bae0927c + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:40:09 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '587' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml index 4270b0c90b81..1f5d8b3c6702 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "This is written in English.", "language": "en"}]}}' headers: @@ -21,7 +22,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1036' + - '1138' Content-Type: - application/json User-Agent: @@ -35,13 +36,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - d212c098-d13d-403f-ae38-b6cf7bf79db8 + - a6d8a10e-4116-4e50-8fa3-d0d65b8e1855 content-length: - '224' content-type: - application/json date: - - Wed, 06 Oct 2021 20:49:17 GMT + - Thu, 07 Oct 2021 23:40:09 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_action_with_options.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_action_with_options.yaml index f2d17f3a8f26..f26bba6a1a4b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_action_with_options.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_action_with_options.yaml @@ -4,29 +4,30 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 5, "sortBy": "Rank"}}], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": - [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "0", "text": "The government of British Prime Minster Theresa May has been plunged - into turmoil with the resignation of two senior Cabinet ministers in a deep - split over her Brexit strategy. The Foreign Secretary Boris Johnson, quit on - Monday, hours after the resignation late on Sunday night of the minister in - charge of Brexit negotiations, David Davis. Their decision to leave the government - came three days after May appeared to have agreed a deal with herfractured Cabinet - on the UK''s post Brexit relationship with the EU. That plan is now in tatters - and her political future appears uncertain. May appeared in Parliament on Monday - afternoon to defend her plan, minutes after Downing Street confirmed the departure - of Johnson. May acknowledged the splits in her statement to MPs, saying of the - ministers who quit: We do not agree about the best way of delivering our shared - commitment to honoring the result of the referendum. The Prime Minister''s latest - plitical drama began late on Sunday night when Davis quit, declaring he could - not support May''s Brexit plan. He said it involved too close a relationship - with the EU and gave only an illusion of control being returned to the UK after - it left the EU. It seems to me we''re giving too much away, too easily, and - that''s a dangerous strategy at this time, Davis said in a BBC radio interview - Monday morning. Johnson''s resignation came Monday afternoon local time, just - before the Prime Minister was due to make a scheduled statement in Parliament. - This afternoon, the Prime Minister accepted the resignation of Boris Johnson - as Foreign Secretary, a statement from Downing Street said.", "language": "en"}]}}' + 5, "sortBy": "Rank"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "0", "text": "The government of British + Prime Minster Theresa May has been plunged into turmoil with the resignation + of two senior Cabinet ministers in a deep split over her Brexit strategy. The + Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation + late on Sunday night of the minister in charge of Brexit negotiations, David + Davis. Their decision to leave the government came three days after May appeared + to have agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship + with the EU. That plan is now in tatters and her political future appears uncertain. + May appeared in Parliament on Monday afternoon to defend her plan, minutes after + Downing Street confirmed the departure of Johnson. May acknowledged the splits + in her statement to MPs, saying of the ministers who quit: We do not agree about + the best way of delivering our shared commitment to honoring the result of the + referendum. The Prime Minister''s latest plitical drama began late on Sunday + night when Davis quit, declaring he could not support May''s Brexit plan. He + said it involved too close a relationship with the EU and gave only an illusion + of control being returned to the UK after it left the EU. It seems to me we''re + giving too much away, too easily, and that''s a dangerous strategy at this time, + Davis said in a BBC radio interview Monday morning. Johnson''s resignation came + Monday afternoon local time, just before the Prime Minister was due to make + a scheduled statement in Parliament. This afternoon, the Prime Minister accepted + the resignation of Boris Johnson as Foreign Secretary, a statement from Downing + Street said.", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -35,7 +36,7 @@ interactions: Connection: - keep-alive Content-Length: - - '2157' + - '2174' Content-Type: - application/json User-Agent: @@ -47,11 +48,11 @@ interactions: string: '' headers: apim-request-id: - - e98d56d3-a181-4681-bfa5-a8b175fbf391 + - 27cd70b7-9bca-444c-ba26-e26029e0c0a8 date: - - Wed, 06 Oct 2021 20:49:17 GMT + - Thu, 07 Oct 2021 23:40:10 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ac216c3c-9fdc-44b0-9aa9-5cdab35b685b + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -59,7 +60,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '150' + - '185' status: code: 202 message: Accepted @@ -75,17 +76,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ac216c3c-9fdc-44b0-9aa9-5cdab35b685b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42?showStats=True response: body: - string: '{"jobId":"ac216c3c-9fdc-44b0-9aa9-5cdab35b685b","lastUpdateDateTime":"2021-10-06T20:49:18Z","createdDateTime":"2021-10-06T20:49:18Z","expirationDateTime":"2021-10-07T20:49:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"776bd04e-618b-4459-803b-629deb914e42","lastUpdateDateTime":"2021-10-07T23:40:11Z","createdDateTime":"2021-10-07T23:40:10Z","expirationDateTime":"2021-10-08T23:40:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 2e4a6f14-a049-42e4-bdff-73382ba7b02e + - 5ce62e6d-bcc1-49b9-a833-b27f9c8ab1b6 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:22 GMT + - Thu, 07 Oct 2021 23:40:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -93,7 +94,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '41' status: code: 200 message: OK @@ -109,17 +110,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ac216c3c-9fdc-44b0-9aa9-5cdab35b685b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42?showStats=True response: body: - string: '{"jobId":"ac216c3c-9fdc-44b0-9aa9-5cdab35b685b","lastUpdateDateTime":"2021-10-06T20:49:18Z","createdDateTime":"2021-10-06T20:49:18Z","expirationDateTime":"2021-10-07T20:49:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"776bd04e-618b-4459-803b-629deb914e42","lastUpdateDateTime":"2021-10-07T23:40:11Z","createdDateTime":"2021-10-07T23:40:10Z","expirationDateTime":"2021-10-08T23:40:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 53add38f-fda5-422a-aff0-d1e3658f1a5c + - 35e0add7-6008-43a5-8cba-84ae5a209f81 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:28 GMT + - Thu, 07 Oct 2021 23:40:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -127,7 +128,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '49' status: code: 200 message: OK @@ -143,17 +144,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ac216c3c-9fdc-44b0-9aa9-5cdab35b685b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42?showStats=True response: body: - string: '{"jobId":"ac216c3c-9fdc-44b0-9aa9-5cdab35b685b","lastUpdateDateTime":"2021-10-06T20:49:18Z","createdDateTime":"2021-10-06T20:49:18Z","expirationDateTime":"2021-10-07T20:49:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"776bd04e-618b-4459-803b-629deb914e42","lastUpdateDateTime":"2021-10-07T23:40:11Z","createdDateTime":"2021-10-07T23:40:10Z","expirationDateTime":"2021-10-08T23:40:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - b618497f-8919-4020-a1be-87ce3a0e822a + - 6d89a076-deee-403e-882b-6f69a5881737 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:33 GMT + - Thu, 07 Oct 2021 23:40:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -161,7 +162,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '23' status: code: 200 message: OK @@ -177,10 +178,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ac216c3c-9fdc-44b0-9aa9-5cdab35b685b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42?showStats=True response: body: - string: '{"jobId":"ac216c3c-9fdc-44b0-9aa9-5cdab35b685b","lastUpdateDateTime":"2021-10-06T20:49:35Z","createdDateTime":"2021-10-06T20:49:18Z","expirationDateTime":"2021-10-07T20:49:18Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:35.9577722Z","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The + string: '{"jobId":"776bd04e-618b-4459-803b-629deb914e42","lastUpdateDateTime":"2021-10-07T23:40:27Z","createdDateTime":"2021-10-07T23:40:10Z","expirationDateTime":"2021-10-08T23:40:10Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:40:27.4693543Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation late on Sunday night of the minister in charge of Brexit negotiations, David Davis.","rankScore":1.0,"offset":177,"length":164},{"text":"The government @@ -195,11 +196,11 @@ interactions: quit, declaring he could not support May''s Brexit plan.","rankScore":0.26,"offset":918,"length":136}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: apim-request-id: - - fd9904e7-2835-43ac-854d-40e8564605c3 + - d7c1df5a-5541-4b5c-8249-0414154ee829 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:38 GMT + - Thu, 07 Oct 2021 23:40:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -207,7 +208,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '55' + - '73' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_partial_results.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_partial_results.yaml index c0cc076a5844..d9b3e0427323 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_partial_results.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_partial_results.yaml @@ -4,10 +4,10 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": - [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "", "language": "en"}, {"id": "2", "text": "hello world", "language": - "en"}]}}' + 3, "sortBy": "Offset"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "", "language": "en"}, {"id": + "2", "text": "hello world", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '588' + - '605' Content-Type: - application/json User-Agent: @@ -28,11 +28,11 @@ interactions: string: '' headers: apim-request-id: - - 397b59ff-751e-4288-9d14-b71417eb9c34 + - e28db531-0925-4473-bff5-20b50687e22a date: - - Wed, 06 Oct 2021 20:49:38 GMT + - Thu, 07 Oct 2021 23:40:31 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a0758e8b-a917-4408-b8ea-8bdfaf6f1be0 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '258' + - '255' status: code: 202 message: Accepted @@ -56,17 +56,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a0758e8b-a917-4408-b8ea-8bdfaf6f1be0?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec?showStats=True response: body: - string: '{"jobId":"a0758e8b-a917-4408-b8ea-8bdfaf6f1be0","lastUpdateDateTime":"2021-10-06T20:49:39Z","createdDateTime":"2021-10-06T20:49:39Z","expirationDateTime":"2021-10-07T20:49:39Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6028f03e-60c1-43d7-bc5a-a0e9d9023fec","lastUpdateDateTime":"2021-10-07T23:40:32Z","createdDateTime":"2021-10-07T23:40:31Z","expirationDateTime":"2021-10-08T23:40:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 36cf630e-3891-4a6a-9f1b-e98a78cffb33 + - e66ee153-53b4-4944-88d5-7b4c2c39724e content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:43 GMT + - Thu, 07 Oct 2021 23:40:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -74,7 +74,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '46' status: code: 200 message: OK @@ -90,17 +90,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a0758e8b-a917-4408-b8ea-8bdfaf6f1be0?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec?showStats=True response: body: - string: '{"jobId":"a0758e8b-a917-4408-b8ea-8bdfaf6f1be0","lastUpdateDateTime":"2021-10-06T20:49:39Z","createdDateTime":"2021-10-06T20:49:39Z","expirationDateTime":"2021-10-07T20:49:39Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6028f03e-60c1-43d7-bc5a-a0e9d9023fec","lastUpdateDateTime":"2021-10-07T23:40:32Z","createdDateTime":"2021-10-07T23:40:31Z","expirationDateTime":"2021-10-08T23:40:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - fe581779-1668-4d9e-ad17-f4759d46a306 + - 50c67605-32d5-461e-8b3e-01266d7f2ce3 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:49 GMT + - Thu, 07 Oct 2021 23:40:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -108,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '15' status: code: 200 message: OK @@ -124,17 +124,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a0758e8b-a917-4408-b8ea-8bdfaf6f1be0?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec?showStats=True response: body: - string: '{"jobId":"a0758e8b-a917-4408-b8ea-8bdfaf6f1be0","lastUpdateDateTime":"2021-10-06T20:49:39Z","createdDateTime":"2021-10-06T20:49:39Z","expirationDateTime":"2021-10-07T20:49:39Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6028f03e-60c1-43d7-bc5a-a0e9d9023fec","lastUpdateDateTime":"2021-10-07T23:40:32Z","createdDateTime":"2021-10-07T23:40:31Z","expirationDateTime":"2021-10-08T23:40:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 0bc8a9b8-299b-471c-9ce7-0fb4fedee521 + - 293e461c-58ed-4d1c-90ef-03258152d8d8 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:54 GMT + - Thu, 07 Oct 2021 23:40:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '9' status: code: 200 message: OK @@ -158,19 +158,19 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a0758e8b-a917-4408-b8ea-8bdfaf6f1be0?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec?showStats=True response: body: - string: '{"jobId":"a0758e8b-a917-4408-b8ea-8bdfaf6f1be0","lastUpdateDateTime":"2021-10-06T20:49:57Z","createdDateTime":"2021-10-06T20:49:39Z","expirationDateTime":"2021-10-07T20:49:39Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:49:57.1307538Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"6028f03e-60c1-43d7-bc5a-a0e9d9023fec","lastUpdateDateTime":"2021-10-07T23:40:49Z","createdDateTime":"2021-10-07T23:40:31Z","expirationDateTime":"2021-10-08T23:40:31Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:40:49.1817214Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-08-01"}}]}}' headers: apim-request-id: - - b3aa3155-c799-4a7a-b8bf-a138d01a9738 + - 1d1081f6-50fa-49b9-87eb-11b14d4a827c content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:49:59 GMT + - Thu, 07 Oct 2021 23:40:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -178,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '83' + - '202' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml index ca6e05565602..990fdc09633f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "This should fail because we''re passing in an invalid language hint", "language": "notalanguage"}]}}' headers: @@ -21,7 +22,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1085' + - '1187' Content-Type: - application/json User-Agent: @@ -33,11 +34,11 @@ interactions: string: '' headers: apim-request-id: - - e4f589cf-7a6e-4961-acd3-ccc749420767 + - 524fafc7-c206-4359-9490-4fc9f8c5a17b date: - - Wed, 06 Oct 2021 20:49:59 GMT + - Thu, 07 Oct 2021 23:40:53 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/5dd8ca29-00ab-4080-a35f-9f8375e597b3 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '566' + - '648' status: code: 202 message: Accepted @@ -61,17 +62,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/5dd8ca29-00ab-4080-a35f-9f8375e597b3 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb response: body: - string: '{"jobId":"5dd8ca29-00ab-4080-a35f-9f8375e597b3","lastUpdateDateTime":"2021-10-06T20:50:01Z","createdDateTime":"2021-10-06T20:50:00Z","expirationDateTime":"2021-10-07T20:50:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:40:53Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: apim-request-id: - - c10b01e0-2961-40a6-a09e-f71143a1f3c0 + - 8d753749-2ad7-40c8-a744-34a44ac07e7b content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:04 GMT + - Thu, 07 Oct 2021 23:40:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -79,7 +80,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '23' status: code: 200 message: OK @@ -95,25 +96,62 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/5dd8ca29-00ab-4080-a35f-9f8375e597b3 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb response: body: - string: '{"jobId":"5dd8ca29-00ab-4080-a35f-9f8375e597b3","lastUpdateDateTime":"2021-10-06T20:50:09Z","createdDateTime":"2021-10-06T20:50:00Z","expirationDateTime":"2021-10-07T20:50:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:08.1757478Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:40:59Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + headers: + apim-request-id: + - 2e7abfa9-27b0-46fc-81dc-aaba3e76647a + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:03 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb + response: + body: + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:41:08Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:08.1351322Z","taskName":"0","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:08.3409473Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.1967898Z","taskName":"3","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:09.1566923Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.7816898Z","taskName":"2","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.4585937Z","taskName":"1","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - f59e6024-8175-44b2-a32b-12b875a70f2d + - bf50252b-b8e4-4515-8a1e-9a8f618477ba content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:10 GMT + - Thu, 07 Oct 2021 23:41:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -121,7 +159,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '203' + - '555' status: code: 200 message: OK @@ -137,31 +175,76 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/5dd8ca29-00ab-4080-a35f-9f8375e597b3 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb response: body: - string: '{"jobId":"5dd8ca29-00ab-4080-a35f-9f8375e597b3","lastUpdateDateTime":"2021-10-06T20:50:14Z","createdDateTime":"2021-10-06T20:50:00Z","expirationDateTime":"2021-10-07T20:50:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:08.1757478Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:41:08Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:08.1351322Z","taskName":"0","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:08.3409473Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.1967898Z","taskName":"3","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:14.0327218Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.7816898Z","taskName":"2","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:09.1566923Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.4585937Z","taskName":"1","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:13.6031729Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - 5707d54d-5870-45dc-a4fb-93a8b0ffb53b + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:14 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '248' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb + response: + body: + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:41:15Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:08.1351322Z","taskName":"0","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' + language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.1967898Z","taskName":"3","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.7816898Z","taskName":"2","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:15.8767191Z","taskName":"5","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-PT,pt-BR. + For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.4585937Z","taskName":"1","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 589fad0f-5f64-4369-bb95-1ed47620d4b1 + - 98d88870-1dd1-4dde-b473-c55e050af242 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:15 GMT + - Thu, 07 Oct 2021 23:41:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -169,7 +252,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '260' + - '254' status: code: 200 message: OK @@ -185,34 +268,34 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/5dd8ca29-00ab-4080-a35f-9f8375e597b3 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb response: body: - string: '{"jobId":"5dd8ca29-00ab-4080-a35f-9f8375e597b3","lastUpdateDateTime":"2021-10-06T20:50:17Z","createdDateTime":"2021-10-06T20:50:00Z","expirationDateTime":"2021-10-07T20:50:00Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:08.1757478Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:41:23Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:08.1351322Z","taskName":"0","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:08.3409473Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.1967898Z","taskName":"3","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:14.0327218Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.7816898Z","taskName":"2","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:17.3043281Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:15.8767191Z","taskName":"5","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-PT,pt-BR. - For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:09.1566923Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.4585937Z","taskName":"1","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:13.6031729Z","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:23.605784Z","taskName":"4","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 6113f517-7c99-4442-9042-3daaafd4dc7b + - 979736f8-8008-4b6a-b897-79bcc1de73cc content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:21 GMT + - Thu, 07 Oct 2021 23:41:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -220,7 +303,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '289' + - '334' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multi_category_classify.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multi_category_classify.yaml index d370d9a03722..bf229f1fd89b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multi_category_classify.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multi_category_classify.yaml @@ -5,11 +5,11 @@ interactions: [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", "deployment-name": - "textanalytics_multi_category_classify_project_name"}}]}, "analysisInput": {"documents": - [{"id": "1", "text": "A recent report by the Government Accountability Office - (GAO) found that the dramatic increase in oil and natural gas development on - federal lands over the past six years has stretched the staff of the BLM to - a point that it has been unable to meet its environmental protection responsibilities.", + "textanalytics_multi_category_classify_project_name"}, "taskName": "0"}]}, "analysisInput": + {"documents": [{"id": "1", "text": "A recent report by the Government Accountability + Office (GAO) found that the dramatic increase in oil and natural gas development + on federal lands over the past six years has stretched the staff of the BLM + to a point that it has been unable to meet its environmental protection responsibilities.", "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component.", "language": "en"}, {"id": "3", "text": "I @@ -23,7 +23,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1179' + - '1196' Content-Type: - application/json User-Agent: @@ -35,11 +35,11 @@ interactions: string: '' headers: apim-request-id: - - f16e81f4-4032-4e83-aab0-edeef46fd22c + - 9e97987a-7066-4590-b132-a948c28014ba date: - - Wed, 06 Oct 2021 20:50:21 GMT + - Thu, 07 Oct 2021 23:41:25 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3b5a2a6f-a3eb-46a8-9b34-ec8484bf2e4d + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/15f01764-884e-46a6-805a-617e74dab0f9 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -47,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '733' + - '226' status: code: 202 message: Accepted @@ -63,17 +63,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3b5a2a6f-a3eb-46a8-9b34-ec8484bf2e4d?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/15f01764-884e-46a6-805a-617e74dab0f9?showStats=True response: body: - string: '{"jobId":"3b5a2a6f-a3eb-46a8-9b34-ec8484bf2e4d","lastUpdateDateTime":"2021-10-06T20:50:23Z","createdDateTime":"2021-10-06T20:50:22Z","expirationDateTime":"2021-10-07T20:50:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:23.3704559Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classifications":[],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classifications":[{"category":"BookRestaurant","confidenceScore":0.97}],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + string: '{"jobId":"15f01764-884e-46a6-805a-617e74dab0f9","lastUpdateDateTime":"2021-10-07T23:41:26Z","createdDateTime":"2021-10-07T23:41:25Z","expirationDateTime":"2021-10-08T23:41:25Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:26.4004139Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classifications":[],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classifications":[{"category":"BookRestaurant","confidenceScore":0.97}],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - 6454b093-a831-44ed-a755-c1faff705f10 + - 3572e3dc-1139-4c6d-aa4b-161f4c3eea43 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:27 GMT + - Thu, 07 Oct 2021 23:41:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '92' + - '178' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action.yaml new file mode 100644 index 000000000000..b32c233ed998 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action.yaml @@ -0,0 +1,918 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "2"}, {"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint"}, "taskName": "7"}], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}, {"parameters": {"model-version": "latest", "loggingOptOut": + true, "piiCategories": ["USSocialSecurityNumber"], "stringIndexType": "UnicodeCodePoint"}, + "taskName": "5"}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false}, "taskName": "6"}, {"parameters": {"model-version": + "latest", "loggingOptOut": false}, "taskName": "11"}], "entityLinkingTasks": + [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint"}, "taskName": "3"}, {"parameters": {"model-version": "latest", + "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "9"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "0"}, {"parameters": + {"model-version": "latest", "loggingOptOut": false, "opinionMining": true}, + "taskName": "8"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 3, "sortBy": "Rank"}, "taskName": "4"}, {"parameters": {"model-version": "latest", + "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 1, "sortBy": "Offset"}, "taskName": "10"}], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "28", "text": "My SSN is 859-98-0987. + Here is another sentence.", "language": "en"}, {"id": "3", "text": "Is 998.214.865-68 + your Brazilian CPF number? Here is another sentence.", "language": "en"}, {"id": + "5", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2390' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 10d2dad8-0cb9-49a8-9064-64fa8cc3c57d + date: + - Thu, 07 Oct 2021 23:41:33 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1639' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: '{"jobId":"265cca67-f8d7-4b75-aca0-88bce8803c8b","lastUpdateDateTime":"2021-10-07T23:41:38Z","createdDateTime":"2021-10-07T23:41:31Z","expirationDateTime":"2021-10-08T23:41:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":12,"total":12}}' + headers: + apim-request-id: + - 5cb18956-14de-498e-bd66-59bc1b6c9a1e + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:37 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: '{"jobId":"265cca67-f8d7-4b75-aca0-88bce8803c8b","lastUpdateDateTime":"2021-10-07T23:41:40Z","createdDateTime":"2021-10-07T23:41:31Z","expirationDateTime":"2021-10-08T23:41:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":11,"total":12,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:40.7983208Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"28","entities":[{"text":"859","category":"Quantity","subcategory":"Number","offset":10,"length":3,"confidenceScore":0.8},{"text":"98","category":"Quantity","subcategory":"Number","offset":14,"length":2,"confidenceScore":0.8},{"text":"0987","category":"Quantity","subcategory":"Number","offset":17,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"998","category":"Quantity","subcategory":"Number","offset":3,"length":3,"confidenceScore":0.8},{"text":"214","category":"Quantity","subcategory":"Number","offset":7,"length":3,"confidenceScore":0.8},{"text":"865","category":"Quantity","subcategory":"Number","offset":11,"length":3,"confidenceScore":0.8},{"text":"68","category":"Quantity","subcategory":"Number","offset":15,"length":2,"confidenceScore":0.8}],"warnings":[]},{"id":"5","entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.95},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.66},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.65},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.94},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.83}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - cae9ab79-7122-49f1-9f9e-dc54982fa8ee + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:42 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '92' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: "{\"jobId\":\"265cca67-f8d7-4b75-aca0-88bce8803c8b\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:47Z\",\"createdDateTime\":\"2021-10-07T23:41:31Z\",\"\ + expirationDateTime\":\"2021-10-08T23:41:31Z\",\"status\":\"running\",\"errors\"\ + :[],\"displayName\":\"NA\",\"tasks\":{\"completed\":4,\"failed\":0,\"inProgress\"\ + :8,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\":\"2021-10-07T23:41:40.7983208Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:44.8597665Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:44.8119202Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:47.2930334Z\",\"taskName\":\"5\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the Government Accountability\ + \ Office (GAO) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the past six years has stretched the staff of the\ + \ BLM to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-01-15\"}}]}}" + headers: + apim-request-id: + - 96dd08bb-4639-4c54-b7d1-989a01b60237 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:48 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '333' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: "{\"jobId\":\"265cca67-f8d7-4b75-aca0-88bce8803c8b\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:53Z\",\"createdDateTime\":\"2021-10-07T23:41:31Z\",\"\ + expirationDateTime\":\"2021-10-08T23:41:31Z\",\"status\":\"running\",\"errors\"\ + :[],\"displayName\":\"NA\",\"tasks\":{\"completed\":9,\"failed\":0,\"inProgress\"\ + :3,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\":\"2021-10-07T23:41:53.7576255Z\"\ + ,\"taskName\":\"2\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:40.7983208Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:44.8597665Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:44.8119202Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:52.6444045Z\",\"taskName\":\"1\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the ********************************\ + \ (***) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the ************** has stretched the staff of the\ + \ *** to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[{\"text\":\"Government Accountability\ + \ Office\",\"category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.96},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.93},{\"text\":\"past six years\",\"category\":\"\ + DateTime\",\"subcategory\":\"DateRange\",\"offset\":156,\"length\":14,\"confidenceScore\"\ + :0.8},{\"text\":\"BLM\",\"category\":\"Organization\",\"offset\":202,\"length\"\ + :3,\"confidenceScore\":0.9}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:47.2930334Z\"\ + ,\"taskName\":\"5\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + redactedText\":\"My SSN is ***********. Here is another sentence.\",\"id\"\ + :\"28\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]},{\"\ + redactedText\":\"Is 998.214.865-68 your Brazilian CPF number? Here is another\ + \ sentence.\",\"id\":\"3\",\"entities\":[],\"warnings\":[]},{\"redactedText\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}}],\"extractiveSummarizationTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:51.6186346Z\",\"taskName\":\"10\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"sentences\":[{\"text\":\"My\ + \ SSN is 859-98-0987.\",\"rankScore\":1.0,\"offset\":0,\"length\":22}],\"\ + warnings\":[]},{\"id\":\"3\",\"sentences\":[{\"text\":\"Is 998.214.865-68\ + \ your Brazilian CPF number?\",\"rankScore\":1.0,\"offset\":0,\"length\":44}],\"\ + warnings\":[]},{\"id\":\"5\",\"sentences\":[{\"text\":\"A recent report by\ + \ the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"rankScore\":1.0,\"\ + offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-08-01\"}}],\"keyPhraseExtractionTasks\":[{\"lastUpdateDateTime\":\"\ + 2021-10-07T23:41:50.5445647Z\",\"taskName\":\"6\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:51.5804408Z\",\"taskName\":\"11\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}}]}}" + headers: + apim-request-id: + - 30c525e8-275d-4771-b881-0ea8b12603a6 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:54 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '790' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: "{\"jobId\":\"265cca67-f8d7-4b75-aca0-88bce8803c8b\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:57Z\",\"createdDateTime\":\"2021-10-07T23:41:31Z\",\"\ + expirationDateTime\":\"2021-10-08T23:41:31Z\",\"status\":\"running\",\"errors\"\ + :[],\"displayName\":\"NA\",\"tasks\":{\"completed\":11,\"failed\":0,\"inProgress\"\ + :1,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\":\"2021-10-07T23:41:53.7576255Z\"\ + ,\"taskName\":\"2\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:40.7983208Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:44.8597665Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:44.8119202Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:52.6444045Z\",\"taskName\":\"1\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the ********************************\ + \ (***) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the ************** has stretched the staff of the\ + \ *** to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[{\"text\":\"Government Accountability\ + \ Office\",\"category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.96},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.93},{\"text\":\"past six years\",\"category\":\"\ + DateTime\",\"subcategory\":\"DateRange\",\"offset\":156,\"length\":14,\"confidenceScore\"\ + :0.8},{\"text\":\"BLM\",\"category\":\"Organization\",\"offset\":202,\"length\"\ + :3,\"confidenceScore\":0.9}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:47.2930334Z\"\ + ,\"taskName\":\"5\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + redactedText\":\"My SSN is ***********. Here is another sentence.\",\"id\"\ + :\"28\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]},{\"\ + redactedText\":\"Is 998.214.865-68 your Brazilian CPF number? Here is another\ + \ sentence.\",\"id\":\"3\",\"entities\":[],\"warnings\":[]},{\"redactedText\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}}],\"extractiveSummarizationTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:57.3126417Z\",\"taskName\":\"4\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"sentences\":[{\"text\":\"My\ + \ SSN is 859-98-0987.\",\"rankScore\":1.0,\"offset\":0,\"length\":22},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":23,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"3\",\"sentences\":[{\"text\":\"Is 998.214.865-68\ + \ your Brazilian CPF number?\",\"rankScore\":1.0,\"offset\":0,\"length\":44},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":45,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"5\",\"sentences\":[{\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"rankScore\":1.0,\"\ + offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-08-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:51.6186346Z\"\ + ,\"taskName\":\"10\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentences\":[{\"text\":\"My SSN is 859-98-0987.\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":22}],\"warnings\":[]},{\"id\":\"3\",\"sentences\"\ + :[{\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":44}],\"warnings\":[]},{\"id\":\"5\",\"sentences\"\ + :[{\"text\":\"A recent report by the Government Accountability Office (GAO)\ + \ found that the dramatic increase in oil and natural gas development on federal\ + \ lands over the past six years has stretched the staff of the BLM to a point\ + \ that it has been unable to meet its environmental protection responsibilities.\"\ + ,\"rankScore\":1.0,\"offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-08-01\"}}],\"keyPhraseExtractionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:50.5445647Z\",\"taskName\":\"6\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:51.5804408Z\",\"taskName\":\"11\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}}],\"sentimentAnalysisTasks\"\ + :[{\"lastUpdateDateTime\":\"2021-10-07T23:41:55.5919878Z\",\"taskName\":\"\ + 8\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"28\",\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :22,\"text\":\"My SSN is 859-98-0987.\",\"targets\":[],\"assessments\":[]},{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.02,\"neutral\"\ + :0.9,\"negative\":0.08},\"offset\":23,\"length\":25,\"text\":\"Here is another\ + \ sentence.\",\"targets\":[],\"assessments\":[]}],\"warnings\":[]},{\"id\"\ + :\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"\ + neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"\ + offset\":0,\"length\":44,\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\"\ + ,\"targets\":[],\"assessments\":[]},{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":45,\"length\"\ + :25,\"text\":\"Here is another sentence.\",\"targets\":[],\"assessments\"\ + :[]}],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.23,\"neutral\"\ + :0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"targets\":[],\"\ + assessments\":[]}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"\ + }}]}}" + headers: + apim-request-id: + - f61de0c4-1f1a-4ada-b111-6a8aef607e76 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:00 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '847' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: "{\"jobId\":\"265cca67-f8d7-4b75-aca0-88bce8803c8b\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:42:01Z\",\"createdDateTime\":\"2021-10-07T23:41:31Z\",\"\ + expirationDateTime\":\"2021-10-08T23:41:31Z\",\"status\":\"succeeded\",\"\ + errors\":[],\"displayName\":\"NA\",\"tasks\":{\"completed\":12,\"failed\"\ + :0,\"inProgress\":0,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:53.7576255Z\",\"taskName\":\"2\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[{\"text\":\"859\"\ + ,\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":10,\"length\"\ + :3,\"confidenceScore\":0.8},{\"text\":\"98\",\"category\":\"Quantity\",\"\ + subcategory\":\"Number\",\"offset\":14,\"length\":2,\"confidenceScore\":0.8},{\"\ + text\":\"0987\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\"\ + :17,\"length\":4,\"confidenceScore\":0.8}],\"warnings\":[]},{\"id\":\"3\"\ + ,\"entities\":[{\"text\":\"998\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"\ + 214\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":7,\"\ + length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:40.7983208Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:44.8597665Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:44.8119202Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:52.6444045Z\",\"taskName\":\"1\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the ********************************\ + \ (***) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the ************** has stretched the staff of the\ + \ *** to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[{\"text\":\"Government Accountability\ + \ Office\",\"category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.96},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.93},{\"text\":\"past six years\",\"category\":\"\ + DateTime\",\"subcategory\":\"DateRange\",\"offset\":156,\"length\":14,\"confidenceScore\"\ + :0.8},{\"text\":\"BLM\",\"category\":\"Organization\",\"offset\":202,\"length\"\ + :3,\"confidenceScore\":0.9}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:47.2930334Z\"\ + ,\"taskName\":\"5\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + redactedText\":\"My SSN is ***********. Here is another sentence.\",\"id\"\ + :\"28\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]},{\"\ + redactedText\":\"Is 998.214.865-68 your Brazilian CPF number? Here is another\ + \ sentence.\",\"id\":\"3\",\"entities\":[],\"warnings\":[]},{\"redactedText\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}}],\"extractiveSummarizationTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:57.3126417Z\",\"taskName\":\"4\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"sentences\":[{\"text\":\"My\ + \ SSN is 859-98-0987.\",\"rankScore\":1.0,\"offset\":0,\"length\":22},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":23,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"3\",\"sentences\":[{\"text\":\"Is 998.214.865-68\ + \ your Brazilian CPF number?\",\"rankScore\":1.0,\"offset\":0,\"length\":44},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":45,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"5\",\"sentences\":[{\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"rankScore\":1.0,\"\ + offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-08-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:51.6186346Z\"\ + ,\"taskName\":\"10\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentences\":[{\"text\":\"My SSN is 859-98-0987.\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":22}],\"warnings\":[]},{\"id\":\"3\",\"sentences\"\ + :[{\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":44}],\"warnings\":[]},{\"id\":\"5\",\"sentences\"\ + :[{\"text\":\"A recent report by the Government Accountability Office (GAO)\ + \ found that the dramatic increase in oil and natural gas development on federal\ + \ lands over the past six years has stretched the staff of the BLM to a point\ + \ that it has been unable to meet its environmental protection responsibilities.\"\ + ,\"rankScore\":1.0,\"offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-08-01\"}}],\"keyPhraseExtractionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:50.5445647Z\",\"taskName\":\"6\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:51.5804408Z\",\"taskName\":\"11\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}}],\"sentimentAnalysisTasks\"\ + :[{\"lastUpdateDateTime\":\"2021-10-07T23:42:01.0041001Z\",\"taskName\":\"\ + 0\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"28\",\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :22,\"text\":\"My SSN is 859-98-0987.\"},{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":23,\"length\"\ + :25,\"text\":\"Here is another sentence.\"}],\"warnings\":[]},{\"id\":\"3\"\ + ,\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :44,\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\"},{\"sentiment\"\ + :\"neutral\",\"confidenceScores\":{\"positive\":0.02,\"neutral\":0.9,\"negative\"\ + :0.08},\"offset\":45,\"length\":25,\"text\":\"Here is another sentence.\"\ + }],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.23,\"neutral\"\ + :0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\"}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2020-04-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:55.5919878Z\"\ + ,\"taskName\":\"8\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"\ + neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"\ + offset\":0,\"length\":22,\"text\":\"My SSN is 859-98-0987.\",\"targets\":[],\"\ + assessments\":[]},{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":23,\"length\":25,\"text\"\ + :\"Here is another sentence.\",\"targets\":[],\"assessments\":[]}],\"warnings\"\ + :[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.01,\"neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"\ + neutral\",\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\"\ + :0.0},\"offset\":0,\"length\":44,\"text\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number?\",\"targets\":[],\"assessments\":[]},{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"\ + offset\":45,\"length\":25,\"text\":\"Here is another sentence.\",\"targets\"\ + :[],\"assessments\":[]}],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"\ + sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.23,\"neutral\":0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"targets\":[],\"assessments\":[]}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2020-04-01\"}}]}}" + headers: + apim-request-id: + - d4247c88-dcf4-4dac-aed2-53df0f4478e3 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:05 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1001' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action_with_partial_results.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action_with_partial_results.yaml new file mode 100644 index 000000000000..57c4be616b45 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action_with_partial_results.yaml @@ -0,0 +1,184 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", + "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "0"}, {"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 5, "sortBy": "Offset"}, "taskName": "2"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "5", "text": "A recent report by the + Government Accountability Office (GAO) found that the dramatic increase in oil + and natural gas development on federal lands over the past six years has stretched + the staff of the BLM to a point that it has been unable to meet its environmental + protection responsibilities.", "language": "en"}, {"id": "2", "text": "", "language": + "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1176' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 3bbd420f-7e91-4327-a413-3f4831d2a718 + date: + - Thu, 07 Oct 2021 23:42:07 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3 + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '394' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3 + response: + body: + string: '{"jobId":"bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3","lastUpdateDateTime":"2021-10-07T23:42:07Z","createdDateTime":"2021-10-07T23:42:07Z","expirationDateTime":"2021-10-08T23:42:07Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":3,"total":3}}' + headers: + apim-request-id: + - 5d85e5f3-cbda-49fb-b34c-eabd0fa81072 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:12 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3 + response: + body: + string: '{"jobId":"bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3","lastUpdateDateTime":"2021-10-07T23:42:16Z","createdDateTime":"2021-10-07T23:42:07Z","expirationDateTime":"2021-10-08T23:42:07Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":2,"total":3,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:16.4799137Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"5","entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.96},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.93},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.9}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - d0878f94-3915-4b6b-8e70-ca979388f4b1 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:17 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '76' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3 + response: + body: + string: '{"jobId":"bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3","lastUpdateDateTime":"2021-10-07T23:42:20Z","createdDateTime":"2021-10-07T23:42:07Z","expirationDateTime":"2021-10-08T23:42:07Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:16.4799137Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"5","entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.96},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.93},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.9}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:20.2399998Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"5","sentences":[{"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities.","rankScore":1.0,"offset":0,"length":295}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-08-01"}},{"lastUpdateDateTime":"2021-10-07T23:42:20.1526365Z","taskName":"2","state":"succeeded","results":{"documents":[{"id":"5","sentences":[{"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities.","rankScore":1.0,"offset":0,"length":295}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-08-01"}}]}}' + headers: + apim-request-id: + - 20afba51-5fee-4bb5-876a-33ff5850b8c8 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:22 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '187' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml index 5dfc9fbaa56c..5408a6a6aba4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "hello world", "language": "en"}, {"id": "1", "text": "hello world", "language": "en"}, {"id": "2", "text": "hello world", "language": "en"}, {"id": "3", "text": "hello world", "language": @@ -37,7 +38,7 @@ interactions: Connection: - keep-alive Content-Length: - - '2331' + - '2433' Content-Type: - application/json User-Agent: @@ -49,11 +50,11 @@ interactions: string: '' headers: apim-request-id: - - 4572f067-3b7d-4586-ad3d-98dd5a2a4efa + - c79ca97c-5404-4d96-ba1b-a60783399b95 date: - - Wed, 06 Oct 2021 20:50:28 GMT + - Thu, 07 Oct 2021 23:42:23 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -61,7 +62,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1137' + - '1299' status: code: 202 message: Accepted @@ -77,17 +78,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"d831787b-f1e8-46cc-a304-4e0369bbeeb4","lastUpdateDateTime":"2021-10-06T20:50:29Z","createdDateTime":"2021-10-06T20:50:28Z","expirationDateTime":"2021-10-07T20:50:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:24Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: apim-request-id: - - b3eb8e30-5940-41a7-b1f9-f6b1d6899657 + - 197ae1f7-1b6f-46ee-bb22-3fe66c1b36eb content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:33 GMT + - Thu, 07 Oct 2021 23:42:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -111,71 +112,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"d831787b-f1e8-46cc-a304-4e0369bbeeb4","lastUpdateDateTime":"2021-10-06T20:50:39Z","createdDateTime":"2021-10-06T20:50:28Z","expirationDateTime":"2021-10-07T20:50:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' - headers: - apim-request-id: - - bc0bc7d5-9f7b-4db5-a870-49e109406e7b - content-type: - - application/json; charset=utf-8 - date: - - Wed, 06 Oct 2021 20:50:38 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '7' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?showStats=True - response: - body: - string: '{"jobId":"d831787b-f1e8-46cc-a304-4e0369bbeeb4","lastUpdateDateTime":"2021-10-06T20:50:40Z","createdDateTime":"2021-10-06T20:50:28Z","expirationDateTime":"2021-10-07T20:50:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:40.6943429Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:30Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: apim-request-id: - - b6d617ce-6e0f-4459-af3b-60c8799b0c3a + - 818d7cd8-9e2e-4139-975b-32823cab817d content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:43 GMT + - Thu, 07 Oct 2021 23:42:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -183,7 +130,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '242' + - '8' status: code: 200 message: OK @@ -199,10 +146,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"d831787b-f1e8-46cc-a304-4e0369bbeeb4","lastUpdateDateTime":"2021-10-06T20:50:49Z","createdDateTime":"2021-10-06T20:50:28Z","expirationDateTime":"2021-10-07T20:50:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:46.9274471Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:40.6943429Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:38Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -222,7 +169,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:48.9204258Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -242,14 +189,14 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?$skip=20&$top=5&showStats=True"}' + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - a686a334-58ff-4157-a5b7-9a0e2764063f + - dcd2cf61-6fe6-4356-ba27-0d3becd9aea8 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:49 GMT + - Thu, 07 Oct 2021 23:42:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -257,7 +204,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '804' + - '724' status: code: 200 message: OK @@ -273,10 +220,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"d831787b-f1e8-46cc-a304-4e0369bbeeb4","lastUpdateDateTime":"2021-10-06T20:50:53Z","createdDateTime":"2021-10-06T20:50:28Z","expirationDateTime":"2021-10-07T20:50:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:46.9274471Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:53.499943Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:40.6943429Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:42Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -296,7 +243,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:48.9204258Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -316,7 +263,7 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:50.4933101Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:42.2445153Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -336,14 +283,14 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 83ad83a8-15ed-430b-be05-4afaf0b0c8c5 + - 656ecef9-7bf4-415b-96b1-27b751f03dc8 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:50:57 GMT + - Thu, 07 Oct 2021 23:42:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -351,7 +298,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1749' + - '1068' status: code: 200 message: OK @@ -367,10 +314,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"d831787b-f1e8-46cc-a304-4e0369bbeeb4","lastUpdateDateTime":"2021-10-06T20:50:53Z","createdDateTime":"2021-10-06T20:50:28Z","expirationDateTime":"2021-10-07T20:50:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:46.9274471Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:53.499943Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:40.6943429Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:48Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:48.3752273Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -390,7 +337,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:48.9204258Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -410,7 +357,7 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:50.4933101Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:42.2445153Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -430,14 +377,14 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - e1ce3627-c437-478a-bd28-39ccbb6c556c + - b23fb705-13aa-4d64-b447-71f2cc0ac1c2 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:03 GMT + - Thu, 07 Oct 2021 23:42:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -445,7 +392,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1122' + - '1306' status: code: 200 message: OK @@ -461,10 +408,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"d831787b-f1e8-46cc-a304-4e0369bbeeb4","lastUpdateDateTime":"2021-10-06T20:51:05Z","createdDateTime":"2021-10-06T20:50:28Z","expirationDateTime":"2021-10-07T20:50:28Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:46.9274471Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:53.499943Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:40.6943429Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:53Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:48.3752273Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -484,7 +431,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:05.52609Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:48.9204258Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:53.6036308Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -504,7 +451,7 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:50.4933101Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:42.2445153Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -524,14 +471,14 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 012d615a-761c-4bab-b4bf-5c68b4d5e627 + - bdefdf20-586f-4b09-b80f-57314d7f228a content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:09 GMT + - Thu, 07 Oct 2021 23:42:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -539,7 +486,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1817' + - '1496' status: code: 200 message: OK @@ -555,20 +502,20 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d831787b-f1e8-46cc-a304-4e0369bbeeb4?showStats=true&$top=5&$skip=20 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=true&$top=5&$skip=20 response: body: - string: '{"jobId":"d831787b-f1e8-46cc-a304-4e0369bbeeb4","lastUpdateDateTime":"2021-10-06T20:51:05Z","createdDateTime":"2021-10-06T20:50:28Z","expirationDateTime":"2021-10-07T20:50:28Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:46.9274471Z","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:53.499943Z","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:40.6943429Z","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:53Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:48.3752273Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"redactedText":"hello world","id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:05.52609Z","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:48.9204258Z","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","keyPhrases":["hello + world","id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:53.6036308Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"21","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"22","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"23","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"24","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:50:50.4933101Z","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:42.2445153Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"21","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"22","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"23","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -576,11 +523,11 @@ interactions: world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 30c62786-f01f-4749-bb5c-335495a3e83d + - f20359d4-fd18-45df-a59f-53e7946770a2 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:10 GMT + - Thu, 07 Oct 2021 23:43:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -588,7 +535,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '556' + - '653' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml index bd1bad70a978..bacac50ef57c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": "en"}, {"id": "0", "text": ":(", "language": "en"}, {"id": "19", "text": ":P", "language": "en"}, {"id": "1", "text": ":D", "language": "en"}]}}' @@ -22,7 +23,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1148' + - '1250' Content-Type: - application/json User-Agent: @@ -34,11 +35,11 @@ interactions: string: '' headers: apim-request-id: - - 315f1d38-64ce-482a-86bf-75c0fdd7c595 + - 8c018c8b-5265-4521-bd70-89e341154ab2 date: - - Wed, 06 Oct 2021 20:51:11 GMT + - Thu, 07 Oct 2021 23:43:01 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2437e399-0ba3-4e0a-b675-b9b02bf23ba2 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '603' + - '686' status: code: 202 message: Accepted @@ -62,17 +63,51 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2437e399-0ba3-4e0a-b675-b9b02bf23ba2 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 + response: + body: + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:02Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + headers: + apim-request-id: + - 8bba499d-e94a-4eb4-8107-55a13de63617 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:43:06 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '8' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 response: body: - string: '{"jobId":"2437e399-0ba3-4e0a-b675-b9b02bf23ba2","lastUpdateDateTime":"2021-10-06T20:51:15Z","createdDateTime":"2021-10-06T20:51:11Z","expirationDateTime":"2021-10-07T20:51:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:15.1517347Z","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:12Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:12.3512285Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 8eb6b134-719e-47aa-96f2-9e5f809534ff + - 1b9b52e5-9aa4-4632-a61c-af3f732f84b5 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:16 GMT + - Thu, 07 Oct 2021 23:43:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -80,7 +115,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '88' + - '241' status: code: 200 message: OK @@ -96,17 +131,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2437e399-0ba3-4e0a-b675-b9b02bf23ba2 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 response: body: - string: '{"jobId":"2437e399-0ba3-4e0a-b675-b9b02bf23ba2","lastUpdateDateTime":"2021-10-06T20:51:22Z","createdDateTime":"2021-10-06T20:51:11Z","expirationDateTime":"2021-10-07T20:51:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:22.1865514Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:15.1517347Z","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:17Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7495057Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:12.3512285Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7193598Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:17.065272Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - c65a5738-42e1-4db6-9854-45a32de6f798 + - bfbe953c-90ee-4f68-8b49-34ae23cc4f7f content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:22 GMT + - Thu, 07 Oct 2021 23:43:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -114,7 +149,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '204' + - '774' status: code: 200 message: OK @@ -130,17 +165,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2437e399-0ba3-4e0a-b675-b9b02bf23ba2 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 response: body: - string: '{"jobId":"2437e399-0ba3-4e0a-b675-b9b02bf23ba2","lastUpdateDateTime":"2021-10-06T20:51:26Z","createdDateTime":"2021-10-06T20:51:11Z","expirationDateTime":"2021-10-07T20:51:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:26.2167699Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:22.1865514Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:15.1517347Z","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:26.1990604Z","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:22.5224326Z","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:21Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7495057Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:12.3512285Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7193598Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:21.9574989Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:17.065272Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 3687f178-d873-40fc-8024-f9ff82d9ce30 + - 69cc4ad6-27d5-49c0-b807-04558d936835 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:27 GMT + - Thu, 07 Oct 2021 23:43:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -148,7 +183,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '549' + - '385' status: code: 200 message: OK @@ -164,17 +199,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2437e399-0ba3-4e0a-b675-b9b02bf23ba2 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 response: body: - string: '{"jobId":"2437e399-0ba3-4e0a-b675-b9b02bf23ba2","lastUpdateDateTime":"2021-10-06T20:51:31Z","createdDateTime":"2021-10-06T20:51:11Z","expirationDateTime":"2021-10-07T20:51:11Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:26.2167699Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:22.1865514Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:15.1517347Z","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:31.0575176Z","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:26.1990604Z","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:22.5224326Z","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:26Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7495057Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:12.3512285Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7193598Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:21.9574989Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:17.065272Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:26.807498Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - a56d2c28-142a-458a-be86-e1e235d1647d + - d4ca067b-f737-449d-8a16-638d47255f14 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:33 GMT + - Thu, 07 Oct 2021 23:43:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -182,7 +217,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '837' + - '498' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml index ddc04d6f434b..08d3e8532764 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml @@ -1,14 +1,14 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": - []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the - hotel we stayed at.", "language": "tr"}, {"id": "2", "text": "I did not like - the hotel we stayed at.", "language": "en"}]}}' + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false, "opinionMining": false}, "taskName": "0"}], "extractiveSummarizationTasks": + [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], + "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "I did not like the hotel we stayed at.", "language": "tr"}, {"id": + "2", "text": "I did not like the hotel we stayed at.", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -17,7 +17,7 @@ interactions: Connection: - keep-alive Content-Length: - - '703' + - '737' Content-Type: - application/json User-Agent: @@ -29,11 +29,11 @@ interactions: string: '' headers: apim-request-id: - - 15df1027-2286-4e3a-bf6b-8e74d96ba8fe + - 2c80ce03-68fb-446e-b63d-da9c6d758b38 date: - - Wed, 06 Oct 2021 20:51:34 GMT + - Thu, 07 Oct 2021 23:43:29 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6299b261-9df1-49e0-bb50-22718e8aff67 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '290' + - '260' status: code: 202 message: Accepted @@ -57,17 +57,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6299b261-9df1-49e0-bb50-22718e8aff67 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 response: body: - string: '{"jobId":"6299b261-9df1-49e0-bb50-22718e8aff67","lastUpdateDateTime":"2021-10-06T20:51:34Z","createdDateTime":"2021-10-06T20:51:34Z","expirationDateTime":"2021-10-07T20:51:34Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:30Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' headers: apim-request-id: - - f96e17a6-d36a-4ba9-9f65-931466ccb2df + - 3843786a-a758-47ea-8a9c-13b74293052e content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:39 GMT + - Thu, 07 Oct 2021 23:43:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -75,7 +75,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '10' status: code: 200 message: OK @@ -91,21 +91,21 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6299b261-9df1-49e0-bb50-22718e8aff67 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 response: body: - string: '{"jobId":"6299b261-9df1-49e0-bb50-22718e8aff67","lastUpdateDateTime":"2021-10-06T20:51:44Z","createdDateTime":"2021-10-06T20:51:34Z","expirationDateTime":"2021-10-07T20:51:34Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:44.3028321Z","state":"succeeded","results":{"documents":[{"redactedText":"I + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:37Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:37.3152811Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' headers: apim-request-id: - - 1c6788d0-5157-4142-8671-b285f3338dda + - 0b4a118a-7ac8-45f9-a2da-3e629c7100d6 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:44 GMT + - Thu, 07 Oct 2021 23:43:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -113,7 +113,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '69' + - '82' status: code: 200 message: OK @@ -129,21 +129,21 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6299b261-9df1-49e0-bb50-22718e8aff67 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 response: body: - string: '{"jobId":"6299b261-9df1-49e0-bb50-22718e8aff67","lastUpdateDateTime":"2021-10-06T20:51:44Z","createdDateTime":"2021-10-06T20:51:34Z","expirationDateTime":"2021-10-07T20:51:34Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:44.3028321Z","state":"succeeded","results":{"documents":[{"redactedText":"I + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:37Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:37.3152811Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' headers: apim-request-id: - - e349f0ef-2414-429f-bd15-4e4172d92677 + - 6eb85911-2b68-49c8-897a-7875de7eb210 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:49 GMT + - Thu, 07 Oct 2021 23:43:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -151,7 +151,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '79' + - '118' status: code: 200 message: OK @@ -167,23 +167,61 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6299b261-9df1-49e0-bb50-22718e8aff67 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 response: body: - string: '{"jobId":"6299b261-9df1-49e0-bb50-22718e8aff67","lastUpdateDateTime":"2021-10-06T20:51:53Z","createdDateTime":"2021-10-06T20:51:34Z","expirationDateTime":"2021-10-07T20:51:34Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:44.3028321Z","state":"succeeded","results":{"documents":[{"redactedText":"I + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:37Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:37.3152811Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:53.657923Z","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - 356a38f2-01f4-4668-8455-71fd3d092f5b + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:43:50 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '70' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 + response: + body: + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:54Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:37.3152811Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:54.8484842Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - a9851f14-e890-40a4-9f0e-d46dd331b92d + - 836f6963-ac3b-432d-ac32-9d4217108f05 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:51:55 GMT + - Thu, 07 Oct 2021 23:43:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -191,7 +229,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '135' + - '199' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml index 144b52411442..e621dd6fcfd6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml @@ -1,8 +1,8 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "Test passing cls to @@ -15,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '522' + - '539' Content-Type: - application/json User-Agent: @@ -27,11 +27,11 @@ interactions: string: '' headers: apim-request-id: - - 196e043f-5de5-4c4b-a5c7-101b040ae27f + - bbd141a5-b8fb-49f5-bdfa-be382bcdea67 date: - - Wed, 06 Oct 2021 20:51:55 GMT + - Thu, 07 Oct 2021 23:43:56 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/aaa9a729-af62-4628-80fb-0ad8f7bb2bdb + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7c259102-270e-4f34-af9d-130c44782743 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '164' + - '544' status: code: 202 message: Accepted @@ -55,17 +55,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/aaa9a729-af62-4628-80fb-0ad8f7bb2bdb + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7c259102-270e-4f34-af9d-130c44782743 response: body: - string: '{"jobId":"aaa9a729-af62-4628-80fb-0ad8f7bb2bdb","lastUpdateDateTime":"2021-10-06T20:51:58Z","createdDateTime":"2021-10-06T20:51:55Z","expirationDateTime":"2021-10-07T20:51:55Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:51:58.8525775Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"7c259102-270e-4f34-af9d-130c44782743","lastUpdateDateTime":"2021-10-07T23:43:58Z","createdDateTime":"2021-10-07T23:43:56Z","expirationDateTime":"2021-10-08T23:43:56Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:58.4583892Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 1a48722d-8d66-4aca-9995-0efdf21bce0a + - af8e5480-1c89-4250-ab36-66401649aa83 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:00 GMT + - Thu, 07 Oct 2021 23:44:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -73,7 +73,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '60' + - '87' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml index 8376e5fb2ca7..d7759c249ebd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml @@ -2,14 +2,15 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": true, "piiCategories": ["USSocialSecurityNumber", - "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], - "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "2", "text": - "Your ABA number - 111000025 - is the first 9 digits in the lower left hand - corner of your personal check.", "language": "en"}, {"id": "3", "text": "Is - 998.214.865-68 your Brazilian CPF number?", "language": "en"}]}}' + "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}, "taskName": "0"}], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "My SSN is 859-98-0987.", + "language": "en"}, {"id": "2", "text": "Your ABA number - 111000025 - is the + first 9 digits in the lower left hand corner of your personal check.", "language": + "en"}, {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": + "en"}]}}' headers: Accept: - application/json, text/json @@ -18,7 +19,7 @@ interactions: Connection: - keep-alive Content-Length: - - '815' + - '832' Content-Type: - application/json User-Agent: @@ -30,11 +31,11 @@ interactions: string: '' headers: apim-request-id: - - 1889729c-a6cc-44e6-9ebc-f6dfe9e9182b + - 64f413a4-4665-4446-9459-4a62ad36fa0f date: - - Wed, 06 Oct 2021 20:52:00 GMT + - Thu, 07 Oct 2021 23:44:01 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/51b3c06c-5e48-4757-b901-2c57c3faf90b + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e399d85d-e759-425e-8a90-e362bfef6e01 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '241' + - '188' status: code: 202 message: Accepted @@ -58,55 +59,21 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/51b3c06c-5e48-4757-b901-2c57c3faf90b + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e399d85d-e759-425e-8a90-e362bfef6e01 response: body: - string: '{"jobId":"51b3c06c-5e48-4757-b901-2c57c3faf90b","lastUpdateDateTime":"2021-10-06T20:52:01Z","createdDateTime":"2021-10-06T20:52:01Z","expirationDateTime":"2021-10-07T20:52:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - e5d0a267-0fa9-4711-9c27-31905b05a1b7 - content-type: - - application/json; charset=utf-8 - date: - - Wed, 06 Oct 2021 20:52:06 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '9' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/51b3c06c-5e48-4757-b901-2c57c3faf90b - response: - body: - string: '{"jobId":"51b3c06c-5e48-4757-b901-2c57c3faf90b","lastUpdateDateTime":"2021-10-06T20:52:09Z","createdDateTime":"2021-10-06T20:52:01Z","expirationDateTime":"2021-10-07T20:52:01Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:52:09.0178727Z","state":"succeeded","results":{"documents":[{"redactedText":"My + string: '{"jobId":"e399d85d-e759-425e-8a90-e362bfef6e01","lastUpdateDateTime":"2021-10-07T23:44:04Z","createdDateTime":"2021-10-07T23:44:02Z","expirationDateTime":"2021-10-08T23:44:02Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:04.7479419Z","taskName":"0","state":"succeeded","results":{"documents":[{"redactedText":"My SSN is ***********.","id":"1","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"2","entities":[{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: apim-request-id: - - f80e9402-2447-4807-bb3d-05a7b7763814 + - f256aafa-ac27-4e55-8caf-0428e49563fb content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:11 GMT + - Thu, 07 Oct 2021 23:44:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -114,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '75' + - '311' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml index 092ccb6478ab..8df599483259 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml @@ -1,8 +1,8 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": @@ -15,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '497' + - '514' Content-Type: - application/json User-Agent: @@ -27,11 +27,11 @@ interactions: string: '' headers: apim-request-id: - - be893860-ecb6-4889-bf86-519b4ae4465c + - 83735c70-da43-4928-bc7b-1d8a98a94015 date: - - Wed, 06 Oct 2021 20:52:11 GMT + - Thu, 07 Oct 2021 23:44:07 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1130ffd-b70d-48b8-83ef-88e505ea6e23 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9b0246c1-697c-4fcb-addd-60662039ff35 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '133' + - '148' status: code: 202 message: Accepted @@ -55,17 +55,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1130ffd-b70d-48b8-83ef-88e505ea6e23?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9b0246c1-697c-4fcb-addd-60662039ff35?showStats=True response: body: - string: '{"jobId":"b1130ffd-b70d-48b8-83ef-88e505ea6e23","lastUpdateDateTime":"2021-10-06T20:52:12Z","createdDateTime":"2021-10-06T20:52:11Z","expirationDateTime":"2021-10-07T20:52:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"9b0246c1-697c-4fcb-addd-60662039ff35","lastUpdateDateTime":"2021-10-07T23:44:10Z","createdDateTime":"2021-10-07T23:44:08Z","expirationDateTime":"2021-10-08T23:44:08Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:10.0005759Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - db3dbe8a-55c5-4664-97e7-4794eac3c578 + - 531b9318-ecb3-4da3-a3ee-8f7cfad32a08 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:16 GMT + - Thu, 07 Oct 2021 23:44:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -73,41 +73,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1130ffd-b70d-48b8-83ef-88e505ea6e23?showStats=True - response: - body: - string: '{"jobId":"b1130ffd-b70d-48b8-83ef-88e505ea6e23","lastUpdateDateTime":"2021-10-06T20:52:19Z","createdDateTime":"2021-10-06T20:52:11Z","expirationDateTime":"2021-10-07T20:52:11Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:52:19.7279064Z","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' - headers: - apim-request-id: - - 084f2d49-b12c-4e4c-934e-ed295f69f0a9 - content-type: - - application/json; charset=utf-8 - date: - - Wed, 06 Oct 2021 20:52:22 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '88' + - '75' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_recognize_custom_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_recognize_custom_entities.yaml index 4ffd8d3b25a5..2ac660b12d05 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_recognize_custom_entities.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_recognize_custom_entities.yaml @@ -4,7 +4,7 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [{"parameters": {"project-name": "textanalytics_custom_entities_project_name", "deployment-name": - "textanalytics_custom_entities_project_name"}}], "customSingleClassificationTasks": + "textanalytics_custom_entities_project_name"}, "taskName": "0"}], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal @@ -23,7 +23,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1179' + - '1196' Content-Type: - application/json User-Agent: @@ -35,11 +35,11 @@ interactions: string: '' headers: apim-request-id: - - f1b594cb-cb86-4802-a369-a9f14fe418d9 + - 28f60fbf-2652-416e-8794-6b852a231568 date: - - Wed, 06 Oct 2021 20:52:23 GMT + - Thu, 07 Oct 2021 23:44:14 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bb27e9dc-5adb-4fa7-88d5-513bf98b0071 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/27fd50ac-754f-4c31-9f5e-ba252d89f20c strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -47,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '532' + - '763' status: code: 202 message: Accepted @@ -63,10 +63,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bb27e9dc-5adb-4fa7-88d5-513bf98b0071?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/27fd50ac-754f-4c31-9f5e-ba252d89f20c?showStats=True response: body: - string: '{"jobId":"bb27e9dc-5adb-4fa7-88d5-513bf98b0071","lastUpdateDateTime":"2021-10-06T20:52:25Z","createdDateTime":"2021-10-06T20:52:22Z","expirationDateTime":"2021-10-07T20:52:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:52:25.682466Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past + string: '{"jobId":"27fd50ac-754f-4c31-9f5e-ba252d89f20c","lastUpdateDateTime":"2021-10-07T23:44:18Z","createdDateTime":"2021-10-07T23:44:14Z","expirationDateTime":"2021-10-08T23:44:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:18.3570988Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past six years","category":"timeRange","offset":156,"length":14,"confidenceScore":0.54}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David Schmidt","category":"artist","offset":0,"length":13,"confidenceScore":0.8},{"text":"Food","category":"service","offset":38,"length":4,"confidenceScore":0.03},{"text":"Safety","category":"geographic_poi","offset":43,"length":6,"confidenceScore":0.06},{"text":"International Food","category":"geographic_poi","offset":51,"length":18,"confidenceScore":0.07},{"text":"IFIC","category":"geographic_poi","offset":91,"length":4,"confidenceScore":0.05},{"text":"Information @@ -74,11 +74,11 @@ interactions: D.C.","category":"state","offset":98,"length":16,"confidenceScore":0.49}],"warnings":[]},{"id":"3","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"facility","offset":28,"length":6,"confidenceScore":0.57},{"text":"restaurant","category":"restaurant_type","offset":35,"length":10,"confidenceScore":0.95},{"text":"China","category":"country","offset":49,"length":5,"confidenceScore":0.48},{"text":"music","category":"music_item","offset":78,"length":5,"confidenceScore":0.63},{"text":"my","category":"playlist_owner","offset":110,"length":2,"confidenceScore":0.84}],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}]}}' headers: apim-request-id: - - d0323e32-f34a-4e81-9171-a35ec99d6249 + - c13741e8-429e-4a22-822b-9729324ec4a4 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:28 GMT + - Thu, 07 Oct 2021 23:44:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml index 2527fbc0b473..3a6038ff393b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - true}}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + true}, "taskName": "0"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "It has a sleek premium aluminum design that makes it beautiful to look at.", "language": "en"}, {"id": @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '627' + - '644' Content-Type: - application/json User-Agent: @@ -28,11 +28,11 @@ interactions: string: '' headers: apim-request-id: - - 28633344-7498-4dc7-b24e-0816a1a52b15 + - 08c0dae7-ae9e-4c42-ae69-c691d28f60bd date: - - Wed, 06 Oct 2021 20:52:27 GMT + - Thu, 07 Oct 2021 23:44:19 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/814b7608-58e6-4491-bff2-94def31afbd3 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '187' + - '327' status: code: 202 message: Accepted @@ -56,17 +56,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/814b7608-58e6-4491-bff2-94def31afbd3?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True response: body: - string: '{"jobId":"814b7608-58e6-4491-bff2-94def31afbd3","lastUpdateDateTime":"2021-10-06T20:52:28Z","createdDateTime":"2021-10-06T20:52:28Z","expirationDateTime":"2021-10-07T20:52:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:20Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 7cf93b58-d9f4-40cb-8f1b-b9d313bf399c + - 76fccd8f-c564-4f0c-876e-706634cba873 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:33 GMT + - Thu, 07 Oct 2021 23:44:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -74,7 +74,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '9' status: code: 200 message: OK @@ -90,17 +90,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/814b7608-58e6-4491-bff2-94def31afbd3?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True response: body: - string: '{"jobId":"814b7608-58e6-4491-bff2-94def31afbd3","lastUpdateDateTime":"2021-10-06T20:52:28Z","createdDateTime":"2021-10-06T20:52:28Z","expirationDateTime":"2021-10-07T20:52:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:20Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 04b70896-a1ce-45eb-b8d1-2389d8938810 + - 1c547caf-bea0-412f-b727-6087953e9791 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:37 GMT + - Thu, 07 Oct 2021 23:44:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -108,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '29' status: code: 200 message: OK @@ -124,17 +124,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/814b7608-58e6-4491-bff2-94def31afbd3?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True response: body: - string: '{"jobId":"814b7608-58e6-4491-bff2-94def31afbd3","lastUpdateDateTime":"2021-10-06T20:52:28Z","createdDateTime":"2021-10-06T20:52:28Z","expirationDateTime":"2021-10-07T20:52:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:20Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 81a0277a-7c51-4360-a176-afdb07c44058 + - 6300e29e-064a-4b8a-9135-097bda662c94 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:43 GMT + - Thu, 07 Oct 2021 23:44:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '12' status: code: 200 message: OK @@ -158,17 +158,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/814b7608-58e6-4491-bff2-94def31afbd3?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True response: body: - string: '{"jobId":"814b7608-58e6-4491-bff2-94def31afbd3","lastUpdateDateTime":"2021-10-06T20:52:28Z","createdDateTime":"2021-10-06T20:52:28Z","expirationDateTime":"2021-10-07T20:52:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:20Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - d9553a5d-8e80-4185-b27b-fcf50c967210 + - 2063a48f-4ac4-4888-a07d-b65aefb5c4f0 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:49 GMT + - Thu, 07 Oct 2021 23:44:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -176,7 +176,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '15' status: code: 200 message: OK @@ -192,19 +192,19 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/814b7608-58e6-4491-bff2-94def31afbd3?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True response: body: - string: '{"jobId":"814b7608-58e6-4491-bff2-94def31afbd3","lastUpdateDateTime":"2021-10-06T20:52:53Z","createdDateTime":"2021-10-06T20:52:28Z","expirationDateTime":"2021-10-07T20:52:28Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:52:53.510634Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:42Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:42.3690987Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]},{"id":"1","sentiment":"negative","statistics":{"charactersCount":32,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - daceaa92-4559-4c23-8787-24504482c319 + - fb9034a6-abcf-49e4-9847-e131c9ffac5b content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:52:53 GMT + - Thu, 07 Oct 2021 23:44:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -212,7 +212,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '155' + - '140' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml index 9ea7620b2190..ee884449d539 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": "en"}, {"id": "0", "text": ":(", "language": "en"}, {"id": "19", "text": ":P", "language": "en"}, {"id": "1", "text": ":D", "language": "en"}]}}' @@ -22,7 +23,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1148' + - '1250' Content-Type: - application/json User-Agent: @@ -34,11 +35,11 @@ interactions: string: '' headers: apim-request-id: - - 0536751d-40e7-43bc-b248-1b7cdb2b6928 + - e58ad77a-99f2-437f-9adf-f21d50c66cce date: - - Wed, 06 Oct 2021 20:52:54 GMT + - Thu, 07 Oct 2021 23:44:46 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d9223b7f-ca5a-42e9-b4c5-40e110d74e70 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '727' + - '603' status: code: 202 message: Accepted @@ -62,17 +63,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d9223b7f-ca5a-42e9-b4c5-40e110d74e70?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True response: body: - string: '{"jobId":"d9223b7f-ca5a-42e9-b4c5-40e110d74e70","lastUpdateDateTime":"2021-10-06T20:52:55Z","createdDateTime":"2021-10-06T20:52:54Z","expirationDateTime":"2021-10-07T20:52:54Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:44:46Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: apim-request-id: - - e93702f5-c848-43f2-9ca5-27698779b68a + - a8671373-ce85-4c69-8b91-7d279bf3c5b2 content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:53:00 GMT + - Thu, 07 Oct 2021 23:44:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -96,17 +97,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d9223b7f-ca5a-42e9-b4c5-40e110d74e70?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True response: body: - string: '{"jobId":"d9223b7f-ca5a-42e9-b4c5-40e110d74e70","lastUpdateDateTime":"2021-10-06T20:53:03Z","createdDateTime":"2021-10-06T20:52:54Z","expirationDateTime":"2021-10-07T20:52:54Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:03.1988297Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:03.488684Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:44:56Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:54.8394718Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:56.9054048Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - ecf1c7c8-09d5-428e-afcf-85f7f38edf1e + - d04e2883-4e87-48b4-ac7a-3541932bf82c content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:53:05 GMT + - Thu, 07 Oct 2021 23:44:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -114,7 +115,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '254' + - '176' status: code: 200 message: OK @@ -130,17 +131,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d9223b7f-ca5a-42e9-b4c5-40e110d74e70?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True response: body: - string: '{"jobId":"d9223b7f-ca5a-42e9-b4c5-40e110d74e70","lastUpdateDateTime":"2021-10-06T20:53:09Z","createdDateTime":"2021-10-06T20:52:54Z","expirationDateTime":"2021-10-07T20:52:54Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.216333Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:03.1988297Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:03.488684Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.6046944Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.4970122Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:45:00Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:00.815066Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:54.8394718Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:56.9054048Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - f6319fbf-8de5-45ae-86b6-0d4da5d0cf09 + - fa124770-a332-40c1-b603-ecc62162c9db content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:53:10 GMT + - Thu, 07 Oct 2021 23:45:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -148,7 +149,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '391' + - '296' status: code: 200 message: OK @@ -164,17 +165,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d9223b7f-ca5a-42e9-b4c5-40e110d74e70?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True response: body: - string: '{"jobId":"d9223b7f-ca5a-42e9-b4c5-40e110d74e70","lastUpdateDateTime":"2021-10-06T20:53:09Z","createdDateTime":"2021-10-06T20:52:54Z","expirationDateTime":"2021-10-07T20:52:54Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.216333Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:03.1988297Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:03.488684Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.6046944Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.4970122Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:45:07Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:00.815066Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:54.8394718Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:07.4710598Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:56.9054048Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - be99cd69-33e9-42d4-ada4-e79ffdc43218 + - 7f6236b7-4bbf-4501-ae69-26ab0abdc91e content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:53:16 GMT + - Thu, 07 Oct 2021 23:45:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -182,7 +183,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '395' + - '310' status: code: 200 message: OK @@ -198,17 +199,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/d9223b7f-ca5a-42e9-b4c5-40e110d74e70?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True response: body: - string: '{"jobId":"d9223b7f-ca5a-42e9-b4c5-40e110d74e70","lastUpdateDateTime":"2021-10-06T20:53:17Z","createdDateTime":"2021-10-06T20:52:54Z","expirationDateTime":"2021-10-07T20:52:54Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.216333Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:03.1988297Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:03.488684Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.6046944Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:09.4970122Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:17.3904208Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:45:12Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:00.815066Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:12.0977615Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:54.8394718Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:07.4710598Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:56.9054048Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:10.2728918Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - ec37c7d2-aa44-4b66-9359-0aa6f8aec66c + - 7b76b088-ed01-448b-bcf5-31af08eb8c5e content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:53:21 GMT + - Thu, 07 Oct 2021 23:45:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -216,7 +217,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '536' + - '522' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_single_category_classify.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_single_category_classify.yaml index 0272a23209e9..23aa00d1b814 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_single_category_classify.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_single_category_classify.yaml @@ -4,17 +4,17 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [{"parameters": {"project-name": "single_category_classify_project_name", - "deployment-name": "single_category_classify_project_name"}}], "customMultiClassificationTasks": - []}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report by - the Government Accountability Office (GAO) found that the dramatic increase - in oil and natural gas development on federal lands over the past six years - has stretched the staff of the BLM to a point that it has been unable to meet - its environmental protection responsibilities.", "language": "en"}, {"id": "2", - "text": "David Schmidt, senior vice president--Food Safety, International Food - Information Council (IFIC), Washington, D.C., discussed the physical activity - component.", "language": "en"}, {"id": "3", "text": "I need a reservation for - an indoor restaurant in China. Please don''t stop the music. Play music and - add it to my playlist", "language": "en"}]}}' + "deployment-name": "single_category_classify_project_name"}, "taskName": "0"}], + "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food + Safety, International Food Information Council (IFIC), Washington, D.C., discussed + the physical activity component.", "language": "en"}, {"id": "3", "text": "I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -23,7 +23,7 @@ interactions: Connection: - keep-alive Content-Length: - - '1179' + - '1196' Content-Type: - application/json User-Agent: @@ -35,11 +35,11 @@ interactions: string: '' headers: apim-request-id: - - 399d6543-0686-4c2e-bfc7-9ea4b18af5c3 + - 0973987b-0b20-4fe8-b95a-d361f0e481f5 date: - - Wed, 06 Oct 2021 20:53:22 GMT + - Thu, 07 Oct 2021 23:45:14 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/47512b7b-67e4-4dbb-b695-dd671bfd7121 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/55f176a9-e2d9-469a-9629-31609def892c strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -47,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '363' + - '800' status: code: 202 message: Accepted @@ -63,17 +63,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/47512b7b-67e4-4dbb-b695-dd671bfd7121?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/55f176a9-e2d9-469a-9629-31609def892c?showStats=True response: body: - string: '{"jobId":"47512b7b-67e4-4dbb-b695-dd671bfd7121","lastUpdateDateTime":"2021-10-06T20:53:26Z","createdDateTime":"2021-10-06T20:53:22Z","expirationDateTime":"2021-10-07T20:53:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:26.4397374Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classification":{"category":"RateBook","confidenceScore":0.57},"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classification":{"category":"BookRestaurant","confidenceScore":1.0},"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}]}}' + string: '{"jobId":"55f176a9-e2d9-469a-9629-31609def892c","lastUpdateDateTime":"2021-10-07T23:45:15Z","createdDateTime":"2021-10-07T23:45:14Z","expirationDateTime":"2021-10-08T23:45:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:15.6282742Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classification":{"category":"RateBook","confidenceScore":0.57},"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classification":{"category":"BookRestaurant","confidenceScore":1.0},"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}]}}' headers: apim-request-id: - - c1a167aa-a5a3-41dc-89a2-abd045653510 + - cfc6675d-4d34-4f29-a93b-eefe1c74817b content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:53:27 GMT + - Thu, 07 Oct 2021 23:45:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '74' + - '94' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml index 07dc890a58ba..ed649cedd4b6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "input document", "language": "en"}, {"id": "1", "text": "input document", "language": "en"}, {"id": "2", "text": "input document", "language": "en"}, {"id": "3", "text": "input document", @@ -39,7 +40,7 @@ interactions: Connection: - keep-alive Content-Length: - - '2464' + - '2566' Content-Type: - application/json User-Agent: @@ -52,11 +53,11 @@ interactions: request contains too many records. Max 25 records are permitted."}}}' headers: apim-request-id: - - 62523718-cc08-48d8-b862-561b939807a8 + - 6d3e7500-71f7-401c-a5c1-41f1d2b03a6e content-type: - application/json; charset=utf-8 date: - - Wed, 06 Oct 2021 20:53:27 GMT + - Thu, 07 Oct 2021 23:45:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -64,7 +65,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_extract_summary_action.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_extract_summary_action.yaml index ae651217fece..e7b5d5224b41 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_extract_summary_action.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_extract_summary_action.yaml @@ -4,36 +4,36 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": - [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "The government of British Prime Minster Theresa May has been plunged - into turmoil with the resignation of two senior Cabinet ministers in a deep - split over her Brexit strategy. The Foreign Secretary Boris Johnson, quit on - Monday, hours after the resignation late on Sunday night of the minister in - charge of Brexit negotiations, David Davis. Their decision to leave the government - came three days after May appeared to have agreed a deal with herfractured Cabinet - on the UK''s post Brexit relationship with the EU. That plan is now in tatters - and her political future appears uncertain. May appeared in Parliament on Monday - afternoon to defend her plan, minutes after Downing Street confirmed the departure - of Johnson. May acknowledged the splits in her statement to MPs, saying of the - ministers who quit: We do not agree about the best way of delivering our shared - commitment to honoring the result of the referendum. The Prime Minister''s latest - plitical drama began late on Sunday night when Davis quit, declaring he could - not support May''s Brexit plan. He said it involved too close a relationship - with the EU and gave only an illusion of control being returned to the UK after - it left the EU. It seems to me we''re giving too much away, too easily, and - that''s a dangerous strategy at this time, Davis said in a BBC radio interview - Monday morning. Johnson''s resignation came Monday afternoon local time, just - before the Prime Minister was due to make a scheduled statement in Parliament. - This afternoon, the Prime Minister accepted the resignation of Boris Johnson - as Foreign Secretary, a statement from Downing Street said.", "language": "en"}, - {"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", "language": - "es"}]}}' + 3, "sortBy": "Offset"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "The government of British + Prime Minster Theresa May has been plunged into turmoil with the resignation + of two senior Cabinet ministers in a deep split over her Brexit strategy. The + Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation + late on Sunday night of the minister in charge of Brexit negotiations, David + Davis. Their decision to leave the government came three days after May appeared + to have agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship + with the EU. That plan is now in tatters and her political future appears uncertain. + May appeared in Parliament on Monday afternoon to defend her plan, minutes after + Downing Street confirmed the departure of Johnson. May acknowledged the splits + in her statement to MPs, saying of the ministers who quit: We do not agree about + the best way of delivering our shared commitment to honoring the result of the + referendum. The Prime Minister''s latest plitical drama began late on Sunday + night when Davis quit, declaring he could not support May''s Brexit plan. He + said it involved too close a relationship with the EU and gave only an illusion + of control being returned to the UK after it left the EU. It seems to me we''re + giving too much away, too easily, and that''s a dangerous strategy at this time, + Davis said in a BBC radio interview Monday morning. Johnson''s resignation came + Monday afternoon local time, just before the Prime Minister was due to make + a scheduled statement in Parliament. This afternoon, the Prime Minister accepted + the resignation of Boris Johnson as Foreign Secretary, a statement from Downing + Street said.", "language": "en"}, {"id": "2", "text": "Microsoft fue fundado + por Bill Gates y Paul Allen", "language": "es"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '2251' + - '2268' Content-Type: - application/json User-Agent: @@ -44,13 +44,13 @@ interactions: body: string: '' headers: - apim-request-id: 4a10b7ec-f18b-4626-a611-3db48ae44b35 - date: Wed, 06 Oct 2021 20:53:28 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c + apim-request-id: 306a16db-e160-4731-b3c5-9e3feb65ce95 + date: Thu, 07 Oct 2021 23:45:44 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '171' + x-envoy-upstream-service-time: '283' status: code: 202 message: Accepted @@ -61,76 +61,76 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True response: body: - string: '{"jobId":"fca55dbc-a702-47dd-be07-0cfe8dc29c9c","lastUpdateDateTime":"2021-10-06T20:53:29Z","createdDateTime":"2021-10-06T20:53:28Z","expirationDateTime":"2021-10-07T20:53:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"a9563c4c-c626-432e-96c7-9d5b5b54f6ac","lastUpdateDateTime":"2021-10-07T23:45:45Z","createdDateTime":"2021-10-07T23:45:44Z","expirationDateTime":"2021-10-08T23:45:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 07ecbc52-5860-4313-9e72-41ac2f33e3a1 + apim-request-id: ae658669-84d1-4403-ba2f-3a5db351e816 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:53:33 GMT + date: Thu, 07 Oct 2021 23:45:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True response: body: - string: '{"jobId":"fca55dbc-a702-47dd-be07-0cfe8dc29c9c","lastUpdateDateTime":"2021-10-06T20:53:29Z","createdDateTime":"2021-10-06T20:53:28Z","expirationDateTime":"2021-10-07T20:53:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"a9563c4c-c626-432e-96c7-9d5b5b54f6ac","lastUpdateDateTime":"2021-10-07T23:45:45Z","createdDateTime":"2021-10-07T23:45:44Z","expirationDateTime":"2021-10-08T23:45:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 99a3b0fa-0a45-4aa9-8506-e35ae7add989 + apim-request-id: 1248a855-eb53-4a4c-8c41-15d418b8f148 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:53:38 GMT + date: Thu, 07 Oct 2021 23:45:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True response: body: - string: '{"jobId":"fca55dbc-a702-47dd-be07-0cfe8dc29c9c","lastUpdateDateTime":"2021-10-06T20:53:29Z","createdDateTime":"2021-10-06T20:53:28Z","expirationDateTime":"2021-10-07T20:53:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"a9563c4c-c626-432e-96c7-9d5b5b54f6ac","lastUpdateDateTime":"2021-10-07T23:45:45Z","createdDateTime":"2021-10-07T23:45:44Z","expirationDateTime":"2021-10-08T23:45:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 837e36eb-17d6-4910-93cc-c5d34f388b4c + apim-request-id: 725588f4-f02a-4224-8c6c-0b9ce64f0732 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:53:42 GMT + date: Thu, 07 Oct 2021 23:46:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True response: body: - string: '{"jobId":"fca55dbc-a702-47dd-be07-0cfe8dc29c9c","lastUpdateDateTime":"2021-10-06T20:53:46Z","createdDateTime":"2021-10-06T20:53:28Z","expirationDateTime":"2021-10-07T20:53:28Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:53:46.9364354Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The + string: '{"jobId":"a9563c4c-c626-432e-96c7-9d5b5b54f6ac","lastUpdateDateTime":"2021-10-07T23:46:02Z","createdDateTime":"2021-10-07T23:45:44Z","expirationDateTime":"2021-10-08T23:45:44Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:02.866601Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The government of British Prime Minster Theresa May has been plunged into turmoil with the resignation of two senior Cabinet ministers in a deep split over her Brexit strategy.","rankScore":0.57,"offset":0,"length":176},{"text":"The @@ -142,15 +142,15 @@ interactions: the EU.","rankScore":0.47,"offset":342,"length":171}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"sentences":[{"text":"Microsoft fue fundado por Bill Gates y Paul Allen","rankScore":1.0,"offset":0,"length":49}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: - apim-request-id: 3be05e8b-6dcc-413a-8141-991bad1e9084 + apim-request-id: 9849b019-324e-47a5-8d89-07e2367af2d7 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:53:49 GMT + date: Thu, 07 Oct 2021 23:46:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '432' + x-envoy-upstream-service-time: '92' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fca55dbc-a702-47dd-be07-0cfe8dc29c9c?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml index 7271d27415ee..44ed310a6be2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml @@ -2,17 +2,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - false}}], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], - "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "Microsoft was founded by Bill Gates and Paul Allen", "language": - "en"}, {"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", - "language": "es"}]}}' + false}, "taskName": "0"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded by + Bill Gates and Paul Allen", "language": "en"}, {"id": "2", "text": "Microsoft + fue fundado por Bill Gates y Paul Allen", "language": "es"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '597' + - '614' Content-Type: - application/json User-Agent: @@ -23,13 +23,13 @@ interactions: body: string: '' headers: - apim-request-id: 570fed33-d597-4159-8bff-faae2a1023ac - date: Wed, 06 Oct 2021 20:53:49 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2 + apim-request-id: 3ef998f4-e5df-411e-9fdb-f25a751eece4 + date: Thu, 07 Oct 2021 23:46:05 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8f5133fc-0e42-49ff-bedb-775d0138bc7d strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '203' + x-envoy-upstream-service-time: '337' status: code: 202 message: Accepted @@ -40,110 +40,22 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8f5133fc-0e42-49ff-bedb-775d0138bc7d?showStats=True response: body: - string: '{"jobId":"c59a14f2-03f9-4df7-b4ec-12261c1682f2","lastUpdateDateTime":"2021-10-06T20:53:50Z","createdDateTime":"2021-10-06T20:53:49Z","expirationDateTime":"2021-10-07T20:53:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 9f3d65c1-d611-4a77-8e79-5c984e3e0a62 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:53:53 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True - response: - body: - string: '{"jobId":"c59a14f2-03f9-4df7-b4ec-12261c1682f2","lastUpdateDateTime":"2021-10-06T20:53:50Z","createdDateTime":"2021-10-06T20:53:49Z","expirationDateTime":"2021-10-07T20:53:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 8d9c0cca-5a26-463f-a6a0-235132439c46 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:53:59 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True - response: - body: - string: '{"jobId":"c59a14f2-03f9-4df7-b4ec-12261c1682f2","lastUpdateDateTime":"2021-10-06T20:53:50Z","createdDateTime":"2021-10-06T20:53:49Z","expirationDateTime":"2021-10-07T20:53:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 62897df8-38f9-4eb6-bf07-b734984959eb - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:04 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True - response: - body: - string: '{"jobId":"c59a14f2-03f9-4df7-b4ec-12261c1682f2","lastUpdateDateTime":"2021-10-06T20:53:50Z","createdDateTime":"2021-10-06T20:53:49Z","expirationDateTime":"2021-10-07T20:53:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: f0cfd8af-e15b-4476-b9a9-078651a44149 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:09 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True - response: - body: - string: '{"jobId":"c59a14f2-03f9-4df7-b4ec-12261c1682f2","lastUpdateDateTime":"2021-10-06T20:54:12Z","createdDateTime":"2021-10-06T20:53:49Z","expirationDateTime":"2021-10-07T20:53:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:54:12.3361867Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill + string: '{"jobId":"8f5133fc-0e42-49ff-bedb-775d0138bc7d","lastUpdateDateTime":"2021-10-07T23:46:07Z","createdDateTime":"2021-10-07T23:46:05Z","expirationDateTime":"2021-10-08T23:46:05Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:07.9109923Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 5a646a77-6c1f-4960-8b97-2da159426d4e + apim-request-id: f0d04397-56b6-4169-b5ee-9289d40a421f content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:14 GMT + date: Thu, 07 Oct 2021 23:46:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '172' + x-envoy-upstream-service-time: '74' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c59a14f2-03f9-4df7-b4ec-12261c1682f2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8f5133fc-0e42-49ff-bedb-775d0138bc7d?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml index 5530e95b34a0..ee767379e9eb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + false}, "taskName": "0"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded by Bill Gates and Paul Allen.", "language": "en"}, {"id": "2", "text": "I did @@ -14,7 +14,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '736' + - '753' Content-Type: - application/json User-Agent: @@ -25,13 +25,13 @@ interactions: body: string: '' headers: - apim-request-id: a35556aa-9f50-49b2-a0ea-17467a48ea26 - date: Wed, 06 Oct 2021 20:54:15 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2 + apim-request-id: 1ef9f8a9-71bd-4dd8-896e-c997e283d906 + date: Thu, 07 Oct 2021 23:46:10 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '272' + x-envoy-upstream-service-time: '319' status: code: 202 message: Accepted @@ -42,91 +42,135 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True response: body: - string: '{"jobId":"8335bde2-1f4c-42ed-959c-67eeaef7cbc2","lastUpdateDateTime":"2021-10-06T20:54:16Z","createdDateTime":"2021-10-06T20:54:15Z","expirationDateTime":"2021-10-07T20:54:15Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: eade7301-6134-4754-a80d-d547472cf878 + apim-request-id: 506a36c8-15aa-4aca-a579-b441db7947f3 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:19 GMT + date: Thu, 07 Oct 2021 23:46:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True response: body: - string: '{"jobId":"8335bde2-1f4c-42ed-959c-67eeaef7cbc2","lastUpdateDateTime":"2021-10-06T20:54:16Z","createdDateTime":"2021-10-06T20:54:15Z","expirationDateTime":"2021-10-07T20:54:15Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: c9ca0485-6d2e-46d3-9982-15c41718ef89 + apim-request-id: 5b15a57e-0dfd-4699-8913-3d9eb56eabc2 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:25 GMT + date: Thu, 07 Oct 2021 23:46:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True response: body: - string: '{"jobId":"8335bde2-1f4c-42ed-959c-67eeaef7cbc2","lastUpdateDateTime":"2021-10-06T20:54:16Z","createdDateTime":"2021-10-06T20:54:15Z","expirationDateTime":"2021-10-07T20:54:15Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 5e0eecb3-5242-4d23-b212-3b4f9adeb9a8 + apim-request-id: 0a52ede6-6c8e-48bf-b5a5-47dadfed104d content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:30 GMT + date: Thu, 07 Oct 2021 23:46:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True response: body: - string: '{"jobId":"8335bde2-1f4c-42ed-959c-67eeaef7cbc2","lastUpdateDateTime":"2021-10-06T20:54:34Z","createdDateTime":"2021-10-06T20:54:15Z","expirationDateTime":"2021-10-07T20:54:15Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:54:34.830593Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 0aca3639-f84a-4912-abe1-7e26bf7980ee + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:46:31 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True + response: + body: + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 285be7a3-03d4-4d87-89a4-3bc221792d81 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:46:36 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '28' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True + response: + body: + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:38Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:38.358597Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft was founded by Bill Gates and Paul Allen."}],"warnings":[]},{"id":"2","sentiment":"negative","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.22,"negative":0.77},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."},{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":39,"length":21,"text":"It was too expensive."}],"warnings":[]},{"id":"3","sentiment":"positive","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."},{"sentiment":"positive","confidenceScores":{"positive":0.96,"neutral":0.03,"negative":0.01},"offset":37,"length":23,"text":"I recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: aa86333d-d753-4bd8-aed5-253667899136 + apim-request-id: bee3825d-da55-456f-9225-df761def6f7c content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:35 GMT + date: Thu, 07 Oct 2021 23:46:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '85' + x-envoy-upstream-service-time: '301' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8335bde2-1f4c-42ed-959c-67eeaef7cbc2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml index e5cc47d3cf97..6beace08220c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml @@ -1,11 +1,11 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": - [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], - "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, - "analysisInput": {"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "0"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "1", "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", "language": "en"}, {"id": "2", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": @@ -14,7 +14,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '750' + - '767' Content-Type: - application/json User-Agent: @@ -25,13 +25,13 @@ interactions: body: string: '' headers: - apim-request-id: 58e0100f-5a2d-4b3d-a31f-555095da2ee9 - date: Wed, 06 Oct 2021 20:54:35 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/41aaf1a1-bba3-4409-8141-f599781d5a7b + apim-request-id: bd7eb535-7a43-4457-ba68-4b2414ee7fe9 + date: Thu, 07 Oct 2021 23:46:42 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7baf1033-498c-4e14-993e-4dd883b08473 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '243' + x-envoy-upstream-service-time: '257' status: code: 202 message: Accepted @@ -42,46 +42,24 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/41aaf1a1-bba3-4409-8141-f599781d5a7b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7baf1033-498c-4e14-993e-4dd883b08473?showStats=True response: body: - string: '{"jobId":"41aaf1a1-bba3-4409-8141-f599781d5a7b","lastUpdateDateTime":"2021-10-06T20:54:36Z","createdDateTime":"2021-10-06T20:54:36Z","expirationDateTime":"2021-10-07T20:54:36Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: fd0b482b-3bb8-4ba6-a154-df90e0895259 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:40 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/41aaf1a1-bba3-4409-8141-f599781d5a7b?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/41aaf1a1-bba3-4409-8141-f599781d5a7b?showStats=True - response: - body: - string: '{"jobId":"41aaf1a1-bba3-4409-8141-f599781d5a7b","lastUpdateDateTime":"2021-10-06T20:54:45Z","createdDateTime":"2021-10-06T20:54:36Z","expirationDateTime":"2021-10-07T20:54:36Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:54:45.3322945Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My + string: '{"jobId":"7baf1033-498c-4e14-993e-4dd883b08473","lastUpdateDateTime":"2021-10-07T23:46:44Z","createdDateTime":"2021-10-07T23:46:42Z","expirationDateTime":"2021-10-08T23:46:42Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:44.6202158Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My SSN is ***********.","id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: 99bbb1a9-1c4c-47c5-a4f8-77e3187e27c1 + apim-request-id: 457f5b33-2b11-4690-b1aa-ede212585e7b content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:45 GMT + date: Thu, 07 Oct 2021 23:46:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '81' + x-envoy-upstream-service-time: '144' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/41aaf1a1-bba3-4409-8141-f599781d5a7b?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/7baf1033-498c-4e14-993e-4dd883b08473?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml index 50686a35c822..3eebb82316c2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml @@ -1,8 +1,8 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded @@ -14,7 +14,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '797' + - '814' Content-Type: - application/json User-Agent: @@ -25,13 +25,13 @@ interactions: body: string: '' headers: - apim-request-id: f689db66-ef48-4fe1-a451-48cb6e219120 - date: Wed, 06 Oct 2021 20:54:46 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/470d5616-4661-4ba8-b962-04d1ea4bb778 + apim-request-id: ff57dc86-001f-43ef-a0e1-9168803e13a8 + date: Thu, 07 Oct 2021 23:46:47 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e117462-7cbe-4f33-ac1d-bd58c3ecf303 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '267' + x-envoy-upstream-service-time: '265' status: code: 202 message: Accepted @@ -42,10 +42,10 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/470d5616-4661-4ba8-b962-04d1ea4bb778?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e117462-7cbe-4f33-ac1d-bd58c3ecf303?showStats=True response: body: - string: '{"jobId":"470d5616-4661-4ba8-b962-04d1ea4bb778","lastUpdateDateTime":"2021-10-06T20:54:49Z","createdDateTime":"2021-10-06T20:54:47Z","expirationDateTime":"2021-10-07T20:54:47Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:54:49.259804Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill + string: '{"jobId":"9e117462-7cbe-4f33-ac1d-bd58c3ecf303","lastUpdateDateTime":"2021-10-07T23:46:50Z","createdDateTime":"2021-10-07T23:46:48Z","expirationDateTime":"2021-10-08T23:46:48Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:50.5522957Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"2","statistics":{"charactersCount":72,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -56,15 +56,15 @@ interactions: Gates","category":"Person","offset":37,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":52,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 1bed0454-01d3-44bc-bd96-d75d756f76a8 + apim-request-id: c5989d14-a32b-478b-800c-c2d1cef3b689 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:52 GMT + date: Thu, 07 Oct 2021 23:46:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '86' + x-envoy-upstream-service-time: '129' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/470d5616-4661-4ba8-b962-04d1ea4bb778?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9e117462-7cbe-4f33-ac1d-bd58c3ecf303?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml index b5a4126bc575..2e5b7a08d757 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml @@ -1,23 +1,24 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "This is written in English.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1036' + - '1138' Content-Type: - application/json User-Agent: @@ -30,10 +31,10 @@ interactions: key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 072e536f-55e4-448f-9083-b016d6bba2fb + apim-request-id: 49798a43-11bd-4847-a789-4486dd4cd4bd content-length: '224' content-type: application/json - date: Wed, 06 Oct 2021 20:54:51 GMT + date: Thu, 07 Oct 2021 23:46:53 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml index 125492f144ef..c00987601e23 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml @@ -1,22 +1,24 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": true, "stringIndexType": - "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": - [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I did not like the hotel we stayed at.", "language": "english"}]}}' + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": + [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the + hotel we stayed at.", "language": "english"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1034' + - '1136' Content-Type: - application/json User-Agent: @@ -29,13 +31,13 @@ interactions: task parameter value bad is not supported for model-version parameter for job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: - apim-request-id: dc336e32-a6e1-44df-885f-4c38e95cdedb + apim-request-id: 91f160a3-118d-42e7-a3d9-0c2749ebc5a7 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:51 GMT + date: Thu, 07 Oct 2021 23:46:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml index f41b747544ae..79bbc641e66c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml @@ -1,23 +1,24 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the hotel we stayed at.", "language": "english"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1037' + - '1139' Content-Type: - application/json User-Agent: @@ -30,13 +31,13 @@ interactions: task parameter value bad is not supported for model-version parameter for job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: - apim-request-id: 79c4c519-01f7-4029-8813-b4c623e8eff7 + apim-request-id: cba552dc-3c2e-4306-ac2e-4333329f0051 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:53 GMT + date: Thu, 07 Oct 2021 23:46:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '56' + x-envoy-upstream-service-time: '7' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml index 965de17e5127..b55398655a06 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml @@ -2,15 +2,15 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - false}}], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], - "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "0", "text": "", "language": "en"}]}}' + false}, "taskName": "0"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "0", "text": "", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '455' + - '472' Content-Type: - application/json User-Agent: @@ -22,13 +22,13 @@ interactions: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Document text is empty."}}}' headers: - apim-request-id: a48389a0-e25f-4a1b-ad42-9d9fbb71232a + apim-request-id: 144c4c76-208e-4dfd-aafc-5d29d4a351fa content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:52 GMT + date: Thu, 07 Oct 2021 23:46:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '12' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_custom_partial_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_custom_partial_error.yaml index d57dab5e4fbf..617e9c4b6152 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_custom_partial_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_custom_partial_error.yaml @@ -4,22 +4,22 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [{"parameters": {"project-name": "textanalytics_custom_entities_project_name", "deployment-name": - "textanalytics_custom_entities_project_name"}}], "customSingleClassificationTasks": + "textanalytics_custom_entities_project_name"}, "taskName": "2"}], "customSingleClassificationTasks": [{"parameters": {"project-name": "single_category_classify_project_name", "deployment-name": - "single_category_classify_project_name"}}], "customMultiClassificationTasks": + "single_category_classify_project_name"}, "taskName": "0"}], "customMultiClassificationTasks": [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", - "deployment-name": "textanalytics_multi_category_classify_project_name"}}]}, - "analysisInput": {"documents": [{"id": "1", "text": "A recent report by the - Government Accountability Office (GAO) found that the dramatic increase in oil - and natural gas development on federal lands over the past six years has stretched - the staff of the BLM to a point that it has been unable to meet its environmental - protection responsibilities.", "language": "en"}, {"id": "2", "text": "", "language": - "en"}]}}' + "deployment-name": "textanalytics_multi_category_classify_project_name"}, "taskName": + "1"}]}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report + by the Government Accountability Office (GAO) found that the dramatic increase + in oil and natural gas development on federal lands over the past six years + has stretched the staff of the BLM to a point that it has been unable to meet + its environmental protection responsibilities.", "language": "en"}, {"id": "2", + "text": "", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1119' + - '1170' Content-Type: - application/json User-Agent: @@ -30,13 +30,13 @@ interactions: body: string: '' headers: - apim-request-id: 0e18c850-b5e7-4244-bdad-1fc00ffbd25c - date: Wed, 06 Oct 2021 20:54:53 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc51ee80-f8f2-4c2e-a401-910529e5af2b + apim-request-id: b23a9a32-1d32-4bf3-89fe-def1beb08e9c + date: Thu, 07 Oct 2021 23:46:55 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/253c147f-8adb-43ed-bc24-2ca53575d692 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '753' + x-envoy-upstream-service-time: '999' status: code: 202 message: Accepted @@ -47,27 +47,27 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc51ee80-f8f2-4c2e-a401-910529e5af2b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/253c147f-8adb-43ed-bc24-2ca53575d692?showStats=True response: body: - string: '{"jobId":"bc51ee80-f8f2-4c2e-a401-910529e5af2b","lastUpdateDateTime":"2021-10-06T20:54:56Z","createdDateTime":"2021-10-06T20:54:53Z","expirationDateTime":"2021-10-07T20:54:53Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:54:56.7369246Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past + string: '{"jobId":"253c147f-8adb-43ed-bc24-2ca53575d692","lastUpdateDateTime":"2021-10-07T23:46:59Z","createdDateTime":"2021-10-07T23:46:55Z","expirationDateTime":"2021-10-08T23:46:55Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:56.7982326Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past six years","category":"timeRange","offset":156,"length":14,"confidenceScore":0.54}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:54:54.7545182Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + text is empty."}}}],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:59.9865888Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:54:55.0613093Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + text is empty."}}}],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:59.8622022Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: - apim-request-id: 749c4c43-a503-48a9-9caf-abaf0e21ab50 + apim-request-id: f0010dae-044e-4ee9-8330-de8353479dbb content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:54:59 GMT + date: Thu, 07 Oct 2021 23:47:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '210' + x-envoy-upstream-service-time: '268' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/bc51ee80-f8f2-4c2e-a401-910529e5af2b?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/253c147f-8adb-43ed-bc24-2ca53575d692?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml index 14bd95cde05a..7049fa231fdc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml @@ -1,28 +1,30 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": + "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + true}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": true, "stringIndexType": - "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true}}], "entityLinkingTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": true, "opinionMining": - false}}], "extractiveSummarizationTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": [{"parameters": {"project-name": - "textanalytics_custom_entities_project_name", "deployment-name": "textanalytics_custom_entities_project_name", - "loggingOptOut": true}}], "customSingleClassificationTasks": [{"parameters": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [{"parameters": {"project-name": "textanalytics_custom_entities_project_name", + "deployment-name": "textanalytics_custom_entities_project_name", "loggingOptOut": + true}, "taskName": "8"}], "customSingleClassificationTasks": [{"parameters": {"project-name": "single_category_classify_project_name", "deployment-name": - "single_category_classify_project_name", "loggingOptOut": true}}], "customMultiClassificationTasks": - [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", + "single_category_classify_project_name", "loggingOptOut": true}, "taskName": + "6"}], "customMultiClassificationTasks": [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", "deployment-name": "textanalytics_multi_category_classify_project_name", "loggingOptOut": - true}}]}, "analysisInput": {"documents": [{"id": "0", "text": "Test for logging - disable", "language": "en"}]}}' + true}, "taskName": "7"}]}, "analysisInput": {"documents": [{"id": "0", "text": + "Test for logging disable", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1490' + - '1643' Content-Type: - application/json User-Agent: @@ -33,13 +35,13 @@ interactions: body: string: '' headers: - apim-request-id: 5af61190-a7ac-40ab-848f-ba9c9880763c - date: Wed, 06 Oct 2021 20:54:59 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 + apim-request-id: 297233d4-d297-4547-b66f-3d9bd6633c5e + date: Thu, 07 Oct 2021 23:47:02 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '893' + x-envoy-upstream-service-time: '1497' status: code: 202 message: Accepted @@ -50,146 +52,48 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a response: body: - string: '{"jobId":"1ff759bd-2344-4d27-8098-265589e5f876","lastUpdateDateTime":"2021-10-06T20:55:00Z","createdDateTime":"2021-10-06T20:54:59Z","expirationDateTime":"2021-10-07T20:54:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":8,"total":9,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:00.8646659Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + string: '{ "error": { "code": "Timeout", "message": "The operation was timeout." + } }' headers: - apim-request-id: 482da68e-f959-4e6b-9f2f-8e9efb6693c8 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:05 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 - response: - body: - string: '{"jobId":"1ff759bd-2344-4d27-8098-265589e5f876","lastUpdateDateTime":"2021-10-06T20:55:08Z","createdDateTime":"2021-10-06T20:54:59Z","expirationDateTime":"2021-10-07T20:54:59Z","status":"running","errors":[{"code":"InternalServerError","message":"2 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/entities/general,v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":3,"failed":2,"inProgress":4,"total":9,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.4247459Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.1222057Z","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.6152459Z","state":"failed"}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.5775061Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:00.8646659Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' - headers: - apim-request-id: e225186a-2de1-49b2-a94f-d4bdfce9bac3 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:10 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '245' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 - response: - body: - string: '{"jobId":"1ff759bd-2344-4d27-8098-265589e5f876","lastUpdateDateTime":"2021-10-06T20:55:14Z","createdDateTime":"2021-10-06T20:54:59Z","expirationDateTime":"2021-10-07T20:54:59Z","status":"running","errors":[{"code":"InternalServerError","message":"2 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/entities/general,v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":4,"failed":2,"inProgress":3,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:14.4053097Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.4247459Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.1222057Z","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.6152459Z","state":"failed"}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.5775061Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:00.8646659Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' - headers: - apim-request-id: 069e148e-a205-4f85-bb5a-d4e39a99d4d1 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:15 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '208' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 - response: - body: - string: '{"jobId":"1ff759bd-2344-4d27-8098-265589e5f876","lastUpdateDateTime":"2021-10-06T20:55:18Z","createdDateTime":"2021-10-06T20:54:59Z","expirationDateTime":"2021-10-07T20:54:59Z","status":"running","errors":[{"code":"InternalServerError","message":"2 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/entities/general,v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":5,"failed":2,"inProgress":2,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:14.4053097Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.4247459Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:18.0624414Z","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.1222057Z","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.6152459Z","state":"failed"}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.5775061Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:00.8646659Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' - headers: - apim-request-id: 27378461-0186-4c74-9119-61e2f3d0321d - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:21 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '340' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 - response: - body: - string: '{"jobId":"1ff759bd-2344-4d27-8098-265589e5f876","lastUpdateDateTime":"2021-10-06T20:55:18Z","createdDateTime":"2021-10-06T20:54:59Z","expirationDateTime":"2021-10-07T20:54:59Z","status":"running","errors":[{"code":"InternalServerError","message":"2 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/entities/general,v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":5,"failed":2,"inProgress":2,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:14.4053097Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.4247459Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:18.0624414Z","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.1222057Z","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.6152459Z","state":"failed"}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.5775061Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:00.8646659Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' - headers: - apim-request-id: 576b6c58-8c33-4e13-a2b0-339b53bc1179 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:26 GMT + apim-request-id: ea311519-5341-464c-a2ef-4acdd7ea6bd6 + content-length: '75' + content-type: application/json + date: Thu, 07 Oct 2021 23:49:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '292' status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 + code: 408 + message: Timeout + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a response: body: - string: '{"jobId":"1ff759bd-2344-4d27-8098-265589e5f876","lastUpdateDateTime":"2021-10-06T20:55:31Z","createdDateTime":"2021-10-06T20:54:59Z","expirationDateTime":"2021-10-07T20:54:59Z","status":"partiallyCompleted","errors":[{"code":"InternalServerError","message":"2 - out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/entities/general,v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":7,"failed":2,"inProgress":0,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:14.4053097Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:28.6015137Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"40f91a74-081e-4707-b099-b8ec5f9e3d9a","lastUpdateDateTime":"2021-10-07T23:47:40Z","createdDateTime":"2021-10-07T23:47:02Z","expirationDateTime":"2021-10-08T23:47:02Z","status":"partiallyCompleted","errors":[{"code":"InternalServerError","message":"1 + out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":8,"failed":1,"inProgress":0,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:16.4105713Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:10.2024096Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.4247459Z","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:18.0624414Z","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:08.1222057Z","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:31.0206339Z","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test - for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.6152459Z","state":"failed"}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:06.5775061Z","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:00.8646659Z","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:10.4578134Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:15.2855057Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:16.4314862Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:40.6325455Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test + for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:06.2516036Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:09.1230326Z","taskName":"6","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:03.5372914Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: - apim-request-id: 6864f06c-fcf5-462a-87a8-ddc2874b5b47 + apim-request-id: 913b74dc-9e0b-40e9-ab30-75516d83c63d content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:32 GMT + date: Thu, 07 Oct 2021 23:49:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '360' + x-envoy-upstream-service-time: '621' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1ff759bd-2344-4d27-8098-265589e5f876 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml index 82f4afce4379..49ef7e30d18e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml @@ -1,23 +1,24 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "This is written in English.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1036' + - '1138' Content-Type: - application/json User-Agent: @@ -30,10 +31,10 @@ interactions: key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 639d58e3-3b76-41ee-bc9f-f668d2b38f88 + apim-request-id: f8fb617e-d0ad-4f11-82ea-7041c32ef04f content-length: '224' content-type: application/json - date: Wed, 06 Oct 2021 20:55:32 GMT + date: Thu, 07 Oct 2021 23:49:08 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_action_with_options.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_action_with_options.yaml index 61920d2b4a1b..6e0e463b8ca6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_action_with_options.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_action_with_options.yaml @@ -4,34 +4,35 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 5, "sortBy": "Rank"}}], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": - [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "0", "text": "The government of British Prime Minster Theresa May has been plunged - into turmoil with the resignation of two senior Cabinet ministers in a deep - split over her Brexit strategy. The Foreign Secretary Boris Johnson, quit on - Monday, hours after the resignation late on Sunday night of the minister in - charge of Brexit negotiations, David Davis. Their decision to leave the government - came three days after May appeared to have agreed a deal with herfractured Cabinet - on the UK''s post Brexit relationship with the EU. That plan is now in tatters - and her political future appears uncertain. May appeared in Parliament on Monday - afternoon to defend her plan, minutes after Downing Street confirmed the departure - of Johnson. May acknowledged the splits in her statement to MPs, saying of the - ministers who quit: We do not agree about the best way of delivering our shared - commitment to honoring the result of the referendum. The Prime Minister''s latest - plitical drama began late on Sunday night when Davis quit, declaring he could - not support May''s Brexit plan. He said it involved too close a relationship - with the EU and gave only an illusion of control being returned to the UK after - it left the EU. It seems to me we''re giving too much away, too easily, and - that''s a dangerous strategy at this time, Davis said in a BBC radio interview - Monday morning. Johnson''s resignation came Monday afternoon local time, just - before the Prime Minister was due to make a scheduled statement in Parliament. - This afternoon, the Prime Minister accepted the resignation of Boris Johnson - as Foreign Secretary, a statement from Downing Street said.", "language": "en"}]}}' + 5, "sortBy": "Rank"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "0", "text": "The government of British + Prime Minster Theresa May has been plunged into turmoil with the resignation + of two senior Cabinet ministers in a deep split over her Brexit strategy. The + Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation + late on Sunday night of the minister in charge of Brexit negotiations, David + Davis. Their decision to leave the government came three days after May appeared + to have agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship + with the EU. That plan is now in tatters and her political future appears uncertain. + May appeared in Parliament on Monday afternoon to defend her plan, minutes after + Downing Street confirmed the departure of Johnson. May acknowledged the splits + in her statement to MPs, saying of the ministers who quit: We do not agree about + the best way of delivering our shared commitment to honoring the result of the + referendum. The Prime Minister''s latest plitical drama began late on Sunday + night when Davis quit, declaring he could not support May''s Brexit plan. He + said it involved too close a relationship with the EU and gave only an illusion + of control being returned to the UK after it left the EU. It seems to me we''re + giving too much away, too easily, and that''s a dangerous strategy at this time, + Davis said in a BBC radio interview Monday morning. Johnson''s resignation came + Monday afternoon local time, just before the Prime Minister was due to make + a scheduled statement in Parliament. This afternoon, the Prime Minister accepted + the resignation of Boris Johnson as Foreign Secretary, a statement from Downing + Street said.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '2157' + - '2174' Content-Type: - application/json User-Agent: @@ -42,13 +43,13 @@ interactions: body: string: '' headers: - apim-request-id: 77e6504e-a085-4feb-9d86-9b8caafe749c - date: Wed, 06 Oct 2021 20:55:32 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7d447533-0c04-4638-9b0b-d27e8aa60a3f + apim-request-id: 72b20d62-cba5-4555-8f51-e742ca326cdd + date: Thu, 07 Oct 2021 23:49:09 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '181' + x-envoy-upstream-service-time: '288' status: code: 202 message: Accepted @@ -59,54 +60,54 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7d447533-0c04-4638-9b0b-d27e8aa60a3f?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True response: body: - string: '{"jobId":"7d447533-0c04-4638-9b0b-d27e8aa60a3f","lastUpdateDateTime":"2021-10-06T20:55:33Z","createdDateTime":"2021-10-06T20:55:32Z","expirationDateTime":"2021-10-07T20:55:32Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc","lastUpdateDateTime":"2021-10-07T23:49:09Z","createdDateTime":"2021-10-07T23:49:09Z","expirationDateTime":"2021-10-08T23:49:09Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 8a012240-1a53-4b9f-b16a-701b4d21d3ec + apim-request-id: a27f862f-af80-4b81-8b2f-d2bb750f9178 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:37 GMT + date: Thu, 07 Oct 2021 23:49:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/7d447533-0c04-4638-9b0b-d27e8aa60a3f?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7d447533-0c04-4638-9b0b-d27e8aa60a3f?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True response: body: - string: '{"jobId":"7d447533-0c04-4638-9b0b-d27e8aa60a3f","lastUpdateDateTime":"2021-10-06T20:55:33Z","createdDateTime":"2021-10-06T20:55:32Z","expirationDateTime":"2021-10-07T20:55:32Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{ "error": { "code": "Timeout", "message": "The operation was timeout." + } }' headers: - apim-request-id: d24af7b7-8091-4c42-b519-5364dc7c3bd8 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:42 GMT + apim-request-id: da577ae4-5df1-422a-a9ac-08f1f410ce97 + content-length: '75' + content-type: application/json + date: Thu, 07 Oct 2021 23:51:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/7d447533-0c04-4638-9b0b-d27e8aa60a3f?showStats=True + code: 408 + message: Timeout + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7d447533-0c04-4638-9b0b-d27e8aa60a3f?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True response: body: - string: '{"jobId":"7d447533-0c04-4638-9b0b-d27e8aa60a3f","lastUpdateDateTime":"2021-10-06T20:55:45Z","createdDateTime":"2021-10-06T20:55:32Z","expirationDateTime":"2021-10-07T20:55:32Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:55:45.993423Z","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The + string: '{"jobId":"fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc","lastUpdateDateTime":"2021-10-07T23:49:26Z","createdDateTime":"2021-10-07T23:49:09Z","expirationDateTime":"2021-10-08T23:49:09Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:49:26.5678948Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation late on Sunday night of the minister in charge of Brexit negotiations, David Davis.","rankScore":1.0,"offset":177,"length":164},{"text":"The government @@ -120,15 +121,15 @@ interactions: Prime Minister''s latest plitical drama began late on Sunday night when Davis quit, declaring he could not support May''s Brexit plan.","rankScore":0.26,"offset":918,"length":136}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: - apim-request-id: db5f0821-c6e3-437a-833b-b98f0feb3f22 + apim-request-id: 4121b7bc-0ecc-4813-992b-f6ad2a000656 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:47 GMT + date: Thu, 07 Oct 2021 23:51:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '59' + x-envoy-upstream-service-time: '160' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/7d447533-0c04-4638-9b0b-d27e8aa60a3f?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_partial_results.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_partial_results.yaml index f40546fbe87a..69e753149e6c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_partial_results.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_partial_results.yaml @@ -4,15 +4,15 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": - [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "", "language": "en"}, {"id": "2", "text": "hello world", "language": - "en"}]}}' + 3, "sortBy": "Offset"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "", "language": "en"}, {"id": + "2", "text": "hello world", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '588' + - '605' Content-Type: - application/json User-Agent: @@ -23,13 +23,13 @@ interactions: body: string: '' headers: - apim-request-id: a6c0c2ba-d130-44e1-b42f-f2239020afb3 - date: Wed, 06 Oct 2021 20:55:48 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e + apim-request-id: cd8a22c1-6b70-4316-86d3-6a6d5041ff5e + date: Thu, 07 Oct 2021 23:51:20 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '150' + x-envoy-upstream-service-time: '770' status: code: 202 message: Accepted @@ -40,88 +40,88 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True response: body: - string: '{"jobId":"8b11ebcf-3af4-4da4-a951-000a29b7a61e","lastUpdateDateTime":"2021-10-06T20:55:48Z","createdDateTime":"2021-10-06T20:55:48Z","expirationDateTime":"2021-10-07T20:55:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"04c4b0bb-cb57-40c9-8109-7038ac7d4af4","lastUpdateDateTime":"2021-10-07T23:51:21Z","createdDateTime":"2021-10-07T23:51:20Z","expirationDateTime":"2021-10-08T23:51:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 3f2824fe-c407-462a-b012-5a7b72f2bc16 + apim-request-id: 17f3cbb8-e946-465b-af0c-678526bde310 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:53 GMT + date: Thu, 07 Oct 2021 23:51:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '138' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True response: body: - string: '{"jobId":"8b11ebcf-3af4-4da4-a951-000a29b7a61e","lastUpdateDateTime":"2021-10-06T20:55:48Z","createdDateTime":"2021-10-06T20:55:48Z","expirationDateTime":"2021-10-07T20:55:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"04c4b0bb-cb57-40c9-8109-7038ac7d4af4","lastUpdateDateTime":"2021-10-07T23:51:21Z","createdDateTime":"2021-10-07T23:51:20Z","expirationDateTime":"2021-10-08T23:51:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: fe958814-5ebe-40c8-9591-8295dca2cbe9 + apim-request-id: 0fef54a1-23dd-4f5f-a18c-b5bef09e4e6e content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:55:57 GMT + date: Thu, 07 Oct 2021 23:51:31 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True response: body: - string: '{"jobId":"8b11ebcf-3af4-4da4-a951-000a29b7a61e","lastUpdateDateTime":"2021-10-06T20:55:48Z","createdDateTime":"2021-10-06T20:55:48Z","expirationDateTime":"2021-10-07T20:55:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"04c4b0bb-cb57-40c9-8109-7038ac7d4af4","lastUpdateDateTime":"2021-10-07T23:51:21Z","createdDateTime":"2021-10-07T23:51:20Z","expirationDateTime":"2021-10-08T23:51:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 55514f54-2503-418c-8ea0-685769547129 + apim-request-id: 11025182-9c9b-42d3-ab85-d77aa5d73a32 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:02 GMT + date: Thu, 07 Oct 2021 23:51:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True response: body: - string: '{"jobId":"8b11ebcf-3af4-4da4-a951-000a29b7a61e","lastUpdateDateTime":"2021-10-06T20:56:06Z","createdDateTime":"2021-10-06T20:55:48Z","expirationDateTime":"2021-10-07T20:55:48Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:06.509409Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"04c4b0bb-cb57-40c9-8109-7038ac7d4af4","lastUpdateDateTime":"2021-10-07T23:51:38Z","createdDateTime":"2021-10-07T23:51:20Z","expirationDateTime":"2021-10-08T23:51:20Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:51:38.9373184Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-08-01"}}]}}' headers: - apim-request-id: e8dd032d-08b0-457d-9fc5-f1c4ccf05aac + apim-request-id: fce52636-9b50-4b96-8ccd-63c87c42eee3 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:07 GMT + date: Thu, 07 Oct 2021 23:51:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '88' + x-envoy-upstream-service-time: '186' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8b11ebcf-3af4-4da4-a951-000a29b7a61e?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multi_category_classify.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multi_category_classify.yaml index ee8c78b8b246..92a763119c6f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multi_category_classify.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multi_category_classify.yaml @@ -5,11 +5,11 @@ interactions: [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", "deployment-name": - "textanalytics_multi_category_classify_project_name"}}]}, "analysisInput": {"documents": - [{"id": "1", "text": "A recent report by the Government Accountability Office - (GAO) found that the dramatic increase in oil and natural gas development on - federal lands over the past six years has stretched the staff of the BLM to - a point that it has been unable to meet its environmental protection responsibilities.", + "textanalytics_multi_category_classify_project_name"}, "taskName": "0"}]}, "analysisInput": + {"documents": [{"id": "1", "text": "A recent report by the Government Accountability + Office (GAO) found that the dramatic increase in oil and natural gas development + on federal lands over the past six years has stretched the staff of the BLM + to a point that it has been unable to meet its environmental protection responsibilities.", "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component.", "language": "en"}, {"id": "3", "text": "I @@ -19,7 +19,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '1179' + - '1196' Content-Type: - application/json User-Agent: @@ -30,13 +30,13 @@ interactions: body: string: '' headers: - apim-request-id: 37c740ab-f288-423f-af9f-6b50db801045 - date: Wed, 06 Oct 2021 21:18:33 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b0f6212f-5c05-4285-b047-88bf07e76854 + apim-request-id: 6d9011ee-6e31-4028-b93c-c2857ad53a6a + date: Thu, 07 Oct 2021 23:51:42 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e80afa11-69df-43f9-8497-d9f888c2b56a strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '585' + x-envoy-upstream-service-time: '426' status: code: 202 message: Accepted @@ -47,20 +47,20 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b0f6212f-5c05-4285-b047-88bf07e76854?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e80afa11-69df-43f9-8497-d9f888c2b56a?showStats=True response: body: - string: '{"jobId":"b0f6212f-5c05-4285-b047-88bf07e76854","lastUpdateDateTime":"2021-10-06T21:18:38Z","createdDateTime":"2021-10-06T21:18:33Z","expirationDateTime":"2021-10-07T21:18:33Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T21:18:38.279196Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classifications":[],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classifications":[{"category":"BookRestaurant","confidenceScore":0.97}],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + string: '{"jobId":"e80afa11-69df-43f9-8497-d9f888c2b56a","lastUpdateDateTime":"2021-10-07T23:51:43Z","createdDateTime":"2021-10-07T23:51:42Z","expirationDateTime":"2021-10-08T23:51:42Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:51:43.4957598Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classifications":[],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classifications":[{"category":"BookRestaurant","confidenceScore":0.97}],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: - apim-request-id: 887188d2-99e5-47fe-9144-77b26d9c7343 + apim-request-id: 21e54369-d37d-441e-bd50-e90462fcf289 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 21:18:39 GMT + date: Thu, 07 Oct 2021 23:51:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '265' + x-envoy-upstream-service-time: '159' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/b0f6212f-5c05-4285-b047-88bf07e76854?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/e80afa11-69df-43f9-8497-d9f888c2b56a?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action.yaml new file mode 100644 index 000000000000..37272ed82a57 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action.yaml @@ -0,0 +1,340 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "2"}, {"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint"}, "taskName": "7"}], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}, {"parameters": {"model-version": "latest", "loggingOptOut": + true, "piiCategories": ["USSocialSecurityNumber"], "stringIndexType": "UnicodeCodePoint"}, + "taskName": "5"}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false}, "taskName": "6"}, {"parameters": {"model-version": + "latest", "loggingOptOut": false}, "taskName": "11"}], "entityLinkingTasks": + [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint"}, "taskName": "3"}, {"parameters": {"model-version": "latest", + "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "9"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "0"}, {"parameters": + {"model-version": "latest", "loggingOptOut": false, "opinionMining": true}, + "taskName": "8"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 3, "sortBy": "Rank"}, "taskName": "4"}, {"parameters": {"model-version": "latest", + "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 1, "sortBy": "Offset"}, "taskName": "10"}], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "28", "text": "My SSN is 859-98-0987. + Here is another sentence.", "language": "en"}, {"id": "3", "text": "Is 998.214.865-68 + your Brazilian CPF number? Here is another sentence.", "language": "en"}, {"id": + "5", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '2390' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: e74616e9-4341-4673-a43a-f6553115a952 + date: Thu, 07 Oct 2021 23:51:48 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '1514' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f + response: + body: + string: '{"jobId":"cd102a7a-8695-4a06-8a8e-69e68ca7758f","lastUpdateDateTime":"2021-10-07T23:51:49Z","createdDateTime":"2021-10-07T23:51:47Z","expirationDateTime":"2021-10-08T23:51:47Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":12,"total":12}}' + headers: + apim-request-id: 30c3cca1-99d6-4bee-8890-c2d29dcc53c7 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:51:53 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f + response: + body: + string: '{ "error": { "code": "Timeout", "message": "The operation was timeout." + } }' + headers: + apim-request-id: 59fc1801-cfab-43e7-9482-aadc4ecedcd1 + content-length: '75' + content-type: application/json + date: Thu, 07 Oct 2021 23:53:58 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + status: + code: 408 + message: Timeout + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f + response: + body: + string: "{\"jobId\":\"cd102a7a-8695-4a06-8a8e-69e68ca7758f\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:25Z\",\"createdDateTime\":\"2021-10-07T23:51:47Z\",\"\ + expirationDateTime\":\"2021-10-08T23:51:47Z\",\"status\":\"succeeded\",\"\ + errors\":[],\"displayName\":\"NA\",\"tasks\":{\"completed\":12,\"failed\"\ + :0,\"inProgress\":0,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:02.6412737Z\",\"taskName\":\"2\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[{\"text\":\"859\"\ + ,\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":10,\"length\"\ + :3,\"confidenceScore\":0.8},{\"text\":\"98\",\"category\":\"Quantity\",\"\ + subcategory\":\"Number\",\"offset\":14,\"length\":2,\"confidenceScore\":0.8},{\"\ + text\":\"0987\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\"\ + :17,\"length\":4,\"confidenceScore\":0.8}],\"warnings\":[]},{\"id\":\"3\"\ + ,\"entities\":[{\"text\":\"998\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"\ + 214\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":7,\"\ + length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:52:03.6794157Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:04.7730864Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:52:14.3765305Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:02.7634295Z\",\"taskName\":\"1\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the ********************************\ + \ (***) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the ************** has stretched the staff of the\ + \ *** to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[{\"text\":\"Government Accountability\ + \ Office\",\"category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.96},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.93},{\"text\":\"past six years\",\"category\":\"\ + DateTime\",\"subcategory\":\"DateRange\",\"offset\":156,\"length\":14,\"confidenceScore\"\ + :0.8},{\"text\":\"BLM\",\"category\":\"Organization\",\"offset\":202,\"length\"\ + :3,\"confidenceScore\":0.9}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:51:57.0105372Z\"\ + ,\"taskName\":\"5\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + redactedText\":\"My SSN is ***********. Here is another sentence.\",\"id\"\ + :\"28\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]},{\"\ + redactedText\":\"Is 998.214.865-68 your Brazilian CPF number? Here is another\ + \ sentence.\",\"id\":\"3\",\"entities\":[],\"warnings\":[]},{\"redactedText\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}}],\"extractiveSummarizationTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:14.5961259Z\",\"taskName\":\"4\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"sentences\":[{\"text\":\"My\ + \ SSN is 859-98-0987.\",\"rankScore\":1.0,\"offset\":0,\"length\":22},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":23,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"3\",\"sentences\":[{\"text\":\"Is 998.214.865-68\ + \ your Brazilian CPF number?\",\"rankScore\":1.0,\"offset\":0,\"length\":44},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":45,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"5\",\"sentences\":[{\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"rankScore\":1.0,\"\ + offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-08-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:52:02.7537509Z\"\ + ,\"taskName\":\"10\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentences\":[{\"text\":\"My SSN is 859-98-0987.\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":22}],\"warnings\":[]},{\"id\":\"3\",\"sentences\"\ + :[{\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":44}],\"warnings\":[]},{\"id\":\"5\",\"sentences\"\ + :[{\"text\":\"A recent report by the Government Accountability Office (GAO)\ + \ found that the dramatic increase in oil and natural gas development on federal\ + \ lands over the past six years has stretched the staff of the BLM to a point\ + \ that it has been unable to meet its environmental protection responsibilities.\"\ + ,\"rankScore\":1.0,\"offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-08-01\"}}],\"keyPhraseExtractionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:04.3857477Z\",\"taskName\":\"6\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:09.9366089Z\",\"taskName\":\"11\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}}],\"sentimentAnalysisTasks\"\ + :[{\"lastUpdateDateTime\":\"2021-10-07T23:52:25.6594929Z\",\"taskName\":\"\ + 0\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"28\",\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :22,\"text\":\"My SSN is 859-98-0987.\"},{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":23,\"length\"\ + :25,\"text\":\"Here is another sentence.\"}],\"warnings\":[]},{\"id\":\"3\"\ + ,\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :44,\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\"},{\"sentiment\"\ + :\"neutral\",\"confidenceScores\":{\"positive\":0.02,\"neutral\":0.9,\"negative\"\ + :0.08},\"offset\":45,\"length\":25,\"text\":\"Here is another sentence.\"\ + }],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.23,\"neutral\"\ + :0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\"}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2020-04-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:52:19.6628124Z\"\ + ,\"taskName\":\"8\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"\ + neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"\ + offset\":0,\"length\":22,\"text\":\"My SSN is 859-98-0987.\",\"targets\":[],\"\ + assessments\":[]},{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":23,\"length\":25,\"text\"\ + :\"Here is another sentence.\",\"targets\":[],\"assessments\":[]}],\"warnings\"\ + :[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.01,\"neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"\ + neutral\",\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\"\ + :0.0},\"offset\":0,\"length\":44,\"text\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number?\",\"targets\":[],\"assessments\":[]},{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"\ + offset\":45,\"length\":25,\"text\":\"Here is another sentence.\",\"targets\"\ + :[],\"assessments\":[]}],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"\ + sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.23,\"neutral\":0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"targets\":[],\"assessments\":[]}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2020-04-01\"}}]}}" + headers: + apim-request-id: 2b863227-7c8d-4a73-9acf-8bb8e886a776 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:53:59 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '894' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action_with_partial_results.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action_with_partial_results.yaml new file mode 100644 index 000000000000..5d70fd48fc81 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action_with_partial_results.yaml @@ -0,0 +1,129 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", + "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "0"}, {"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 5, "sortBy": "Offset"}, "taskName": "2"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "5", "text": "A recent report by the + Government Accountability Office (GAO) found that the dramatic increase in oil + and natural gas development on federal lands over the past six years has stretched + the staff of the BLM to a point that it has been unable to meet its environmental + protection responsibilities.", "language": "en"}, {"id": "2", "text": "", "language": + "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '1176' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: 8f41bc8b-bff4-4462-95d0-0b196420faf0 + date: Thu, 07 Oct 2021 23:54:01 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '386' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c + response: + body: + string: '{"jobId":"a59e81f0-4bdf-493c-8df2-491ab134fb0c","lastUpdateDateTime":"2021-10-07T23:54:01Z","createdDateTime":"2021-10-07T23:54:00Z","expirationDateTime":"2021-10-08T23:54:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":3,"total":3}}' + headers: + apim-request-id: 9fd820b5-2887-4901-9c1f-648ea26fd1b3 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:54:06 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '9' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c + response: + body: + string: upstream request timeout + headers: + apim-request-id: fce116e8-cbc3-4b5d-988b-6a256fd1d663 + content-type: text/plain + date: Thu, 07 Oct 2021 23:56:10 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + status: + code: 504 + message: Gateway Timeout + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c + response: + body: + string: '{"jobId":"a59e81f0-4bdf-493c-8df2-491ab134fb0c","lastUpdateDateTime":"2021-10-07T23:54:24Z","createdDateTime":"2021-10-07T23:54:00Z","expirationDateTime":"2021-10-08T23:54:00Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:54:08.3388571Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"5","entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.96},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.93},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.9}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:54:24.2285759Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"5","sentences":[{"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities.","rankScore":1.0,"offset":0,"length":295}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-08-01"}},{"lastUpdateDateTime":"2021-10-07T23:54:13.1157958Z","taskName":"2","state":"succeeded","results":{"documents":[{"id":"5","sentences":[{"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities.","rankScore":1.0,"offset":0,"length":295}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-08-01"}}]}}' + headers: + apim-request-id: 0978d8a6-2dca-49d3-91d3-18dc1bb905ae + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:56:12 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '650' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml index b858d280a65b..ddb2b0c2bcc7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "hello world", "language": "en"}, {"id": "1", "text": "hello world", "language": "en"}, {"id": "2", "text": "hello world", "language": "en"}, {"id": "3", "text": "hello world", "language": @@ -33,7 +34,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '2331' + - '2433' Content-Type: - application/json User-Agent: @@ -44,13 +45,13 @@ interactions: body: string: '' headers: - apim-request-id: f000c05d-a9f9-45ac-8df1-39e8d30bc189 - date: Wed, 06 Oct 2021 20:56:15 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4 + apim-request-id: 095a2a29-6b80-4a43-afe7-fb81e4665a3e + date: Thu, 07 Oct 2021 23:56:13 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1219' + x-envoy-upstream-service-time: '1424' status: code: 202 message: Accepted @@ -61,158 +62,54 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:20Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' - headers: - apim-request-id: 6323dc30-d6d3-4170-b5b5-eb716529afdf - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:20 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '321' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True - response: - body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:25Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:25.9121748Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:13Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: - apim-request-id: b16a06fb-6f6c-4214-8d3a-870b59c92de7 + apim-request-id: 8df2b276-a96e-426c-90b1-6563a255c9fe content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:26 GMT + date: Thu, 07 Oct 2021 23:56:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '267' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:25Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:25.9121748Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?$skip=20&$top=5&showStats=True"}' - headers: - apim-request-id: 065b7b3b-de3b-482d-9b0d-f1bba249fc64 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:31 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '249' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True - response: - body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:34Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:34.5694874Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:25.9121748Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:20Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: - apim-request-id: af311802-bc75-4a11-861f-ac0c958fd610 + apim-request-id: 5554ad54-073c-47c9-ae73-c3f2d67f6b1c content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:36 GMT + date: Thu, 07 Oct 2021 23:56:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '511' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:40Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:34.5694874Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:25.9121748Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:26Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -232,49 +129,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:40.4950746Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: d5dc280f-1842-49ab-9589-5fac9baa477f + apim-request-id: c20ab7e4-8fb3-4fad-a275-2f9a73ca8220 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:42 GMT + date: Thu, 07 Oct 2021 23:56:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '634' + x-envoy-upstream-service-time: '598' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:48Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:34.5694874Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:44.1296374Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:25.9121748Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:34Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:34.3879195Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -294,49 +171,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:40.4950746Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 4936c105-e8f0-460e-b4b1-84926a9a69df + apim-request-id: 7efb9e40-baeb-4069-98aa-118118fb4184 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:49 GMT + date: Thu, 07 Oct 2021 23:56:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1015' + x-envoy-upstream-service-time: '715' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:54Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:34.5694874Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:44.1296374Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:25.9121748Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:34Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:34.3879195Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -356,69 +213,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:40.4950746Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:49.0897672Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"4","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"5","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"6","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"7","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"8","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"9","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"10","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"11","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"12","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"13","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"14","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"15","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"16","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 886de62e-4603-4232-83fd-6e8a1c3684ca + apim-request-id: ea3f3e6b-456f-4021-a6bb-5bcb4d9499f1 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:56:55 GMT + date: Thu, 07 Oct 2021 23:56:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1188' + x-envoy-upstream-service-time: '706' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:55Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:34.5694874Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:44.1296374Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:25.9121748Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:43Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:34.3879195Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -438,7 +255,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:55.4725263Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:40.4950746Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:43.6796446Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:42.9523696Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -458,7 +275,7 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:49.0897672Z","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:43.1729497Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -478,19 +295,19 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 9623d878-6f05-4e6e-addf-635900fe2194 + apim-request-id: 2360e371-412f-40f5-9e9e-d30631c532a7 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:01 GMT + date: Thu, 07 Oct 2021 23:56:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1823' + x-envoy-upstream-service-time: '2163' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: @@ -499,31 +316,31 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=false&$top=5&$skip=20 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=false&$top=5&$skip=20 response: body: - string: '{"jobId":"641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4","lastUpdateDateTime":"2021-10-06T20:56:55Z","createdDateTime":"2021-10-06T20:56:14Z","expirationDateTime":"2021-10-07T20:56:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:34.5694874Z","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:44.1296374Z","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:25.9121748Z","state":"succeeded","results":{"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:43Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:34.3879195Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"hello world","id":"20","entities":[],"warnings":[]},{"redactedText":"hello world","id":"21","entities":[],"warnings":[]},{"redactedText":"hello world","id":"22","entities":[],"warnings":[]},{"redactedText":"hello world","id":"23","entities":[],"warnings":[]},{"redactedText":"hello - world","id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:55.4725263Z","state":"succeeded","results":{"documents":[{"id":"20","sentences":[],"warnings":[]},{"id":"21","sentences":[],"warnings":[]},{"id":"22","sentences":[],"warnings":[]},{"id":"23","sentences":[],"warnings":[]},{"id":"24","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:40.4950746Z","state":"succeeded","results":{"documents":[{"id":"20","keyPhrases":["hello + world","id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:43.6796446Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"20","sentences":[],"warnings":[]},{"id":"21","sentences":[],"warnings":[]},{"id":"22","sentences":[],"warnings":[]},{"id":"23","sentences":[],"warnings":[]},{"id":"24","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:42.9523696Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"20","keyPhrases":["hello world"],"warnings":[]},{"id":"21","keyPhrases":["hello world"],"warnings":[]},{"id":"22","keyPhrases":["hello world"],"warnings":[]},{"id":"23","keyPhrases":["hello world"],"warnings":[]},{"id":"24","keyPhrases":["hello - world"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:56:49.0897672Z","state":"succeeded","results":{"documents":[{"id":"20","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:43.1729497Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"20","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"21","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"22","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"23","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"24","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: e98d2d60-ba17-46f1-9dc2-62f85801918b + apim-request-id: ff3b0bec-39ea-4d51-acf0-07d44f553c5e content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:02 GMT + date: Thu, 07 Oct 2021 23:56:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '573' + x-envoy-upstream-service-time: '578' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze/jobs/641b9ba5-3d7f-4bf2-9cc2-cc355e60bbc4?showStats=false&$top=5&$skip=20 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=false&$top=5&$skip=20 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml index d5ebfe4bc831..d306054bec33 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": "en"}, {"id": "0", "text": ":(", "language": "en"}, {"id": "19", "text": ":P", "language": "en"}, {"id": "1", "text": ":D", "language": "en"}]}}' @@ -18,7 +19,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '1148' + - '1250' Content-Type: - application/json User-Agent: @@ -29,13 +30,13 @@ interactions: body: string: '' headers: - apim-request-id: f5be2993-66d8-4d10-8d54-bd38f80351b7 - date: Wed, 06 Oct 2021 20:57:04 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + apim-request-id: 8d152277-fd28-482a-a223-9e51a30c5973 + date: Thu, 07 Oct 2021 23:56:49 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '612' + x-envoy-upstream-service-time: '783' status: code: 202 message: Accepted @@ -46,86 +47,130 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f + response: + body: + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:56:50Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + headers: + apim-request-id: 26370b51-e243-4d8b-8910-87a0e6d8b702 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:56:54 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f + response: + body: + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:56:57Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 3e46941c-ac3f-4ffe-8f91-cb198c782a14 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:57:00 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '93' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f response: body: - string: '{"jobId":"81498dbc-7fa5-40e3-9d43-e977916c1051","lastUpdateDateTime":"2021-10-06T20:57:06Z","createdDateTime":"2021-10-06T20:57:03Z","expirationDateTime":"2021-10-07T20:57:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:06.0425466Z","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:57:04Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:04.5909725Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:03.8574516Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: 629626ed-734d-4a72-a1cf-292b702e124c + apim-request-id: 90834804-d2e4-4a91-9d8d-99548dcf4c7d content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:09 GMT + date: Thu, 07 Oct 2021 23:57:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '88' + x-envoy-upstream-service-time: '261' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f response: body: - string: '{"jobId":"81498dbc-7fa5-40e3-9d43-e977916c1051","lastUpdateDateTime":"2021-10-06T20:57:11Z","createdDateTime":"2021-10-06T20:57:03Z","expirationDateTime":"2021-10-07T20:57:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:11.9857787Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:06.0425466Z","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:57:09Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:04.5909725Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:03.8574516Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:09.8843237Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: - apim-request-id: a81ee1b8-9585-4b69-b9eb-28f5bd3aa151 + apim-request-id: 2c37efc0-c522-4012-8cf1-6426b5dd0f5a content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:13 GMT + date: Thu, 07 Oct 2021 23:57:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '183' + x-envoy-upstream-service-time: '327' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f response: body: - string: '{"jobId":"81498dbc-7fa5-40e3-9d43-e977916c1051","lastUpdateDateTime":"2021-10-06T20:57:19Z","createdDateTime":"2021-10-06T20:57:03Z","expirationDateTime":"2021-10-07T20:57:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:11.9857787Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:18.6713176Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:06.0425466Z","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:19.4055929Z","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:18.629962Z","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:57:15Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:04.5909725Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:03.8574516Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:09.8843237Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:15.796298Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 07946b46-ff47-4ad9-8a76-a3951028f854 + apim-request-id: 08a3d91c-6b21-49af-9c81-46fe69bd65b7 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:19 GMT + date: Thu, 07 Oct 2021 23:57:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '408' + x-envoy-upstream-service-time: '427' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f response: body: - string: '{"jobId":"81498dbc-7fa5-40e3-9d43-e977916c1051","lastUpdateDateTime":"2021-10-06T20:57:24Z","createdDateTime":"2021-10-06T20:57:03Z","expirationDateTime":"2021-10-07T20:57:03Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:11.9857787Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:18.6713176Z","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:06.0425466Z","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:19.4055929Z","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:18.629962Z","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:24.2435367Z","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:57:21Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:04.5909725Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:03.8574516Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:09.8843237Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:21.1834841Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:15.796298Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 2e6a863c-80ff-4163-9b18-e1c6d38999a4 + apim-request-id: 77fdf504-0d8e-44a3-8435-3fa365b76d3e content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:25 GMT + date: Thu, 07 Oct 2021 23:57:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '585' + x-envoy-upstream-service-time: '531' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/81498dbc-7fa5-40e3-9d43-e977916c1051 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml index 0f4c7e284f36..7926d8055871 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml @@ -1,19 +1,19 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": - []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the - hotel we stayed at.", "language": "tr"}, {"id": "2", "text": "I did not like - the hotel we stayed at.", "language": "en"}]}}' + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false, "opinionMining": false}, "taskName": "0"}], "extractiveSummarizationTasks": + [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], + "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "I did not like the hotel we stayed at.", "language": "tr"}, {"id": + "2", "text": "I did not like the hotel we stayed at.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '703' + - '737' Content-Type: - application/json User-Agent: @@ -24,13 +24,13 @@ interactions: body: string: '' headers: - apim-request-id: 30e06652-ff1b-4967-85b0-59ef3b6a80bc - date: Wed, 06 Oct 2021 20:57:25 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + apim-request-id: 69aa1b1b-83c3-42fb-bf39-bdcc1f50a66d + date: Thu, 07 Oct 2021 23:57:22 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '266' + x-envoy-upstream-service-time: '243' status: code: 202 message: Accepted @@ -41,122 +41,96 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 response: body: - string: '{"jobId":"ee12b6fa-2529-482f-baa3-bf831e7d7b1f","lastUpdateDateTime":"2021-10-06T20:57:26Z","createdDateTime":"2021-10-06T20:57:25Z","expirationDateTime":"2021-10-07T20:57:25Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + string: '{"jobId":"c600d945-94d3-4db6-821b-42d33eff12c6","lastUpdateDateTime":"2021-10-07T23:57:22Z","createdDateTime":"2021-10-07T23:57:22Z","expirationDateTime":"2021-10-08T23:57:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' headers: - apim-request-id: 716c55c8-520d-49fc-a84f-75fec7c452d4 + apim-request-id: 938ac093-efff-48a4-be30-4e5fdd6230d4 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:31 GMT + date: Thu, 07 Oct 2021 23:57:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '39' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 response: body: - string: '{"jobId":"ee12b6fa-2529-482f-baa3-bf831e7d7b1f","lastUpdateDateTime":"2021-10-06T20:57:32Z","createdDateTime":"2021-10-06T20:57:25Z","expirationDateTime":"2021-10-07T20:57:25Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + string: '{"jobId":"c600d945-94d3-4db6-821b-42d33eff12c6","lastUpdateDateTime":"2021-10-07T23:57:28Z","createdDateTime":"2021-10-07T23:57:22Z","expirationDateTime":"2021-10-08T23:57:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' headers: - apim-request-id: fb03e8c5-c784-432c-90c9-b4dd8f24cc16 + apim-request-id: 26ca24e1-50e5-4b1b-8979-cdb28b297c66 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:35 GMT + date: Thu, 07 Oct 2021 23:57:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 response: body: - string: '{"jobId":"ee12b6fa-2529-482f-baa3-bf831e7d7b1f","lastUpdateDateTime":"2021-10-06T20:57:39Z","createdDateTime":"2021-10-06T20:57:25Z","expirationDateTime":"2021-10-07T20:57:25Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:39.7306562Z","state":"succeeded","results":{"documents":[{"redactedText":"I + string: '{"jobId":"c600d945-94d3-4db6-821b-42d33eff12c6","lastUpdateDateTime":"2021-10-07T23:57:36Z","createdDateTime":"2021-10-07T23:57:22Z","expirationDateTime":"2021-10-08T23:57:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:36.3576004Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: bfe42520-db47-4a0d-a3af-56025604d70d + apim-request-id: b6edafd9-fa99-4af3-9da8-9b74facc8634 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:40 GMT + date: Thu, 07 Oct 2021 23:57:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '240' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 response: body: - string: '{"jobId":"ee12b6fa-2529-482f-baa3-bf831e7d7b1f","lastUpdateDateTime":"2021-10-06T20:57:39Z","createdDateTime":"2021-10-06T20:57:25Z","expirationDateTime":"2021-10-07T20:57:25Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:39.7306562Z","state":"succeeded","results":{"documents":[{"redactedText":"I + string: '{"jobId":"c600d945-94d3-4db6-821b-42d33eff12c6","lastUpdateDateTime":"2021-10-07T23:57:39Z","createdDateTime":"2021-10-07T23:57:22Z","expirationDateTime":"2021-10-08T23:57:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:36.3576004Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' - headers: - apim-request-id: 3ad5025b-0e89-46f9-8752-08f25f0f5306 - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:46 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f - response: - body: - string: '{"jobId":"ee12b6fa-2529-482f-baa3-bf831e7d7b1f","lastUpdateDateTime":"2021-10-06T20:57:48Z","createdDateTime":"2021-10-06T20:57:25Z","expirationDateTime":"2021-10-07T20:57:25Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:39.7306562Z","state":"succeeded","results":{"documents":[{"redactedText":"I - did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:48.2894591Z","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:39.896461Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: c2c24cf0-f1f0-4818-86d1-9f63e020a103 + apim-request-id: d3d0a485-37da-4eec-a31a-6c6a4334ea3d content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:50 GMT + date: Thu, 07 Oct 2021 23:57:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '122' + x-envoy-upstream-service-time: '250' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/ee12b6fa-2529-482f-baa3-bf831e7d7b1f + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml index 6d2fba14ad12..f852e4457fb4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml @@ -1,8 +1,8 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "Test passing cls to @@ -11,7 +11,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '522' + - '539' Content-Type: - application/json User-Agent: @@ -22,13 +22,13 @@ interactions: body: string: '' headers: - apim-request-id: 36d54113-7a4e-454f-8108-b2627110984a - date: Wed, 06 Oct 2021 20:57:51 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7f128680-b1a0-4363-9841-136132682667 + apim-request-id: 52705e9c-aabc-493e-a19c-94bf8ee3b27c + date: Thu, 07 Oct 2021 23:57:44 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/af1e62b5-fea4-41a4-9497-30d00a2327a2 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '162' + x-envoy-upstream-service-time: '303' status: code: 202 message: Accepted @@ -39,20 +39,20 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7f128680-b1a0-4363-9841-136132682667 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/af1e62b5-fea4-41a4-9497-30d00a2327a2 response: body: - string: '{"jobId":"7f128680-b1a0-4363-9841-136132682667","lastUpdateDateTime":"2021-10-06T20:57:53Z","createdDateTime":"2021-10-06T20:57:51Z","expirationDateTime":"2021-10-07T20:57:51Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:53.8788928Z","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"af1e62b5-fea4-41a4-9497-30d00a2327a2","lastUpdateDateTime":"2021-10-07T23:57:45Z","createdDateTime":"2021-10-07T23:57:43Z","expirationDateTime":"2021-10-08T23:57:43Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:45.6372402Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 7c7d959a-5c72-495c-824e-7fd9cb7a7c2d + apim-request-id: bf46287a-264d-4b33-8cdd-0257da93238c content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:57:56 GMT + date: Thu, 07 Oct 2021 23:57:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '130' + x-envoy-upstream-service-time: '83' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/7f128680-b1a0-4363-9841-136132682667 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/af1e62b5-fea4-41a4-9497-30d00a2327a2 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml index 834b3a9ca442..ad6e54198f62 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml @@ -2,19 +2,20 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": true, "piiCategories": ["USSocialSecurityNumber", - "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], - "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "2", "text": - "Your ABA number - 111000025 - is the first 9 digits in the lower left hand - corner of your personal check.", "language": "en"}, {"id": "3", "text": "Is - 998.214.865-68 your Brazilian CPF number?", "language": "en"}]}}' + "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}, "taskName": "0"}], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "My SSN is 859-98-0987.", + "language": "en"}, {"id": "2", "text": "Your ABA number - 111000025 - is the + first 9 digits in the lower left hand corner of your personal check.", "language": + "en"}, {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": + "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '815' + - '832' Content-Type: - application/json User-Agent: @@ -25,13 +26,13 @@ interactions: body: string: '' headers: - apim-request-id: 5a05f325-29f4-4c6d-8bad-ddddbb8d6b83 - date: Wed, 06 Oct 2021 20:57:56 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e95739f0-4223-4dbd-9ae1-8aeb225a96c5 + apim-request-id: 16acffbf-0e94-4b55-b5e2-e578653fbaab + date: Thu, 07 Oct 2021 23:57:49 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '207' + x-envoy-upstream-service-time: '358' status: code: 202 message: Accepted @@ -42,24 +43,46 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e95739f0-4223-4dbd-9ae1-8aeb225a96c5 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 response: body: - string: '{"jobId":"e95739f0-4223-4dbd-9ae1-8aeb225a96c5","lastUpdateDateTime":"2021-10-06T20:57:59Z","createdDateTime":"2021-10-06T20:57:57Z","expirationDateTime":"2021-10-07T20:57:57Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:57:59.2221509Z","state":"succeeded","results":{"documents":[{"redactedText":"My + string: '{"jobId":"88800de8-44f7-4be9-b0dc-9ea9121af761","lastUpdateDateTime":"2021-10-07T23:57:49Z","createdDateTime":"2021-10-07T23:57:49Z","expirationDateTime":"2021-10-08T23:57:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: ff3a5213-b827-4424-bad1-e1e535118aeb + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:57:54 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '22' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 + response: + body: + string: '{"jobId":"88800de8-44f7-4be9-b0dc-9ea9121af761","lastUpdateDateTime":"2021-10-07T23:57:57Z","createdDateTime":"2021-10-07T23:57:49Z","expirationDateTime":"2021-10-08T23:57:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:57.3713039Z","taskName":"0","state":"succeeded","results":{"documents":[{"redactedText":"My SSN is ***********.","id":"1","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"2","entities":[{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: f0d2cc2f-e8bd-464a-8beb-f6c1078c01b4 + apim-request-id: c7248dc8-7202-407d-a343-7cc89556c245 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:02 GMT + date: Thu, 07 Oct 2021 23:57:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '71' + x-envoy-upstream-service-time: '213' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/e95739f0-4223-4dbd-9ae1-8aeb225a96c5 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml index 8cab55e7f7f3..a7d6aa5a1db4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml @@ -1,8 +1,8 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": @@ -11,7 +11,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '497' + - '514' Content-Type: - application/json User-Agent: @@ -22,13 +22,13 @@ interactions: body: string: '' headers: - apim-request-id: d5a6fb66-758b-4711-acab-b2dc2c39d998 - date: Wed, 06 Oct 2021 20:58:02 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2ec145a3-2da2-48ec-93c4-a5eaabedf0a5 + apim-request-id: 6a699989-e117-4e8d-8a43-8b6f002a9c10 + date: Thu, 07 Oct 2021 23:57:59 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9c8da669-ebc0-4b41-967e-d605aad16f97 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '216' + x-envoy-upstream-service-time: '258' status: code: 202 message: Accepted @@ -39,20 +39,20 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2ec145a3-2da2-48ec-93c4-a5eaabedf0a5?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9c8da669-ebc0-4b41-967e-d605aad16f97?showStats=True response: body: - string: '{"jobId":"2ec145a3-2da2-48ec-93c4-a5eaabedf0a5","lastUpdateDateTime":"2021-10-06T20:58:04Z","createdDateTime":"2021-10-06T20:58:02Z","expirationDateTime":"2021-10-07T20:58:02Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:04.9104586Z","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"9c8da669-ebc0-4b41-967e-d605aad16f97","lastUpdateDateTime":"2021-10-07T23:58:02Z","createdDateTime":"2021-10-07T23:58:00Z","expirationDateTime":"2021-10-08T23:58:00Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:02.8535071Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 103abc32-1b95-4c3b-aef0-49a882385a48 + apim-request-id: 23697fae-c3c0-42bd-8028-49589c6c0ae7 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:08 GMT + date: Thu, 07 Oct 2021 23:58:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '71' + x-envoy-upstream-service-time: '84' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/2ec145a3-2da2-48ec-93c4-a5eaabedf0a5?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9c8da669-ebc0-4b41-967e-d605aad16f97?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_recognize_custom_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_recognize_custom_entities.yaml index 705f48b4b4aa..7283090b57fc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_recognize_custom_entities.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_recognize_custom_entities.yaml @@ -4,7 +4,7 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [{"parameters": {"project-name": "textanalytics_custom_entities_project_name", "deployment-name": - "textanalytics_custom_entities_project_name"}}], "customSingleClassificationTasks": + "textanalytics_custom_entities_project_name"}, "taskName": "0"}], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal @@ -19,7 +19,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '1179' + - '1196' Content-Type: - application/json User-Agent: @@ -30,13 +30,13 @@ interactions: body: string: '' headers: - apim-request-id: 4ec39f55-b35c-401b-a509-ba6a5fede7aa - date: Wed, 06 Oct 2021 20:58:08 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/78fe0016-e325-453d-9a3a-e1f5edc69196 + apim-request-id: b5db4ea3-582a-40d3-a50b-8fe525e7036e + date: Thu, 07 Oct 2021 23:58:06 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/49ba6ccf-b34e-48e6-ae5e-8ec76b7367bf strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '804' + x-envoy-upstream-service-time: '873' status: code: 202 message: Accepted @@ -47,25 +47,25 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/78fe0016-e325-453d-9a3a-e1f5edc69196?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/49ba6ccf-b34e-48e6-ae5e-8ec76b7367bf?showStats=True response: body: - string: '{"jobId":"78fe0016-e325-453d-9a3a-e1f5edc69196","lastUpdateDateTime":"2021-10-06T20:58:09Z","createdDateTime":"2021-10-06T20:58:09Z","expirationDateTime":"2021-10-07T20:58:09Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:09.8961166Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past + string: '{"jobId":"49ba6ccf-b34e-48e6-ae5e-8ec76b7367bf","lastUpdateDateTime":"2021-10-07T23:58:08Z","createdDateTime":"2021-10-07T23:58:06Z","expirationDateTime":"2021-10-08T23:58:06Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:08.4152227Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past six years","category":"timeRange","offset":156,"length":14,"confidenceScore":0.54}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David Schmidt","category":"artist","offset":0,"length":13,"confidenceScore":0.8},{"text":"Food","category":"service","offset":38,"length":4,"confidenceScore":0.03},{"text":"Safety","category":"geographic_poi","offset":43,"length":6,"confidenceScore":0.06},{"text":"International Food","category":"geographic_poi","offset":51,"length":18,"confidenceScore":0.07},{"text":"IFIC","category":"geographic_poi","offset":91,"length":4,"confidenceScore":0.05},{"text":"Information Council","category":"restaurant_name","offset":70,"length":19,"confidenceScore":0.1},{"text":"Washington, D.C.","category":"state","offset":98,"length":16,"confidenceScore":0.49}],"warnings":[]},{"id":"3","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"facility","offset":28,"length":6,"confidenceScore":0.57},{"text":"restaurant","category":"restaurant_type","offset":35,"length":10,"confidenceScore":0.95},{"text":"China","category":"country","offset":49,"length":5,"confidenceScore":0.48},{"text":"music","category":"music_item","offset":78,"length":5,"confidenceScore":0.63},{"text":"my","category":"playlist_owner","offset":110,"length":2,"confidenceScore":0.84}],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}]}}' headers: - apim-request-id: 6033f0c9-f135-4d72-97ff-4c7821a636e4 + apim-request-id: b41bef4b-72d1-4d59-8f28-2d32a6e88525 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:14 GMT + date: Thu, 07 Oct 2021 23:58:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '260' + x-envoy-upstream-service-time: '168' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/78fe0016-e325-453d-9a3a-e1f5edc69196?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/49ba6ccf-b34e-48e6-ae5e-8ec76b7367bf?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml index af48904d4320..93ec90debb8a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - true}}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + true}, "taskName": "0"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "It has a sleek premium aluminum design that makes it beautiful to look at.", "language": "en"}, {"id": @@ -12,7 +12,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '627' + - '644' Content-Type: - application/json User-Agent: @@ -23,13 +23,13 @@ interactions: body: string: '' headers: - apim-request-id: 8b24695f-7ecd-4a0a-9764-ccf3fc7eeff6 - date: Wed, 06 Oct 2021 20:58:14 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839 + apim-request-id: efd32cfb-4242-4ddb-bd2f-bced91f3ddfa + date: Thu, 07 Oct 2021 23:58:12 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '188' + x-envoy-upstream-service-time: '205' status: code: 202 message: Accepted @@ -40,110 +40,132 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True response: body: - string: '{"jobId":"20c2ebd2-6616-4cc3-8238-762de97ec839","lastUpdateDateTime":"2021-10-06T20:58:15Z","createdDateTime":"2021-10-06T20:58:14Z","expirationDateTime":"2021-10-07T20:58:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: ec67d6a2-d4d5-42c9-89f8-f0dde309c89b + apim-request-id: d57d3f3d-a044-4df2-bfa0-6190892490de content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:19 GMT + date: Thu, 07 Oct 2021 23:58:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True response: body: - string: '{"jobId":"20c2ebd2-6616-4cc3-8238-762de97ec839","lastUpdateDateTime":"2021-10-06T20:58:15Z","createdDateTime":"2021-10-06T20:58:14Z","expirationDateTime":"2021-10-07T20:58:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 26586a41-3ca2-4885-8a98-79a47e83aac2 + apim-request-id: 2c83c24e-4110-4b9d-b465-58ebf0daa0f9 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:25 GMT + date: Thu, 07 Oct 2021 23:58:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True response: body: - string: '{"jobId":"20c2ebd2-6616-4cc3-8238-762de97ec839","lastUpdateDateTime":"2021-10-06T20:58:15Z","createdDateTime":"2021-10-06T20:58:14Z","expirationDateTime":"2021-10-07T20:58:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 05953d84-215b-4b2e-9a09-cca882910855 + apim-request-id: 288470b0-5aaa-4eb9-b650-3fee26afcd41 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:29 GMT + date: Thu, 07 Oct 2021 23:58:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '8' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True + response: + body: + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 541bcb7c-a6cf-4e09-82db-79f4f63244d8 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:58:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True response: body: - string: '{"jobId":"20c2ebd2-6616-4cc3-8238-762de97ec839","lastUpdateDateTime":"2021-10-06T20:58:15Z","createdDateTime":"2021-10-06T20:58:14Z","expirationDateTime":"2021-10-07T20:58:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 42c01cbd-347e-4c9d-9374-83417bba01f7 + apim-request-id: 8096504b-09ec-4183-9bec-435534b653cb content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:34 GMT + date: Thu, 07 Oct 2021 23:58:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '6' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True response: body: - string: '{"jobId":"20c2ebd2-6616-4cc3-8238-762de97ec839","lastUpdateDateTime":"2021-10-06T20:58:39Z","createdDateTime":"2021-10-06T20:58:14Z","expirationDateTime":"2021-10-07T20:58:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:39.5393112Z","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:40Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:40.0746684Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]},{"id":"1","sentiment":"negative","statistics":{"charactersCount":32,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: b81bdb94-aa95-45de-a4f8-372047649fd6 + apim-request-id: dafaba7b-6769-4b2f-a651-514afe7a8a9c content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:39 GMT + date: Thu, 07 Oct 2021 23:58:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '144' + x-envoy-upstream-service-time: '75' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/20c2ebd2-6616-4cc3-8238-762de97ec839?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml index a1016e8f57db..7846dcc1b687 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": "en"}, {"id": "0", "text": ":(", "language": "en"}, {"id": "19", "text": ":P", "language": "en"}, {"id": "1", "text": ":D", "language": "en"}]}}' @@ -18,7 +19,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '1148' + - '1250' Content-Type: - application/json User-Agent: @@ -29,13 +30,13 @@ interactions: body: string: '' headers: - apim-request-id: 2bddccbb-a3a6-4258-b13f-0256067ee473 - date: Wed, 06 Oct 2021 20:58:41 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa + apim-request-id: c0a6af82-24a7-4663-b134-6e957b901172 + date: Thu, 07 Oct 2021 23:58:44 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '555' + x-envoy-upstream-service-time: '995' status: code: 202 message: Accepted @@ -46,130 +47,108 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True - response: - body: - string: '{"jobId":"0f13744f-7930-4bc5-b2c2-f70a6e0f8daa","lastUpdateDateTime":"2021-10-06T20:58:41Z","createdDateTime":"2021-10-06T20:58:40Z","expirationDateTime":"2021-10-07T20:58:40Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' - headers: - apim-request-id: 7573ed43-4c1f-480b-82ee-8f5d26e7613c - content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:46 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' - status: - code: 200 - message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"0f13744f-7930-4bc5-b2c2-f70a6e0f8daa","lastUpdateDateTime":"2021-10-06T20:58:48Z","createdDateTime":"2021-10-06T20:58:40Z","expirationDateTime":"2021-10-07T20:58:40Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:48.935938Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:58:44Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: - apim-request-id: 82968c5c-823d-4b05-af21-07dba313d668 + apim-request-id: ece3e627-f17b-4a96-a017-5e3b5d070ad6 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:51 GMT + date: Thu, 07 Oct 2021 23:58:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '87' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"0f13744f-7930-4bc5-b2c2-f70a6e0f8daa","lastUpdateDateTime":"2021-10-06T20:58:55Z","createdDateTime":"2021-10-06T20:58:40Z","expirationDateTime":"2021-10-07T20:58:40Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:55.6798594Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:48.935938Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:54.6361013Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:55.6034397Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:58:54Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:51.8509311Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:54.2202072Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.2528101Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.9770416Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 8ae66f38-ade0-4c50-86f6-92b87609deda + apim-request-id: 1a5b4657-0f02-425c-96c0-bb063bcb911c content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:58:56 GMT + date: Thu, 07 Oct 2021 23:58:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '421' + x-envoy-upstream-service-time: '353' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"0f13744f-7930-4bc5-b2c2-f70a6e0f8daa","lastUpdateDateTime":"2021-10-06T20:59:01Z","createdDateTime":"2021-10-06T20:58:40Z","expirationDateTime":"2021-10-07T20:58:40Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:55.6798594Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:48.935938Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:54.6361013Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:59:01.1848722Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:55.6034397Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:58:54Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:51.8509311Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:54.2202072Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.2528101Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.9770416Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 3373b0ef-8383-43b0-b0b2-e33d14c4ba74 + apim-request-id: b63169d8-2368-46b6-b827-aa9cec2a8594 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:59:01 GMT + date: Thu, 07 Oct 2021 23:59:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '383' + x-envoy-upstream-service-time: '750' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"0f13744f-7930-4bc5-b2c2-f70a6e0f8daa","lastUpdateDateTime":"2021-10-06T20:59:01Z","createdDateTime":"2021-10-06T20:58:40Z","expirationDateTime":"2021-10-07T20:58:40Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:55.6798594Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:48.935938Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:54.6361013Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:59:01.1848722Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:55.6034397Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:58:54Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:51.8509311Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:54.2202072Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.2528101Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.9770416Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 11baa08c-49ab-4a72-9524-175c4c43d528 + apim-request-id: 7bd6e155-45f2-4c0d-99ae-c1beb072a97c content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:59:07 GMT + date: Thu, 07 Oct 2021 23:59:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '463' + x-envoy-upstream-service-time: '328' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"0f13744f-7930-4bc5-b2c2-f70a6e0f8daa","lastUpdateDateTime":"2021-10-06T20:59:07Z","createdDateTime":"2021-10-06T20:58:40Z","expirationDateTime":"2021-10-07T20:58:40Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:55.6798594Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:48.935938Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:54.6361013Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-06T20:59:01.1848722Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-06T20:58:55.6034397Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-06T20:59:07.4269246Z","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:59:06Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:51.8509311Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:54.2202072Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.2528101Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:59:05.9620129Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.9770416Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:59:06.576964Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 01efed23-1ca9-4b64-8503-83f21f94bf22 + apim-request-id: 5998b2fe-a637-4e06-8af9-d54c7eed426b content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:59:12 GMT + date: Thu, 07 Oct 2021 23:59:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '655' + x-envoy-upstream-service-time: '448' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/0f13744f-7930-4bc5-b2c2-f70a6e0f8daa?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_single_category_classify.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_single_category_classify.yaml index 87a00c435a51..33ce2fde0104 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_single_category_classify.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_single_category_classify.yaml @@ -4,22 +4,22 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [{"parameters": {"project-name": "single_category_classify_project_name", - "deployment-name": "single_category_classify_project_name"}}], "customMultiClassificationTasks": - []}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report by - the Government Accountability Office (GAO) found that the dramatic increase - in oil and natural gas development on federal lands over the past six years - has stretched the staff of the BLM to a point that it has been unable to meet - its environmental protection responsibilities.", "language": "en"}, {"id": "2", - "text": "David Schmidt, senior vice president--Food Safety, International Food - Information Council (IFIC), Washington, D.C., discussed the physical activity - component.", "language": "en"}, {"id": "3", "text": "I need a reservation for - an indoor restaurant in China. Please don''t stop the music. Play music and - add it to my playlist", "language": "en"}]}}' + "deployment-name": "single_category_classify_project_name"}, "taskName": "0"}], + "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food + Safety, International Food Information Council (IFIC), Washington, D.C., discussed + the physical activity component.", "language": "en"}, {"id": "3", "text": "I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1179' + - '1196' Content-Type: - application/json User-Agent: @@ -30,9 +30,9 @@ interactions: body: string: '' headers: - apim-request-id: efd28695-9e74-4666-a6e2-cf8fae0905c7 - date: Wed, 06 Oct 2021 20:59:14 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/65a67a66-e95a-475b-b0fc-df92438a225f + apim-request-id: f9824da7-7fe4-4af5-8251-8b98331ad1a2 + date: Thu, 07 Oct 2021 23:59:12 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/885c214e-654c-4e58-b9d5-16ca756d6d11 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -47,20 +47,20 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/65a67a66-e95a-475b-b0fc-df92438a225f?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/885c214e-654c-4e58-b9d5-16ca756d6d11?showStats=True response: body: - string: '{"jobId":"65a67a66-e95a-475b-b0fc-df92438a225f","lastUpdateDateTime":"2021-10-06T20:59:18Z","createdDateTime":"2021-10-06T20:59:14Z","expirationDateTime":"2021-10-07T20:59:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-06T20:59:18.0881754Z","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classification":{"category":"RateBook","confidenceScore":0.57},"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classification":{"category":"BookRestaurant","confidenceScore":1.0},"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}]}}' + string: '{"jobId":"885c214e-654c-4e58-b9d5-16ca756d6d11","lastUpdateDateTime":"2021-10-07T23:59:13Z","createdDateTime":"2021-10-07T23:59:12Z","expirationDateTime":"2021-10-08T23:59:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:59:13.7403633Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classification":{"category":"RateBook","confidenceScore":0.57},"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classification":{"category":"BookRestaurant","confidenceScore":1.0},"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}]}}' headers: - apim-request-id: 1308082d-9c2b-4e69-82b1-08a1487a5562 + apim-request-id: 8783048e-2cff-48e2-a819-a44262eb7bec content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:59:19 GMT + date: Thu, 07 Oct 2021 23:59:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '84' + x-envoy-upstream-service-time: '196' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/65a67a66-e95a-475b-b0fc-df92438a225f?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/885c214e-654c-4e58-b9d5-16ca756d6d11?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml index 5ea5d9ab3568..400dbac6fe35 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml @@ -1,16 +1,17 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}], "customEntityRecognitionTasks": - [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "input document", "language": "en"}, {"id": "1", "text": "input document", "language": "en"}, {"id": "2", "text": "input document", "language": "en"}, {"id": "3", "text": "input document", @@ -35,7 +36,7 @@ interactions: Accept: - application/json, text/json Content-Length: - - '2464' + - '2566' Content-Type: - application/json User-Agent: @@ -47,9 +48,9 @@ interactions: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 25 records are permitted."}}}' headers: - apim-request-id: cee44da6-5c4f-4a8d-8415-0dccc1feb31f + apim-request-id: 3f4f9ff0-fd80-4013-a47b-5d9d3880e784 content-type: application/json; charset=utf-8 - date: Wed, 06 Oct 2021 20:59:19 GMT + date: Thu, 07 Oct 2021 23:59:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff From 3981caeeaad27594d0e41dc189960c9e3423f485 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Thu, 7 Oct 2021 17:08:29 -0700 Subject: [PATCH 3/5] lint --- .../azure/ai/textanalytics/_text_analytics_client.py | 5 ++++- .../ai/textanalytics/aio/_text_analytics_client_async.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py index bd648579c37e..f78106fe6f47 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py @@ -945,7 +945,10 @@ def begin_analyze_actions( # type: ignore doc_id_order = [doc.get("id") for doc in docs.documents] try: - generated_tasks = [action._to_generated(self._api_version, str(idx)) for idx, action in enumerate(actions)] + generated_tasks = [ + action._to_generated(self._api_version, str(idx)) # pylint: disable=protected-access + for idx, action in enumerate(actions) + ] except AttributeError: raise TypeError("Unsupported action type in list.") task_order = [(_determine_action_type(a), a.task_name) for a in generated_tasks] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py index 32e6029bd32f..cc251cb8781f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py @@ -964,7 +964,10 @@ async def begin_analyze_actions( # type: ignore doc_id_order = [doc.get("id") for doc in docs.documents] try: - generated_tasks = [action._to_generated(self._api_version, str(idx)) for idx, action in enumerate(actions)] + generated_tasks = [ + action._to_generated(self._api_version, str(idx)) # pylint: disable=protected-access + for idx, action in enumerate(actions) + ] except AttributeError: raise TypeError("Unsupported action type in list.") task_order = [(_determine_action_type(a), a.task_name) for a in generated_tasks] From f78867dc8056393986cf38bd32b7c7cd4f8f36f8 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Mon, 11 Oct 2021 11:03:18 -0700 Subject: [PATCH 4/5] review feedback --- .../tests/test_analyze.py | 52 ++++++++++--------- .../tests/test_analyze_async.py | 52 ++++++++++--------- 2 files changed, 56 insertions(+), 48 deletions(-) diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py index f85f8e8b0ff2..174d5e1274ca 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py @@ -803,30 +803,32 @@ def test_multiple_of_same_action(self, client): {"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, ] + actions = [ + AnalyzeSentimentAction(), + RecognizePiiEntitiesAction(), + RecognizeEntitiesAction(), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(order_by="Rank"), + RecognizePiiEntitiesAction(categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]), + ExtractKeyPhrasesAction(), + RecognizeEntitiesAction(), + AnalyzeSentimentAction(show_opinion_mining=True), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(max_sentence_count=1), + ExtractKeyPhrasesAction(), + ] + response = client.begin_analyze_actions( docs, - actions=[ - AnalyzeSentimentAction(), - RecognizePiiEntitiesAction(), - RecognizeEntitiesAction(), - RecognizeLinkedEntitiesAction(), - ExtractSummaryAction(order_by="Rank"), - RecognizePiiEntitiesAction(categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]), - ExtractKeyPhrasesAction(), - RecognizeEntitiesAction(), - AnalyzeSentimentAction(show_opinion_mining=True), - RecognizeLinkedEntitiesAction(), - ExtractSummaryAction(max_sentence_count=1), - ExtractKeyPhrasesAction(), - ], + actions=actions, polling_interval=self._interval(), ).result() action_results = list(response) assert len(action_results) == len(docs) - assert len(action_results[0]) == 12 - assert len(action_results[1]) == 12 - assert len(action_results[2]) == 12 + assert len(action_results[0]) == len(actions) + assert len(action_results[1]) == len(actions) + assert len(action_results[2]) == len(actions) for idx, action_result in enumerate(action_results): if idx == 0: @@ -888,20 +890,22 @@ def test_multiple_of_same_action_with_partial_results(self, client): docs = [{"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, {"id": "2", "text": ""}] + actions = [ + ExtractSummaryAction(max_sentence_count=3), + RecognizePiiEntitiesAction(), + ExtractSummaryAction(max_sentence_count=5) + ] + response = client.begin_analyze_actions( docs, - actions=[ - ExtractSummaryAction(max_sentence_count=3), - RecognizePiiEntitiesAction(), - ExtractSummaryAction(max_sentence_count=5) - ], + actions=actions, polling_interval=self._interval(), ).result() action_results = list(response) assert len(action_results) == len(docs) - assert len(action_results[0]) == 3 - assert len(action_results[1]) == 3 + assert len(action_results[0]) == len(actions) + assert len(action_results[1]) == len(actions) # first doc assert isinstance(action_results[0][0], ExtractSummaryResult) diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py index 5bcff354b681..1b6d3fc83a1a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py @@ -840,23 +840,25 @@ async def test_multiple_of_same_action(self, client): {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number? Here is another sentence."}, {"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, ] + + actions = [ + AnalyzeSentimentAction(), + RecognizePiiEntitiesAction(), + RecognizeEntitiesAction(), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(order_by="Rank"), + RecognizePiiEntitiesAction(categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]), + ExtractKeyPhrasesAction(), + RecognizeEntitiesAction(), + AnalyzeSentimentAction(show_opinion_mining=True), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(max_sentence_count=1), + ExtractKeyPhrasesAction(), + ] async with client: response = await (await client.begin_analyze_actions( docs, - actions=[ - AnalyzeSentimentAction(), - RecognizePiiEntitiesAction(), - RecognizeEntitiesAction(), - RecognizeLinkedEntitiesAction(), - ExtractSummaryAction(order_by="Rank"), - RecognizePiiEntitiesAction(categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]), - ExtractKeyPhrasesAction(), - RecognizeEntitiesAction(), - AnalyzeSentimentAction(show_opinion_mining=True), - RecognizeLinkedEntitiesAction(), - ExtractSummaryAction(max_sentence_count=1), - ExtractKeyPhrasesAction(), - ], + actions=actions, polling_interval=self._interval(), )).result() @@ -864,9 +866,9 @@ async def test_multiple_of_same_action(self, client): async for p in response: action_results.append(p) assert len(action_results) == len(docs) - assert len(action_results[0]) == 12 - assert len(action_results[1]) == 12 - assert len(action_results[2]) == 12 + assert len(action_results[0]) == len(actions) + assert len(action_results[1]) == len(actions) + assert len(action_results[2]) == len(actions) for idx, action_result in enumerate(action_results): if idx == 0: @@ -928,14 +930,16 @@ async def test_multiple_of_same_action_with_partial_results(self, client): docs = [{"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, {"id": "2", "text": ""}] + actions = [ + ExtractSummaryAction(max_sentence_count=3), + RecognizePiiEntitiesAction(), + ExtractSummaryAction(max_sentence_count=5) + ] + async with client: response = await (await client.begin_analyze_actions( docs, - actions=[ - ExtractSummaryAction(max_sentence_count=3), - RecognizePiiEntitiesAction(), - ExtractSummaryAction(max_sentence_count=5) - ], + actions=actions, polling_interval=self._interval(), )).result() @@ -944,8 +948,8 @@ async def test_multiple_of_same_action_with_partial_results(self, client): action_results.append(p) assert len(action_results) == len(docs) - assert len(action_results[0]) == 3 - assert len(action_results[1]) == 3 + assert len(action_results[0]) == len(actions) + assert len(action_results[1]) == len(actions) # first doc assert isinstance(action_results[0][0], ExtractSummaryResult) From 604e223f691bb4995033f02a55cb33cba306c221 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Wed, 13 Oct 2021 16:39:54 -0700 Subject: [PATCH 5/5] izzy's feedback --- .../azure/ai/textanalytics/_response_handlers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py index a6323e57cc1c..a464e747c1dc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py @@ -346,8 +346,11 @@ def _get_good_result(task, doc_id_order, response_headers, returned_tasks_object current_task_type ) property_name = _get_property_name_from_task_type(current_task_type) - response_task_to_deserialize = \ - [task for task in getattr(returned_tasks_object, property_name) if task.task_name == task_name][0] + try: + response_task_to_deserialize = \ + next(task for task in getattr(returned_tasks_object, property_name) if task.task_name == task_name) + except StopIteration: + raise ValueError("Unexpected response from service - unable to deserialize result.") return deserialization_callback( doc_id_order, response_task_to_deserialize.results, response_headers, lro=True )