diff --git a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md index aecbd82c9fb0..3745b7c35488 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md +++ b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md @@ -11,6 +11,7 @@ ### Bugs Fixed ### Other Changes +- Migrate test recordings to assets repo. ## 5.2.7 (2023-05-23) diff --git a/sdk/textanalytics/azure-ai-textanalytics/assets.json b/sdk/textanalytics/azure-ai-textanalytics/assets.json new file mode 100644 index 000000000000..7cb579e0f0cd --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "java", + "TagPrefix": "java/textanalytics/azure-ai-textanalytics", + "Tag": "java/textanalytics/azure-ai-textanalytics_3369166513" +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/pom.xml b/sdk/textanalytics/azure-ai-textanalytics/pom.xml index ef607c5ffb31..9a63cc31c17a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/pom.xml +++ b/sdk/textanalytics/azure-ai-textanalytics/pom.xml @@ -46,7 +46,7 @@ com.azure azure-core - 1.39.0 + 1.40.0-beta.1 com.azure @@ -68,7 +68,7 @@ com.azure azure-core-test - 1.17.0 + 1.18.0-beta.1 test diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeAbstractiveSummaryActionWithDefaultParameterValues[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeAbstractiveSummaryActionWithDefaultParameterValues[1].json deleted file mode 100644 index 635bfa558d1d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeAbstractiveSummaryActionWithDefaultParameterValues[1].json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1819", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:55:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a3b4903b-019f-4de5-9c69-f946c8f428cc" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "parameters": { - "stringIndexType": "Utf16CodeUnit", - "loggingOptOut": true - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "b27924fe-e54b-47c5-8a66-ea3a7519dbaa", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:55:37 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/ed5298dc-f3ad-4f34-92cd-bba6fc45c733?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "177", - "x-ms-region": "East US" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ed5298dc-f3ad-4f34-92cd-bba6fc45c733?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:56:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7d753032-8316-47ec-a034-77d66cd9269e" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "893a37ce-6cad-4e20-98cf-1ab292707bd5", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:56:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "45", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "ed5298dc-f3ad-4f34-92cd-bba6fc45c733", - "lastUpdatedDateTime": "2023-04-05T19:55:39Z", - "createdDateTime": "2023-04-05T19:55:37Z", - "expirationDateTime": "2023-04-06T19:55:37Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:55:39.8901224Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ed5298dc-f3ad-4f34-92cd-bba6fc45c733?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:56:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "bdb5f750-bf7d-433c-9079-01d6e1f72bef" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8816d7c3-f827-4ed3-a122-d098efdc23bd", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:56:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "ed5298dc-f3ad-4f34-92cd-bba6fc45c733", - "lastUpdatedDateTime": "2023-04-05T19:55:39Z", - "createdDateTime": "2023-04-05T19:55:37Z", - "expirationDateTime": "2023-04-06T19:55:37Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:55:39.8901224Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsAutoDetectedLanguage[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsAutoDetectedLanguage[1].json deleted file mode 100644 index 71c1afd3a5c2..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsAutoDetectedLanguage[1].json +++ /dev/null @@ -1,957 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "708", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c291818a-11c7-4cb5-94b3-766d89d88953" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft was founded by Bill Gates and Paul Allen", - "language": "auto" - }, - { - "id": "1", - "text": "Microsoft fue fundado por Bill Gates y Paul Allen", - "language": "auto" - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "KeyPhraseExtraction", - "parameters": { - "loggingOptOut": false - } - }, - { - "kind": "EntityLinking", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "SentimentAnalysis", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "5ebac330-794b-4889-8751-b55743bc85d0", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/b10a31b1-06ae-4692-8e67-2bb24848d4fd?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "342", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b10a31b1-06ae-4692-8e67-2bb24848d4fd?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e5179eab-b67a-4b8d-a8df-7bf399a3630e" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c8603606-c21c-4056-935e-0056fd502768", - "Content-Length": "5797", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "497", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b10a31b1-06ae-4692-8e67-2bb24848d4fd", - "lastUpdatedDateTime": "2023-04-05T18:54:45Z", - "createdDateTime": "2023-04-05T18:54:41Z", - "expirationDateTime": "2023-04-06T18:54:41Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:45.248065Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 1.0 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 1.0 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 1.0 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 26, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 39, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:45.7113066Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* was founded by ********** and **********", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.96 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 0.99 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "redactedText": "********* fue fundado por ********** y **********", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.96 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 26, - "length": 10, - "confidenceScore": 0.99 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 39, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:44.2360842Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:44.8356921Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.49 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "0d47c987-0042-5576-15e8-97af601614fa", - "name": "Bill Gates", - "matches": [ - { - "text": "Bill Gates", - "offset": 25, - "length": 10, - "confidenceScore": 0.52 - } - ], - "language": "en", - "id": "Bill Gates", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "df2c4376-9923-6a54-893f-2ee5a5badbc7", - "name": "Paul Allen", - "matches": [ - { - "text": "Paul Allen", - "offset": 40, - "length": 10, - "confidenceScore": 0.54 - } - ], - "language": "en", - "id": "Paul Allen", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.38 - } - ], - "language": "es", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "0d47c987-0042-5576-15e8-97af601614fa", - "name": "Bill Gates", - "matches": [ - { - "text": "Bill Gates", - "offset": 26, - "length": 10, - "confidenceScore": 0.37 - } - ], - "language": "es", - "id": "Bill Gates", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "df2c4376-9923-6a54-893f-2ee5a5badbc7", - "name": "Paul Allen", - "matches": [ - { - "text": "Paul Allen", - "offset": 39, - "length": 10, - "confidenceScore": 0.9 - } - ], - "language": "es", - "id": "Paul Allen", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:45.1687957Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.99, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.99, - "negative": 0.0 - }, - "offset": 0, - "length": 50, - "text": "Microsoft was founded by Bill Gates and Paul Allen" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.02, - "neutral": 0.98, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.02, - "neutral": 0.98, - "negative": 0.0 - }, - "offset": 0, - "length": 49, - "text": "Microsoft fue fundado por Bill Gates y Paul Allen" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b10a31b1-06ae-4692-8e67-2bb24848d4fd?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "757aafb0-6fc1-4d9b-a295-6122e1989b40" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5b08a6f4-12d2-45dc-b0a6-635de4f4fdcc", - "Content-Length": "5797", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "244", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b10a31b1-06ae-4692-8e67-2bb24848d4fd", - "lastUpdatedDateTime": "2023-04-05T18:54:45Z", - "createdDateTime": "2023-04-05T18:54:41Z", - "expirationDateTime": "2023-04-06T18:54:41Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:45.248065Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 1.0 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 1.0 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 1.0 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 26, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 39, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:45.7113066Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* was founded by ********** and **********", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.96 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 0.99 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "redactedText": "********* fue fundado por ********** y **********", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.96 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 26, - "length": 10, - "confidenceScore": 0.99 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 39, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:44.2360842Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:44.8356921Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.49 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "0d47c987-0042-5576-15e8-97af601614fa", - "name": "Bill Gates", - "matches": [ - { - "text": "Bill Gates", - "offset": 25, - "length": 10, - "confidenceScore": 0.52 - } - ], - "language": "en", - "id": "Bill Gates", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "df2c4376-9923-6a54-893f-2ee5a5badbc7", - "name": "Paul Allen", - "matches": [ - { - "text": "Paul Allen", - "offset": 40, - "length": 10, - "confidenceScore": 0.54 - } - ], - "language": "en", - "id": "Paul Allen", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.38 - } - ], - "language": "es", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "0d47c987-0042-5576-15e8-97af601614fa", - "name": "Bill Gates", - "matches": [ - { - "text": "Bill Gates", - "offset": 26, - "length": 10, - "confidenceScore": 0.37 - } - ], - "language": "es", - "id": "Bill Gates", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "df2c4376-9923-6a54-893f-2ee5a5badbc7", - "name": "Paul Allen", - "matches": [ - { - "text": "Paul Allen", - "offset": 39, - "length": 10, - "confidenceScore": 0.9 - } - ], - "language": "es", - "id": "Paul Allen", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:45.1687957Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.99, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.99, - "negative": 0.0 - }, - "offset": 0, - "length": 50, - "text": "Microsoft was founded by Bill Gates and Paul Allen" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.02, - "neutral": 0.98, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.02, - "neutral": 0.98, - "negative": 0.0 - }, - "offset": 0, - "length": 49, - "text": "Microsoft fue fundado por Bill Gates y Paul Allen" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsEmptyInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsEmptyInput[1].json deleted file mode 100644 index f721723386d8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsEmptyInput[1].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsStringInput[1].json deleted file mode 100644 index 2973242e3f9b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsStringInput[1].json +++ /dev/null @@ -1,766 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "706", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:52:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "57912cbe-6046-4cb5-b714-3c833d7fb024" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "KeyPhraseExtraction", - "parameters": { - "loggingOptOut": false - } - }, - { - "kind": "EntityLinking", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "SentimentAnalysis", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "2b0a4718-de76-4c71-a313-5b68e37f363b", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/1f998f0e-d278-40e3-92ce-080c490bf468?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "394", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/1f998f0e-d278-40e3-92ce-080c490bf468?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:53:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "37ed4242-6f39-491b-8521-7b24b7d402cf" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bf4924d2-fa2c-44d3-a075-e7501625c1e4", - "Content-Length": "4320", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:53:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "347", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "1f998f0e-d278-40e3-92ce-080c490bf468", - "lastUpdatedDateTime": "2023-04-05T18:52:44Z", - "createdDateTime": "2023-04-05T18:52:37Z", - "expirationDateTime": "2023-04-06T18:52:37Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:41.1051569Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:44.5255086Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:39.7550268Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:41.9960764Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.28 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "e8c1a257-7315-a482-c81d-202a0260e4ed", - "name": "Application programming interface", - "matches": [ - { - "text": "API\u0027s", - "offset": 61, - "length": 5, - "confidenceScore": 0.85 - } - ], - "language": "en", - "id": "Application programming interface", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:39.5485207Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "offset": 0, - "length": 67, - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/1f998f0e-d278-40e3-92ce-080c490bf468?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:53:08 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d4289e80-f0f2-46f4-b50e-19bc8119d463" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ec3b0535-803b-41fb-8c62-370647544963", - "Content-Length": "4320", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:53:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "221", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "1f998f0e-d278-40e3-92ce-080c490bf468", - "lastUpdatedDateTime": "2023-04-05T18:52:44Z", - "createdDateTime": "2023-04-05T18:52:37Z", - "expirationDateTime": "2023-04-06T18:52:37Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:41.1051569Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:44.5255086Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:39.7550268Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:41.9960764Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.28 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "e8c1a257-7315-a482-c81d-202a0260e4ed", - "name": "Application programming interface", - "matches": [ - { - "text": "API\u0027s", - "offset": 61, - "length": 5, - "confidenceScore": 0.85 - } - ], - "language": "en", - "id": "Application programming interface", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:39.5485207Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "offset": 0, - "length": 67, - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsWithActionNames[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsWithActionNames[1].json deleted file mode 100644 index be0d7b737b5a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsWithActionNames[1].json +++ /dev/null @@ -1,532 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "882", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:58:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "55208f3d-42a7-4e37-843e-3011a97b82f2" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "PiiEntityRecognition", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "KeyPhraseExtraction", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false - } - }, - { - "kind": "EntityLinking", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "SentimentAnalysis", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "ExtractiveSummarization", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "423377d7-2b85-4c40-a8ac-bc85d275d4e0", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:58:53 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/39a4b9e2-5734-4d80-b450-d10d8fae0536?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "250", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/39a4b9e2-5734-4d80-b450-d10d8fae0536?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:59:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "225359cd-eef4-4f2f-8576-1f03fc8f8cf2" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b6866b29-db5f-4ca0-8bfa-9f687913b87b", - "Content-Length": "2847", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:59:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "240", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "39a4b9e2-5734-4d80-b450-d10d8fae0536", - "lastUpdatedDateTime": "2023-04-05T18:59:00Z", - "createdDateTime": "2023-04-05T18:58:53Z", - "expirationDateTime": "2023-04-06T18:58:53Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 6, - "failed": 0, - "inProgress": 0, - "total": 6, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:59:00.9937572Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:54.9083754Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:55.0139388Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:55.9785466Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:54.7493749Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - }, - { - "kind": "ExtractiveSummarizationLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:53.4952811Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "I had a wonderful trip to Seattle last week.", - "rankScore": 1.0, - "offset": 0, - "length": 44 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/39a4b9e2-5734-4d80-b450-d10d8fae0536?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:59:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3178fe9c-015f-4552-aae3-d3c53dc5e031" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "83d4a4e2-dcbf-4466-be39-df63d317d654", - "Content-Length": "2847", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:59:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "244", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "39a4b9e2-5734-4d80-b450-d10d8fae0536", - "lastUpdatedDateTime": "2023-04-05T18:59:00Z", - "createdDateTime": "2023-04-05T18:58:53Z", - "expirationDateTime": "2023-04-06T18:58:53Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 6, - "failed": 0, - "inProgress": 0, - "total": 6, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:59:00.9937572Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:54.9083754Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:55.0139388Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:55.9785466Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:54.7493749Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - }, - { - "kind": "ExtractiveSummarizationLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:58:53.4952811Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "I had a wonderful trip to Seattle last week.", - "rankScore": 1.0, - "offset": 0, - "length": 44 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsWithOptions[1].json deleted file mode 100644 index 3c8962e41b8a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeActionsWithOptions[1].json +++ /dev/null @@ -1,766 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "706", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:45 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3bfb3a5f-c8cd-4caa-8db6-53a9cb51f0c8" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "KeyPhraseExtraction", - "parameters": { - "loggingOptOut": false - } - }, - { - "kind": "EntityLinking", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "SentimentAnalysis", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "d5990bad-ddd3-4983-b022-547f6029cd6c", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:55:45 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/2c871e50-1e72-47ed-aac3-e6bd02d83fe9?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1212", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/2c871e50-1e72-47ed-aac3-e6bd02d83fe9?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:56:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fcf86ebf-462b-45ea-bbfd-132358cd6d97" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "27e8f26f-8693-4a0b-822b-ae0e77e9c83d", - "Content-Length": "4319", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:56:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "341", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "2c871e50-1e72-47ed-aac3-e6bd02d83fe9", - "lastUpdatedDateTime": "2023-04-05T18:55:49Z", - "createdDateTime": "2023-04-05T18:55:44Z", - "expirationDateTime": "2023-04-06T18:55:44Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:48.7219745Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:49.3878539Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:48.0505661Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:49.014873Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.28 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "e8c1a257-7315-a482-c81d-202a0260e4ed", - "name": "Application programming interface", - "matches": [ - { - "text": "API\u0027s", - "offset": 61, - "length": 5, - "confidenceScore": 0.85 - } - ], - "language": "en", - "id": "Application programming interface", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:47.9151601Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "offset": 0, - "length": 67, - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/2c871e50-1e72-47ed-aac3-e6bd02d83fe9?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a5f949c3-416b-409a-b0a3-21c8da9b62f3" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "def0e28d-f596-49bf-9350-ea78b3f15a20", - "Content-Length": "4319", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:56:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "246", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "2c871e50-1e72-47ed-aac3-e6bd02d83fe9", - "lastUpdatedDateTime": "2023-04-05T18:55:49Z", - "createdDateTime": "2023-04-05T18:55:44Z", - "expirationDateTime": "2023-04-06T18:55:44Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:48.7219745Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:49.3878539Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:48.0505661Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:49.014873Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.28 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "e8c1a257-7315-a482-c81d-202a0260e4ed", - "name": "Application programming interface", - "matches": [ - { - "text": "API\u0027s", - "offset": 61, - "length": 5, - "confidenceScore": 0.85 - } - ], - "language": "en", - "id": "Application programming interface", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:47.9151601Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "offset": 0, - "length": 67, - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeEntitiesRecognitionActionResolution[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeEntitiesRecognitionActionResolution[1].json deleted file mode 100644 index f2bfa287da23..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeEntitiesRecognitionActionResolution[1].json +++ /dev/null @@ -1,224 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "243", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:05:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8cb5cde8-f09a-410a-bd13-4a907a4a51dc" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The cat is 1 year old and weighs 10 pounds." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "modelVersion": "2022-10-01-preview", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "9c9896e0-c6ac-426c-be57-14cde1f4ba9e", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:05:34 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/5c6a2cc1-6994-4200-aeda-39ad7462b13a?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "123", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5c6a2cc1-6994-4200-aeda-39ad7462b13a?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:06:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "38b4a64d-52df-4e2f-bef1-2029a73cf713" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "be54139c-21c4-439d-a82e-429f2d2d3e00", - "Content-Length": "889", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:06:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "73", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5c6a2cc1-6994-4200-aeda-39ad7462b13a", - "lastUpdatedDateTime": "2023-04-05T19:05:36Z", - "createdDateTime": "2023-04-05T19:05:35Z", - "expirationDateTime": "2023-04-06T19:05:35Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T19:05:36.7367676Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "1 year old", - "category": "Quantity", - "subcategory": "Age", - "offset": 11, - "length": 10, - "confidenceScore": 0.99, - "resolutions": [ - { - "resolutionKind": "AgeResolution", - "unit": "Year", - "value": 1.0 - } - ] - }, - { - "text": "10 pounds", - "category": "Quantity", - "subcategory": "Dimension", - "offset": 33, - "length": 9, - "confidenceScore": 0.8, - "resolutions": [ - { - "resolutionKind": "WeightResolution", - "unit": "Pound", - "value": 10.0 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5c6a2cc1-6994-4200-aeda-39ad7462b13a?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:06:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "28000243-a4f9-48ce-b6e8-c84d0d6d930c" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e036bebe-c0a8-4c08-984a-fc5c71ac7914", - "Content-Length": "889", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:06:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "36", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5c6a2cc1-6994-4200-aeda-39ad7462b13a", - "lastUpdatedDateTime": "2023-04-05T19:05:36Z", - "createdDateTime": "2023-04-05T19:05:35Z", - "expirationDateTime": "2023-04-06T19:05:35Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T19:05:36.7367676Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "1 year old", - "category": "Quantity", - "subcategory": "Age", - "offset": 11, - "length": 10, - "confidenceScore": 0.99, - "resolutions": [ - { - "resolutionKind": "AgeResolution", - "unit": "Year", - "value": 1.0 - } - ] - }, - { - "text": "10 pounds", - "category": "Quantity", - "subcategory": "Dimension", - "offset": 33, - "length": 9, - "confidenceScore": 0.8, - "resolutions": [ - { - "resolutionKind": "WeightResolution", - "unit": "Pound", - "value": 10.0 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeEntitiesRecognitionAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeEntitiesRecognitionAction[1].json deleted file mode 100644 index 014de72fb95a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeEntitiesRecognitionAction[1].json +++ /dev/null @@ -1,318 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "318", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f9afa29d-6e58-4d31-b96c-6a49f43d6ff7" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "6d0e3229-88da-4e39-b563-062f7166d0f6", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:49:02 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/ebb41dee-735c-4cd4-8626-310fc8e19b91?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "228", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ebb41dee-735c-4cd4-8626-310fc8e19b91?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:49:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c3ecd36d-c2d9-4898-a84d-f048b00f4f90" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2da2dac7-f967-406c-a75b-1d1aa5f7ccb9", - "Content-Length": "1437", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "334", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ebb41dee-735c-4cd4-8626-310fc8e19b91", - "lastUpdatedDateTime": "2023-04-05T18:49:05Z", - "createdDateTime": "2023-04-05T18:49:02Z", - "expirationDateTime": "2023-04-06T18:49:02Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:49:05.1271852Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ebb41dee-735c-4cd4-8626-310fc8e19b91?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "59b4e01d-4a74-4e0c-b834-46bdabec44d5" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d159dacd-ff33-4375-ad9c-8e7c41b543ff", - "Content-Length": "1437", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "55", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ebb41dee-735c-4cd4-8626-310fc8e19b91", - "lastUpdatedDateTime": "2023-04-05T18:49:05Z", - "createdDateTime": "2023-04-05T18:49:02Z", - "expirationDateTime": "2023-04-06T18:49:02Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:49:05.1271852Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionMaxSentenceCountInvalidRangeException[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionMaxSentenceCountInvalidRangeException[1].json deleted file mode 100644 index 823e957477b8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionMaxSentenceCountInvalidRangeException[1].json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1837", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6d9ee719-914c-45e4-9b83-16cd3ee80446" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 0, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "051a36f0-9e51-4202-8b30-9af648a3b07f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation error: Job task parameter value \u00270\u0027 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max)." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation errors: [\u0027Invalid parameter in request\u0027]" - } - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1838", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fb5d1382-8233-4d8d-9416-f292a2330b5d" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 21, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "dfaa5fc8-7976-4647-95b8-e28673446230", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation error: Job task parameter value \u002721\u0027 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max)." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation errors: [\u0027Invalid parameter in request\u0027]" - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionSortedByOffset[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionSortedByOffset[1].json deleted file mode 100644 index 1228f85f25ba..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionSortedByOffset[1].json +++ /dev/null @@ -1,214 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1855", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:56:50 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4c614f8f-5587-4495-ae81-898a91496650" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 4, - "sortBy": "Offset", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "1779a304-6b3e-4a5e-9e09-4d44e854ab67", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:56:49 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/1fa96fb9-2d74-4146-8794-bf6a466a5a0e?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "179", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/1fa96fb9-2d74-4146-8794-bf6a466a5a0e?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:57:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9b27ddc4-0721-4e45-8224-f1e3bbd359b3" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ccdff330-9b99-4dde-a8a7-6f6c1f6e22ac", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:57:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "352", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "1fa96fb9-2d74-4146-8794-bf6a466a5a0e", - "lastUpdatedDateTime": "2023-04-05T18:56:50Z", - "createdDateTime": "2023-04-05T18:56:49Z", - "expirationDateTime": "2023-04-06T18:56:49Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:56:50.5122867Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/1fa96fb9-2d74-4146-8794-bf6a466a5a0e?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:57:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f8cef61f-e457-4d6d-a92f-17fdea1849d7" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2a99b2af-d96e-4761-be99-6779121106a7", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:57:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "42", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "1fa96fb9-2d74-4146-8794-bf6a466a5a0e", - "lastUpdatedDateTime": "2023-04-05T18:56:50Z", - "createdDateTime": "2023-04-05T18:56:49Z", - "expirationDateTime": "2023-04-06T18:56:49Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:56:50.5122867Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionSortedByRankScore[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionSortedByRankScore[1].json deleted file mode 100644 index 479c05334dcc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionSortedByRankScore[1].json +++ /dev/null @@ -1,214 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1853", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:53:40 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "69d5081c-3589-4579-88f1-7bf58a383f4a" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 4, - "sortBy": "Rank", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "21c78550-96e9-4047-bb46-85f34468d39f", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:53:39 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/7d192ba7-7c41-4834-aca1-83f6cec515ac?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "155", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/7d192ba7-7c41-4834-aca1-83f6cec515ac?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:54:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "78856a82-3045-4ecf-a238-6d58eed46690" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1ef6d089-b1e4-4d99-a610-60c65029d52e", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:54:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "37", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "7d192ba7-7c41-4834-aca1-83f6cec515ac", - "lastUpdatedDateTime": "2023-04-05T18:53:40Z", - "createdDateTime": "2023-04-05T18:53:39Z", - "expirationDateTime": "2023-04-06T18:53:39Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:53:40.3225747Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/7d192ba7-7c41-4834-aca1-83f6cec515ac?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:54:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fc05255f-9787-4bdf-86cd-87d8e03ae206" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "99f8b1d4-1773-408e-ae0f-d23280b9120f", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:54:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "50", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "7d192ba7-7c41-4834-aca1-83f6cec515ac", - "lastUpdatedDateTime": "2023-04-05T18:53:40Z", - "createdDateTime": "2023-04-05T18:53:39Z", - "expirationDateTime": "2023-04-06T18:53:39Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:53:40.3225747Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithDefaultParameterValues[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithDefaultParameterValues[1].json deleted file mode 100644 index f5c022d34b59..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithDefaultParameterValues[1].json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1819", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:59:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f4e679c2-97fb-4432-8a2e-d3f5c0e9820f" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "ddfe969b-b8e9-458f-9a14-43cc16122ba7", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:59:24 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/ab038399-06fe-4c27-b71b-b34a3e9c11ca?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "148", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ab038399-06fe-4c27-b71b-b34a3e9c11ca?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:59:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4f75cd4c-fa99-456d-b214-f2746ac3715a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "96284d40-78e7-4174-bdf3-21b1dc3b7ccb", - "Content-Length": "1214", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:59:54 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "139", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ab038399-06fe-4c27-b71b-b34a3e9c11ca", - "lastUpdatedDateTime": "2023-04-05T18:59:24Z", - "createdDateTime": "2023-04-05T18:59:24Z", - "expirationDateTime": "2023-04-06T18:59:24Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:59:24.9359712Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ab038399-06fe-4c27-b71b-b34a3e9c11ca?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:59:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ceaeb95a-a3d7-44c7-9c5c-71b8bbcb6601" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "979943c5-17a6-436e-ae5c-25cb758a4940", - "Content-Length": "1214", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:59:54 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "134", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ab038399-06fe-4c27-b71b-b34a3e9c11ca", - "lastUpdatedDateTime": "2023-04-05T18:59:24Z", - "createdDateTime": "2023-04-05T18:59:24Z", - "expirationDateTime": "2023-04-06T18:59:24Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:59:24.9359712Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithNonDefaultSentenceCount[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithNonDefaultSentenceCount[1].json deleted file mode 100644 index 002acf11520b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithNonDefaultSentenceCount[1].json +++ /dev/null @@ -1,225 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1837", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:50:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b4aae771-3601-4c56-81ef-c64d7d8bf445" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 5, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "43757421-841d-4ce1-be5b-734677b4cf38", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:50:33 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/22b94c5a-e0d7-47a6-82d9-b56710835512?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "194", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/22b94c5a-e0d7-47a6-82d9-b56710835512?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:51:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "741718e0-4e2c-43f0-9fe4-4db6a37ce8c8" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c1d815af-b78e-47a0-b3f7-54f46d0ebc00", - "Content-Length": "1666", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:51:04 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "58", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "22b94c5a-e0d7-47a6-82d9-b56710835512", - "lastUpdatedDateTime": "2023-04-05T18:50:35Z", - "createdDateTime": "2023-04-05T18:50:34Z", - "expirationDateTime": "2023-04-06T18:50:34Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:50:35.4766461Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/22b94c5a-e0d7-47a6-82d9-b56710835512?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:51:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8af572c5-3df7-482d-83bc-180833a82271" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "61219e34-53d1-49ba-89ab-3beb74f7270b", - "Content-Length": "1666", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:51:04 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "182", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "22b94c5a-e0d7-47a6-82d9-b56710835512", - "lastUpdatedDateTime": "2023-04-05T18:50:35Z", - "createdDateTime": "2023-04-05T18:50:34Z", - "expirationDateTime": "2023-04-06T18:50:34Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:50:35.4766461Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithSentenceCountLessThanMaxCount[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithSentenceCountLessThanMaxCount[1].json deleted file mode 100644 index 954591ef67fe..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeExtractSummaryActionWithSentenceCountLessThanMaxCount[1].json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1838", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:00:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "353cb7ce-df38-42ef-a8fb-aa4db7b4b812" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 20, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "3db175f1-52fc-4237-a19f-d9994b17793f", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:00:25 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/27ba12ad-7657-4954-8036-b078c6b74315?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/27ba12ad-7657-4954-8036-b078c6b74315?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:00:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "41d06faa-cc0a-4255-84b3-bf408a4b5254" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "512a0da9-319e-4771-82f3-fc67d4ac6c35", - "Content-Length": "2629", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:00:55 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "56", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "27ba12ad-7657-4954-8036-b078c6b74315", - "lastUpdatedDateTime": "2023-04-05T19:00:26Z", - "createdDateTime": "2023-04-05T19:00:25Z", - "expirationDateTime": "2023-04-06T19:00:25Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:00:26.2881135Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality.", - "rankScore": 0.3, - "offset": 161, - "length": 162 - }, - { - "text": "In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z).", - "rankScore": 0.12, - "offset": 324, - "length": 192 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand.", - "rankScore": 0.0, - "offset": 1237, - "length": 241 - }, - { - "text": "I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "rankScore": 0.19, - "offset": 1479, - "length": 148 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/27ba12ad-7657-4954-8036-b078c6b74315?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:00:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c56ca056-4094-4df1-83e3-ff1d188f00e9" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "860a4d37-f405-4866-a6ac-63d6e9318a61", - "Content-Length": "2629", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:00:55 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "137", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "27ba12ad-7657-4954-8036-b078c6b74315", - "lastUpdatedDateTime": "2023-04-05T19:00:26Z", - "createdDateTime": "2023-04-05T19:00:25Z", - "expirationDateTime": "2023-04-06T19:00:25Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:00:26.2881135Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality.", - "rankScore": 0.3, - "offset": 161, - "length": 162 - }, - { - "text": "In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z).", - "rankScore": 0.12, - "offset": 324, - "length": 192 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand.", - "rankScore": 0.0, - "offset": 1237, - "length": 241 - }, - { - "text": "I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "rankScore": 0.19, - "offset": 1479, - "length": 148 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareAction[1].json deleted file mode 100644 index 6cd93f0305ab..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareAction[1].json +++ /dev/null @@ -1,3890 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "492", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b0c45aa9-9669-432f-b4e6-0d3ef1ad6eb7" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months.", - "language": "en" - }, - { - "id": "1", - "text": "The patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "fhirVersion": "4.0.1", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "dc4dbfa1-0e65-4e28-a43d-fe59102f2272", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/33a3fc71-2197-4126-9ec5-6e1489ef7631?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "159", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/33a3fc71-2197-4126-9ec5-6e1489ef7631?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:04:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "06288eeb-7d6c-4a26-90e8-ed16f4cbe669" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fae6baf3-ec19-4f73-92db-f90eb81c4b2a", - "Content-Length": "26584", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:04:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "60", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "33a3fc71-2197-4126-9ec5-6e1489ef7631", - "lastUpdatedDateTime": "2023-04-05T19:04:06Z", - "createdDateTime": "2023-04-05T19:04:03Z", - "expirationDateTime": "2023-04-06T19:04:03Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:04:06.6616803Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "a66e1f58-71f6-4489-bccc-3a46b0899f94", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:a66e1f58-71f6-4489-bccc-3a46b0899f94" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/20a92c78-7dfd-4fda-abd9-edd750bca252", - "resource": { - "resourceType": "Composition", - "id": "20a92c78-7dfd-4fda-abd9-edd750bca252", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "34117-2", - "display": "History and physical note" - } - ], - "text": "History and physical note" - }, - "subject": { - "reference": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/1a13897c-2d08-43ab-a74e-77fd6aff201b", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "History and physical note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/1a13897c-2d08-43ab-a74e-77fd6aff201b", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient is a 54-year-old gentleman with a history of progressive angina over the past several months.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/58436588-ce3b-4a0d-91ab-23376bbabb53", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "resource": { - "resourceType": "Patient", - "id": "0b2d51e1-d31a-433f-aa46-da869c36ced2", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 29 - }, - { - "url": "REDACTED", - "valueInteger": 9 - } - ], - "url": "REDACTED" - } - ], - "gender": "male" - } - }, - { - "fullUrl": "Encounter/ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "resource": { - "resourceType": "Encounter", - "id": "ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/58436588-ce3b-4a0d-91ab-23376bbabb53", - "resource": { - "resourceType": "List", - "id": "58436588-ce3b-4a0d-91ab-23376bbabb53", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/facb8153-5b89-402a-b553-a6a9b22d3a58", - "type": "Observation", - "display": "angina" - } - } - ] - } - }, - { - "fullUrl": "Observation/facb8153-5b89-402a-b553-a6a9b22d3a58", - "resource": { - "resourceType": "Observation", - "id": "facb8153-5b89-402a-b553-a6a9b22d3a58", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 69 - }, - { - "url": "REDACTED", - "valueInteger": 6 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0002962", - "display": "Angina Pectoris" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000005330" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00047" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017852" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccs", - "code": "7.2.4.1" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000001165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "054" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1393-3407" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ANGINA PECTORIS" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U000113" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0001681" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-am", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-9-cm", - "code": "413" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc", - "code": "K74" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc2eeng", - "code": "K74" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU006338" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "K74001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U000244" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85005022" - }, - { - "system": "http://loinc.org", - "code": "LA14275-4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10002383" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "33215" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "142" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D000787" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mth", - "code": "053" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - }, - { - "system": "http://hl7.org/fhir/sid/mthicpc2eae", - "code": "K74" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E10110" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1710" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "040504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU009903" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/oms", - "code": "29.13" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_02040.07" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "02530" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/qmr", - "code": "Q0300326" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "G33.." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcdae", - "code": "Ua1eH" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-71500" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "D3-12000" - }, - { - "system": "http://snomed.info/sct", - "code": "194828000" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0422" - } - ], - "text": "angina" - }, - "subject": { - "reference": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 85 - }, - { - "url": "REDACTED", - "valueInteger": 19 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 1, - "durationUnit": "mo" - }, - "code": { - "text": "past several months" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 57 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "text": "progressive" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/1a13897c-2d08-43ab-a74e-77fd6aff201b", - "resource": { - "resourceType": "Practitioner", - "id": "1a13897c-2d08-43ab-a74e-77fd6aff201b", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - }, - { - "id": "1", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "81b324d0-33e1-419d-ba86-07dabd733c57", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:81b324d0-33e1-419d-ba86-07dabd733c57" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/a0fb841b-cea0-4d70-a1ab-a27fa46adc7a", - "resource": { - "resourceType": "Composition", - "id": "a0fb841b-cea0-4d70-a1ab-a27fa46adc7a", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11526-1", - "display": "Pathology study" - } - ], - "text": "Pathology study" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/f725557a-7e26-4112-a055-0b7e53fa5339", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Pathology study", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/f725557a-7e26-4112-a055-0b7e53fa5339", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/805b2612-463e-4eb9-a3d0-16ccca16b7bf", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "resource": { - "resourceType": "Patient", - "id": "06ead633-f8ae-46a9-96af-2995e6c82453", - "language": "en", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "resource": { - "resourceType": "Encounter", - "id": "423753b9-775e-47e8-814b-fda11d72ea47", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/805b2612-463e-4eb9-a3d0-16ccca16b7bf", - "resource": { - "resourceType": "List", - "id": "805b2612-463e-4eb9-a3d0-16ccca16b7bf", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/2fbc7780-3eda-4e37-8649-f861e738f012", - "type": "Observation", - "display": "ST depressions in the anterior lateral leads" - } - }, - { - "item": { - "reference": "Observation/e8104a54-ecab-4c07-9bd1-c8efb42c5e3c", - "type": "Observation", - "display": "fatigue" - } - }, - { - "item": { - "reference": "Observation/7c8436d9-8c7d-4ffc-84d5-0508074ae2ca", - "type": "Observation", - "display": "wrist pain" - } - }, - { - "item": { - "reference": "Observation/98f9832f-0cca-4de6-be21-8158b942960e", - "type": "Observation", - "display": "anginal equivalent" - } - } - ] - } - }, - { - "fullUrl": "Observation/2fbc7780-3eda-4e37-8649-f861e738f012", - "resource": { - "resourceType": "Observation", - "id": "2fbc7780-3eda-4e37-8649-f861e738f012", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 46 - }, - { - "url": "REDACTED", - "valueInteger": 44 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "text": "ST depressions in the anterior lateral leads" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 21 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 6, - "durationUnit": "min" - }, - "code": { - "text": "six minutes" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 38 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "text": "minimal" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/e8104a54-ecab-4c07-9bd1-c8efb42c5e3c", - "resource": { - "resourceType": "Observation", - "id": "e8104a54-ecab-4c07-9bd1-c8efb42c5e3c", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 108 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0015672", - "display": "Fatigue" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/air", - "code": "FATIG" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000001768" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccc", - "code": "A01.4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1014729" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000004914" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "298" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cpm", - "code": "65221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1385-2059" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ASTHENIA" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U001451" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0012378" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "R53.83" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icnp", - "code": "10000695" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU080142" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "A04004" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U001739" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85047465" - }, - { - "system": "http://loinc.org", - "code": "MTHU013358" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10016256" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "273174" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "5324" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D005221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "780.79" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nanda-i", - "code": "00742" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cdisc", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E11098" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1849" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000321374" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cadsr", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "121028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU010062" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_00010.03" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000041390" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "19400" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "1682." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-01610" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-01360" - }, - { - "system": "http://snomed.info/sct", - "code": "84229001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0724" - } - ], - "text": "fatigue" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/7c8436d9-8c7d-4ffc-84d5-0508074ae2ca", - "resource": { - "resourceType": "Observation", - "id": "7c8436d9-8c7d-4ffc-84d5-0508074ae2ca", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 120 - }, - { - "url": "REDACTED", - "valueInteger": 10 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0221785", - "display": "Pain in wrist" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1016217" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000021489" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "U000624" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U004491" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0030836" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "M25.53" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU060847" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "L11002" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10048692" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "939" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU016462" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "N094F" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-176A0" - }, - { - "system": "http://snomed.info/sct", - "code": "56608008" - } - ], - "text": "wrist pain" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/98f9832f-0cca-4de6-be21-8158b942960e", - "resource": { - "resourceType": "Observation", - "id": "98f9832f-0cca-4de6-be21-8158b942960e", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 137 - }, - { - "url": "REDACTED", - "valueInteger": 18 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0741034", - "display": "Anginal equivalent" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017783" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000047213" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.8" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10076419" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - } - ], - "text": "anginal equivalent" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/f725557a-7e26-4112-a055-0b7e53fa5339", - "resource": { - "resourceType": "Practitioner", - "id": "f725557a-7e26-4112-a055-0b7e53fa5339", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/33a3fc71-2197-4126-9ec5-6e1489ef7631?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:04:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "283a90a0-898b-418b-9d4b-10202ff2f23d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "92616750-6307-4d29-92e4-aedcb107f280", - "Content-Length": "26584", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:04:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "33a3fc71-2197-4126-9ec5-6e1489ef7631", - "lastUpdatedDateTime": "2023-04-05T19:04:06Z", - "createdDateTime": "2023-04-05T19:04:03Z", - "expirationDateTime": "2023-04-06T19:04:03Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:04:06.6616803Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "a66e1f58-71f6-4489-bccc-3a46b0899f94", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:a66e1f58-71f6-4489-bccc-3a46b0899f94" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/20a92c78-7dfd-4fda-abd9-edd750bca252", - "resource": { - "resourceType": "Composition", - "id": "20a92c78-7dfd-4fda-abd9-edd750bca252", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "34117-2", - "display": "History and physical note" - } - ], - "text": "History and physical note" - }, - "subject": { - "reference": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/1a13897c-2d08-43ab-a74e-77fd6aff201b", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "History and physical note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/1a13897c-2d08-43ab-a74e-77fd6aff201b", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient is a 54-year-old gentleman with a history of progressive angina over the past several months.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/58436588-ce3b-4a0d-91ab-23376bbabb53", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "resource": { - "resourceType": "Patient", - "id": "0b2d51e1-d31a-433f-aa46-da869c36ced2", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 29 - }, - { - "url": "REDACTED", - "valueInteger": 9 - } - ], - "url": "REDACTED" - } - ], - "gender": "male" - } - }, - { - "fullUrl": "Encounter/ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "resource": { - "resourceType": "Encounter", - "id": "ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/58436588-ce3b-4a0d-91ab-23376bbabb53", - "resource": { - "resourceType": "List", - "id": "58436588-ce3b-4a0d-91ab-23376bbabb53", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/facb8153-5b89-402a-b553-a6a9b22d3a58", - "type": "Observation", - "display": "angina" - } - } - ] - } - }, - { - "fullUrl": "Observation/facb8153-5b89-402a-b553-a6a9b22d3a58", - "resource": { - "resourceType": "Observation", - "id": "facb8153-5b89-402a-b553-a6a9b22d3a58", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 69 - }, - { - "url": "REDACTED", - "valueInteger": 6 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0002962", - "display": "Angina Pectoris" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000005330" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00047" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017852" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccs", - "code": "7.2.4.1" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000001165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "054" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1393-3407" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ANGINA PECTORIS" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U000113" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0001681" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-am", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-9-cm", - "code": "413" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc", - "code": "K74" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc2eeng", - "code": "K74" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU006338" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "K74001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U000244" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85005022" - }, - { - "system": "http://loinc.org", - "code": "LA14275-4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10002383" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "33215" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "142" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D000787" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mth", - "code": "053" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - }, - { - "system": "http://hl7.org/fhir/sid/mthicpc2eae", - "code": "K74" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E10110" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1710" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "040504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU009903" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/oms", - "code": "29.13" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_02040.07" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "02530" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/qmr", - "code": "Q0300326" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "G33.." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcdae", - "code": "Ua1eH" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-71500" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "D3-12000" - }, - { - "system": "http://snomed.info/sct", - "code": "194828000" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0422" - } - ], - "text": "angina" - }, - "subject": { - "reference": "Patient/0b2d51e1-d31a-433f-aa46-da869c36ced2", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/ddafb31d-69d6-4300-80ef-4dfd4f6e2081", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 85 - }, - { - "url": "REDACTED", - "valueInteger": 19 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 1, - "durationUnit": "mo" - }, - "code": { - "text": "past several months" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 57 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "text": "progressive" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/1a13897c-2d08-43ab-a74e-77fd6aff201b", - "resource": { - "resourceType": "Practitioner", - "id": "1a13897c-2d08-43ab-a74e-77fd6aff201b", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - }, - { - "id": "1", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "81b324d0-33e1-419d-ba86-07dabd733c57", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:81b324d0-33e1-419d-ba86-07dabd733c57" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/a0fb841b-cea0-4d70-a1ab-a27fa46adc7a", - "resource": { - "resourceType": "Composition", - "id": "a0fb841b-cea0-4d70-a1ab-a27fa46adc7a", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11526-1", - "display": "Pathology study" - } - ], - "text": "Pathology study" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/f725557a-7e26-4112-a055-0b7e53fa5339", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Pathology study", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/f725557a-7e26-4112-a055-0b7e53fa5339", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/805b2612-463e-4eb9-a3d0-16ccca16b7bf", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "resource": { - "resourceType": "Patient", - "id": "06ead633-f8ae-46a9-96af-2995e6c82453", - "language": "en", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "resource": { - "resourceType": "Encounter", - "id": "423753b9-775e-47e8-814b-fda11d72ea47", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/805b2612-463e-4eb9-a3d0-16ccca16b7bf", - "resource": { - "resourceType": "List", - "id": "805b2612-463e-4eb9-a3d0-16ccca16b7bf", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/2fbc7780-3eda-4e37-8649-f861e738f012", - "type": "Observation", - "display": "ST depressions in the anterior lateral leads" - } - }, - { - "item": { - "reference": "Observation/e8104a54-ecab-4c07-9bd1-c8efb42c5e3c", - "type": "Observation", - "display": "fatigue" - } - }, - { - "item": { - "reference": "Observation/7c8436d9-8c7d-4ffc-84d5-0508074ae2ca", - "type": "Observation", - "display": "wrist pain" - } - }, - { - "item": { - "reference": "Observation/98f9832f-0cca-4de6-be21-8158b942960e", - "type": "Observation", - "display": "anginal equivalent" - } - } - ] - } - }, - { - "fullUrl": "Observation/2fbc7780-3eda-4e37-8649-f861e738f012", - "resource": { - "resourceType": "Observation", - "id": "2fbc7780-3eda-4e37-8649-f861e738f012", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 46 - }, - { - "url": "REDACTED", - "valueInteger": 44 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "text": "ST depressions in the anterior lateral leads" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 21 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 6, - "durationUnit": "min" - }, - "code": { - "text": "six minutes" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 38 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "text": "minimal" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/e8104a54-ecab-4c07-9bd1-c8efb42c5e3c", - "resource": { - "resourceType": "Observation", - "id": "e8104a54-ecab-4c07-9bd1-c8efb42c5e3c", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 108 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0015672", - "display": "Fatigue" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/air", - "code": "FATIG" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000001768" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccc", - "code": "A01.4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1014729" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000004914" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "298" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cpm", - "code": "65221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1385-2059" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ASTHENIA" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U001451" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0012378" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "R53.83" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icnp", - "code": "10000695" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU080142" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "A04004" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U001739" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85047465" - }, - { - "system": "http://loinc.org", - "code": "MTHU013358" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10016256" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "273174" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "5324" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D005221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "780.79" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nanda-i", - "code": "00742" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cdisc", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E11098" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1849" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000321374" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cadsr", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "121028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU010062" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_00010.03" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000041390" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "19400" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "1682." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-01610" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-01360" - }, - { - "system": "http://snomed.info/sct", - "code": "84229001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0724" - } - ], - "text": "fatigue" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/7c8436d9-8c7d-4ffc-84d5-0508074ae2ca", - "resource": { - "resourceType": "Observation", - "id": "7c8436d9-8c7d-4ffc-84d5-0508074ae2ca", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 120 - }, - { - "url": "REDACTED", - "valueInteger": 10 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0221785", - "display": "Pain in wrist" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1016217" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000021489" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "U000624" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U004491" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0030836" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "M25.53" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU060847" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "L11002" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10048692" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "939" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU016462" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "N094F" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-176A0" - }, - { - "system": "http://snomed.info/sct", - "code": "56608008" - } - ], - "text": "wrist pain" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/98f9832f-0cca-4de6-be21-8158b942960e", - "resource": { - "resourceType": "Observation", - "id": "98f9832f-0cca-4de6-be21-8158b942960e", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 137 - }, - { - "url": "REDACTED", - "valueInteger": 18 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0741034", - "display": "Anginal equivalent" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017783" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000047213" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.8" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10076419" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - } - ], - "text": "anginal equivalent" - }, - "subject": { - "reference": "Patient/06ead633-f8ae-46a9-96af-2995e6c82453", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/423753b9-775e-47e8-814b-fda11d72ea47", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/f725557a-7e26-4112-a055-0b7e53fa5339", - "resource": { - "resourceType": "Practitioner", - "id": "f725557a-7e26-4112-a055-0b7e53fa5339", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesDiacriticsNfc[1].json deleted file mode 100644 index ae4c6ced6b66..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesDiacriticsNfc[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "189", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f1b34483-5a35-4f2b-a325-d0fed995ea94" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "abc48561-f16b-41ff-ab70-18996b0950f3", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c9563cfc-9ff7-4c9e-8fcb-82dc761fc99f?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "298", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c9563cfc-9ff7-4c9e-8fcb-82dc761fc99f?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:50:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "76c30da0-a1ea-4905-9bf4-d43f41081587" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e6738464-2c03-42b8-8968-2d2b5a6903be", - "Content-Length": "590", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:50:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "57", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c9563cfc-9ff7-4c9e-8fcb-82dc761fc99f", - "lastUpdatedDateTime": "2023-04-05T18:49:35Z", - "createdDateTime": "2023-04-05T18:49:33Z", - "expirationDateTime": "2023-04-06T18:49:33Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:49:35.559375Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c9563cfc-9ff7-4c9e-8fcb-82dc761fc99f?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:50:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e7451d37-ed7f-4b49-9eaf-44de51f3aabb" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2f905adb-a39e-473c-bbb6-c8503e72bb8c", - "Content-Length": "590", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:50:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "36", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c9563cfc-9ff7-4c9e-8fcb-82dc761fc99f", - "lastUpdatedDateTime": "2023-04-05T18:49:35Z", - "createdDateTime": "2023-04-05T18:49:33Z", - "expirationDateTime": "2023-04-06T18:49:33Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:49:35.559375Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesDiacriticsNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesDiacriticsNfd[1].json deleted file mode 100644 index 1da8b82ba0fd..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesDiacriticsNfd[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "190", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:50:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "de80f5a3-9f99-469f-a54b-99bfee9a3fd6" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "an\u0303o The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "5c4dd7d3-dc42-42b5-bfc4-2f68b28d9e1b", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:50:04 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/59ca0ae3-2550-48ed-9ec5-0a96dfebdd24?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "317", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/59ca0ae3-2550-48ed-9ec5-0a96dfebdd24?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:50:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "86655549-cc52-45fe-85f8-596bc258a3c1" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "56fbf701-6f05-4e49-acd6-d85b59123816", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:50:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "57", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "59ca0ae3-2550-48ed-9ec5-0a96dfebdd24", - "lastUpdatedDateTime": "2023-04-05T18:50:05Z", - "createdDateTime": "2023-04-05T18:50:03Z", - "expirationDateTime": "2023-04-06T18:50:03Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:50:05.7346249Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 22, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/59ca0ae3-2550-48ed-9ec5-0a96dfebdd24?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:50:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d05f862f-eede-49a0-b295-a4d5780f23f8" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8b058129-94ab-4d37-a68b-27664e5140aa", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:50:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "37", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "59ca0ae3-2550-48ed-9ec5-0a96dfebdd24", - "lastUpdatedDateTime": "2023-04-05T18:50:05Z", - "createdDateTime": "2023-04-05T18:50:03Z", - "expirationDateTime": "2023-04-06T18:50:03Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:50:05.7346249Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 22, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiFamilyWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiFamilyWithSkinToneModifier[1].json deleted file mode 100644 index 79b39bd869ee..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiFamilyWithSkinToneModifier[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "290", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "851c9c7b-edc9-4041-85cc-9a98ae7548a8" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "59984704-f8e8-408c-9339-2b7c87ee3074", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:03:31 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/d226f99a-0bdb-4a9b-92f0-fe9894cf9676?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "270", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d226f99a-0bdb-4a9b-92f0-fe9894cf9676?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0393afb9-2df8-497a-9044-e64f508a6832" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3979bfc4-2073-4b7f-bd06-4bac6bfbc8b0", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:04:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "77", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d226f99a-0bdb-4a9b-92f0-fe9894cf9676", - "lastUpdatedDateTime": "2023-04-05T19:03:33Z", - "createdDateTime": "2023-04-05T19:03:31Z", - "expirationDateTime": "2023-04-06T19:03:31Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:03:33.1710859Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 37, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d226f99a-0bdb-4a9b-92f0-fe9894cf9676?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f09e9649-0f91-4deb-8db1-1fbcfced8902" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "dcbe25a2-e428-401a-a80d-f592cc567c5d", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:04:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "84", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d226f99a-0bdb-4a9b-92f0-fe9894cf9676", - "lastUpdatedDateTime": "2023-04-05T19:03:33Z", - "createdDateTime": "2023-04-05T19:03:31Z", - "expirationDateTime": "2023-04-06T19:03:31Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:03:33.1710859Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 37, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiFamily[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiFamily[1].json deleted file mode 100644 index 48ee9929000a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiFamily[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "242", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:51:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "00d66ceb-d5cb-4bcb-90e7-fe25ba096a86" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "da1aab90-b96a-4980-a407-c90e2bd70751", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:51:05 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/67931658-58e0-4cfc-96e4-5ec65ed2dc30?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "126", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/67931658-58e0-4cfc-96e4-5ec65ed2dc30?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:51:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "db0c8f0c-fa23-4d4d-b5b4-afcec9997162" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fd56e5c6-5fcf-44aa-a746-99c11fcec8bb", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:51:35 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "90", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "67931658-58e0-4cfc-96e4-5ec65ed2dc30", - "lastUpdatedDateTime": "2023-04-05T18:51:07Z", - "createdDateTime": "2023-04-05T18:51:05Z", - "expirationDateTime": "2023-04-06T18:51:05Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:51:07.3655754Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 29, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/67931658-58e0-4cfc-96e4-5ec65ed2dc30?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:51:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "bcb0dbe5-c4b7-42c6-973e-5e1d83e2a376" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7ae4235d-56a9-45b3-b8bd-47a41c08a867", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:51:35 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "39", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "67931658-58e0-4cfc-96e4-5ec65ed2dc30", - "lastUpdatedDateTime": "2023-04-05T18:51:07Z", - "createdDateTime": "2023-04-05T18:51:05Z", - "expirationDateTime": "2023-04-06T18:51:05Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:51:07.3655754Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 29, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiWithSkinToneModifier[1].json deleted file mode 100644 index 325bb4735128..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmojiWithSkinToneModifier[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "209", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a9236776-bbea-475b-b80a-c75e99effe11" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "e276eab6-c8ee-4ae2-be93-99616a150c53", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/8a3b5e88-381f-4177-8e03-10f790999b62?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/8a3b5e88-381f-4177-8e03-10f790999b62?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:55:43 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c295707c-ea3c-4bf8-ac0a-6eeeed9ad094" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "47aaa46b-2adc-40bb-a543-8a2048817f49", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:43 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "192", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "8a3b5e88-381f-4177-8e03-10f790999b62", - "lastUpdatedDateTime": "2023-04-05T18:55:14Z", - "createdDateTime": "2023-04-05T18:55:13Z", - "expirationDateTime": "2023-04-06T18:55:13Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:14.8879943Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 22, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/8a3b5e88-381f-4177-8e03-10f790999b62?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "aaa4b65f-a07b-431c-838a-d13af5a1c9b1" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a7e56514-7f2b-4e23-94d0-c943386209c8", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:43 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "46", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "8a3b5e88-381f-4177-8e03-10f790999b62", - "lastUpdatedDateTime": "2023-04-05T18:55:14Z", - "createdDateTime": "2023-04-05T18:55:13Z", - "expirationDateTime": "2023-04-06T18:55:13Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:55:14.8879943Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 22, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmoji[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmoji[1].json deleted file mode 100644 index c1a0cb5d5b1e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesEmoji[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "197", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:51:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c73aa7a0-7c17-46b9-893f-f9f3fef20aa9" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69 The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "bdabf1b6-b47e-4150-93e1-7fc778fef54b", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:51:35 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/b5a6498c-35da-44f7-a4a1-802772388821?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "205", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b5a6498c-35da-44f7-a4a1-802772388821?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "324e00df-7567-44cd-88f0-4ee73cad1fc3" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2646c0e0-2f52-4092-ac86-8ced49643863", - "Content-Length": "590", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "58", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b5a6498c-35da-44f7-a4a1-802772388821", - "lastUpdatedDateTime": "2023-04-05T18:51:37Z", - "createdDateTime": "2023-04-05T18:51:35Z", - "expirationDateTime": "2023-04-06T18:51:35Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:51:37.801228Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b5a6498c-35da-44f7-a4a1-802772388821?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7d162bbe-3809-4309-8e71-e7d7656cbf04" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0c2b4e9b-5573-4923-9733-99962bc06eb1", - "Content-Length": "590", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "48", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b5a6498c-35da-44f7-a4a1-802772388821", - "lastUpdatedDateTime": "2023-04-05T18:51:37Z", - "createdDateTime": "2023-04-05T18:51:35Z", - "expirationDateTime": "2023-04-06T18:51:35Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:51:37.801228Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesForAssertion[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesForAssertion[1].json deleted file mode 100644 index 01c41ee6f7d6..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesForAssertion[1].json +++ /dev/null @@ -1,680 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "331", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:59:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ae31d5f8-cc5a-457b-91e2-12a398dadfbf" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "All female participants that are premenopausal will be required to have a pregnancy test; any participant who is pregnant or breastfeeding will not be included", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "5da3890e-501b-4935-8cef-afc6d877d6f9", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:59:54 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/7bc39a35-897f-497c-991f-2a1f550ffc85?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "144", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/7bc39a35-897f-497c-991f-2a1f550ffc85?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ab3f52d4-a66a-4352-b7fc-f54f4bc6ff9a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fb97f4ba-9d20-4b59-bfa3-9617e00dca1b", - "Content-Length": "3171", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "67", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "7bc39a35-897f-497c-991f-2a1f550ffc85", - "lastUpdatedDateTime": "2023-04-05T18:59:56Z", - "createdDateTime": "2023-04-05T18:59:55Z", - "expirationDateTime": "2023-04-06T18:59:55Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:59:56.8100394Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 4, - "length": 6, - "text": "female", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Woman", - "links": [ - { - "dataSource": "UMLS", - "id": "C0043210" - }, - { - "dataSource": "AOD", - "id": "0000014451" - }, - { - "dataSource": "CCPSS", - "id": "0018392" - }, - { - "dataSource": "CHV", - "id": "0000013181" - }, - { - "dataSource": "LCH", - "id": "U005036" - }, - { - "dataSource": "LCH_NW", - "id": "sh85147274" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "4" - }, - { - "dataSource": "MSH", - "id": "D014930" - }, - { - "dataSource": "PSY", - "id": "23450" - }, - { - "dataSource": "RCD", - "id": "Ua0Wg" - }, - { - "dataSource": "SNM", - "id": "E-4957" - }, - { - "dataSource": "SNMI", - "id": "L-85B00" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "224526002" - } - ] - }, - { - "offset": 33, - "length": 13, - "text": "premenopausal", - "category": "Diagnosis", - "confidenceScore": 0.96, - "assertion": { - "conditionality": "hypothetical" - }, - "name": "Premenopausal - menopausal status", - "links": [ - { - "dataSource": "UMLS", - "id": "C0279752" - }, - { - "dataSource": "CHV", - "id": "0000027286" - }, - { - "dataSource": "LNC", - "id": "LP140231-4" - }, - { - "dataSource": "NCI", - "id": "C15491" - }, - { - "dataSource": "NCI_CPTAC", - "id": "C15491" - }, - { - "dataSource": "NCI_GDC", - "id": "C15491" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000045268" - }, - { - "dataSource": "PDQ", - "id": "CDR0000040049" - } - ] - }, - { - "offset": 74, - "length": 14, - "text": "pregnancy test", - "category": "ExaminationName", - "confidenceScore": 1.0, - "name": "Pregnancy Tests", - "links": [ - { - "dataSource": "UMLS", - "id": "C0032976" - }, - { - "dataSource": "AOD", - "id": "0000007532" - }, - { - "dataSource": "CHV", - "id": "0000010058" - }, - { - "dataSource": "CSP", - "id": "2403-5273" - }, - { - "dataSource": "ICPC2P", - "id": "W33002" - }, - { - "dataSource": "LNC", - "id": "LP105252-3" - }, - { - "dataSource": "MDR", - "id": "10036572" - }, - { - "dataSource": "MEDCIN", - "id": "13078" - }, - { - "dataSource": "MSH", - "id": "D011258" - }, - { - "dataSource": "NCI", - "id": "C92949" - }, - { - "dataSource": "RCD", - "id": "X77WY" - }, - { - "dataSource": "SNM", - "id": "P-9501" - }, - { - "dataSource": "SNMI", - "id": "P2-87010" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "74036000" - } - ] - }, - { - "offset": 113, - "length": 8, - "text": "pregnant", - "category": "Diagnosis", - "confidenceScore": 1.0, - "name": "Patient currently pregnant", - "links": [ - { - "dataSource": "UMLS", - "id": "C0549206" - }, - { - "dataSource": "CHV", - "id": "0000023061" - }, - { - "dataSource": "HL7V2.5", - "id": "B6" - }, - { - "dataSource": "HL7V3.0", - "id": "PGNT" - }, - { - "dataSource": "LNC", - "id": "LA15173-0" - }, - { - "dataSource": "MDR", - "id": "10018707" - }, - { - "dataSource": "MEDCIN", - "id": "621" - }, - { - "dataSource": "NCI", - "id": "C124295" - }, - { - "dataSource": "NCI_CDISC", - "id": "C124295" - }, - { - "dataSource": "RCD", - "id": "621.." - }, - { - "dataSource": "SNM", - "id": "F-31220" - }, - { - "dataSource": "SNMI", - "id": "F-84000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "77386006" - } - ] - }, - { - "offset": 125, - "length": 13, - "text": "breastfeeding", - "category": "Diagnosis", - "confidenceScore": 1.0, - "name": "Breastfeeding (mother)", - "links": [ - { - "dataSource": "UMLS", - "id": "C1623040" - }, - { - "dataSource": "LNC", - "id": "LP114922-0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "413712001" - } - ] - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/7bc39a35-897f-497c-991f-2a1f550ffc85?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:00:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3a194a95-b33c-43dc-89db-3b6a80fae806" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5375cb36-9764-47b9-bdda-64f98f71b988", - "Content-Length": "3171", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:00:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "40", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "7bc39a35-897f-497c-991f-2a1f550ffc85", - "lastUpdatedDateTime": "2023-04-05T18:59:56Z", - "createdDateTime": "2023-04-05T18:59:55Z", - "expirationDateTime": "2023-04-06T18:59:55Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:59:56.8100394Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 4, - "length": 6, - "text": "female", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Woman", - "links": [ - { - "dataSource": "UMLS", - "id": "C0043210" - }, - { - "dataSource": "AOD", - "id": "0000014451" - }, - { - "dataSource": "CCPSS", - "id": "0018392" - }, - { - "dataSource": "CHV", - "id": "0000013181" - }, - { - "dataSource": "LCH", - "id": "U005036" - }, - { - "dataSource": "LCH_NW", - "id": "sh85147274" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "4" - }, - { - "dataSource": "MSH", - "id": "D014930" - }, - { - "dataSource": "PSY", - "id": "23450" - }, - { - "dataSource": "RCD", - "id": "Ua0Wg" - }, - { - "dataSource": "SNM", - "id": "E-4957" - }, - { - "dataSource": "SNMI", - "id": "L-85B00" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "224526002" - } - ] - }, - { - "offset": 33, - "length": 13, - "text": "premenopausal", - "category": "Diagnosis", - "confidenceScore": 0.96, - "assertion": { - "conditionality": "hypothetical" - }, - "name": "Premenopausal - menopausal status", - "links": [ - { - "dataSource": "UMLS", - "id": "C0279752" - }, - { - "dataSource": "CHV", - "id": "0000027286" - }, - { - "dataSource": "LNC", - "id": "LP140231-4" - }, - { - "dataSource": "NCI", - "id": "C15491" - }, - { - "dataSource": "NCI_CPTAC", - "id": "C15491" - }, - { - "dataSource": "NCI_GDC", - "id": "C15491" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000045268" - }, - { - "dataSource": "PDQ", - "id": "CDR0000040049" - } - ] - }, - { - "offset": 74, - "length": 14, - "text": "pregnancy test", - "category": "ExaminationName", - "confidenceScore": 1.0, - "name": "Pregnancy Tests", - "links": [ - { - "dataSource": "UMLS", - "id": "C0032976" - }, - { - "dataSource": "AOD", - "id": "0000007532" - }, - { - "dataSource": "CHV", - "id": "0000010058" - }, - { - "dataSource": "CSP", - "id": "2403-5273" - }, - { - "dataSource": "ICPC2P", - "id": "W33002" - }, - { - "dataSource": "LNC", - "id": "LP105252-3" - }, - { - "dataSource": "MDR", - "id": "10036572" - }, - { - "dataSource": "MEDCIN", - "id": "13078" - }, - { - "dataSource": "MSH", - "id": "D011258" - }, - { - "dataSource": "NCI", - "id": "C92949" - }, - { - "dataSource": "RCD", - "id": "X77WY" - }, - { - "dataSource": "SNM", - "id": "P-9501" - }, - { - "dataSource": "SNMI", - "id": "P2-87010" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "74036000" - } - ] - }, - { - "offset": 113, - "length": 8, - "text": "pregnant", - "category": "Diagnosis", - "confidenceScore": 1.0, - "name": "Patient currently pregnant", - "links": [ - { - "dataSource": "UMLS", - "id": "C0549206" - }, - { - "dataSource": "CHV", - "id": "0000023061" - }, - { - "dataSource": "HL7V2.5", - "id": "B6" - }, - { - "dataSource": "HL7V3.0", - "id": "PGNT" - }, - { - "dataSource": "LNC", - "id": "LA15173-0" - }, - { - "dataSource": "MDR", - "id": "10018707" - }, - { - "dataSource": "MEDCIN", - "id": "621" - }, - { - "dataSource": "NCI", - "id": "C124295" - }, - { - "dataSource": "NCI_CDISC", - "id": "C124295" - }, - { - "dataSource": "RCD", - "id": "621.." - }, - { - "dataSource": "SNM", - "id": "F-31220" - }, - { - "dataSource": "SNMI", - "id": "F-84000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "77386006" - } - ] - }, - { - "offset": 125, - "length": 13, - "text": "breastfeeding", - "category": "Diagnosis", - "confidenceScore": 1.0, - "name": "Breastfeeding (mother)", - "links": [ - { - "dataSource": "UMLS", - "id": "C1623040" - }, - { - "dataSource": "LNC", - "id": "LP114922-0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "413712001" - } - ] - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesKoreanNfc[1].json deleted file mode 100644 index 6039957655fe..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesKoreanNfc[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "191", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6695dc20-18b7-4fc3-9172-4f5abe602965" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "698a7642-505e-46a5-be18-c3264b27667c", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:04:33 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/191c9209-c0c4-41c1-a033-d38aaccfd08c?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/191c9209-c0c4-41c1-a033-d38aaccfd08c?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:05:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "bb70ceb4-b991-42a2-81ab-3b78fb33324d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5125998e-c3a1-4798-8257-69d2ee654b88", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:05:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "46", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "191c9209-c0c4-41c1-a033-d38aaccfd08c", - "lastUpdatedDateTime": "2023-04-05T19:04:35Z", - "createdDateTime": "2023-04-05T19:04:33Z", - "expirationDateTime": "2023-04-06T19:04:33Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:04:35.7217276Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/191c9209-c0c4-41c1-a033-d38aaccfd08c?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:05:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3fa8292f-1ea7-436a-aeb8-2e6b8a99335e" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5223a641-6566-42f1-be83-845fb854dafd", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:05:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "45", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "191c9209-c0c4-41c1-a033-d38aaccfd08c", - "lastUpdatedDateTime": "2023-04-05T19:04:35Z", - "createdDateTime": "2023-04-05T19:04:33Z", - "expirationDateTime": "2023-04-06T19:04:33Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:04:35.7217276Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesKoreanNfd[1].json deleted file mode 100644 index 5f6d350138e3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesKoreanNfd[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "191", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:05:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fd71df77-50bb-4322-8585-9b274593d041" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "5bd5e738-df60-4567-bec2-7b7b359f638b", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:05:04 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/9430290a-9ab5-4d02-a16d-ba36c43a937f?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "286", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/9430290a-9ab5-4d02-a16d-ba36c43a937f?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:05:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "71fb40ab-b4ee-4681-869f-ec0dbfe37412" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6b19f814-0a43-4e2d-86e7-ced98229d500", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:05:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "56", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "9430290a-9ab5-4d02-a16d-ba36c43a937f", - "lastUpdatedDateTime": "2023-04-05T19:05:06Z", - "createdDateTime": "2023-04-05T19:05:04Z", - "expirationDateTime": "2023-04-06T19:05:04Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:05:06.2339699Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/9430290a-9ab5-4d02-a16d-ba36c43a937f?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:05:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3dff49fc-e043-470e-b869-fad81c658e80" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "49011ba0-4b97-4a7b-8e95-6502ba88780c", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:05:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "46", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "9430290a-9ab5-4d02-a16d-ba36c43a937f", - "lastUpdatedDateTime": "2023-04-05T19:05:06Z", - "createdDateTime": "2023-04-05T19:05:04Z", - "expirationDateTime": "2023-04-06T19:05:04Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:05:06.2339699Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesZalgoText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesZalgoText[1].json deleted file mode 100644 index 42ae260fb9c7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeHealthcareEntitiesZalgoText[1].json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "412", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:01:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "35848378-00bb-4897-8cf3-3e9dc66f8026" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "954f112a-a83e-481f-9b24-4717c7828545", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:01:58 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/d3c48cf1-700d-4da1-9ecd-f5a4ba2cba16?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "150", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d3c48cf1-700d-4da1-9ecd-f5a4ba2cba16?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:02:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "08ea332a-b8d1-4d1b-9f28-03ae3a355341" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3bb4e3b8-9447-400d-8f75-347420335e9b", - "Content-Length": "592", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:02:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "81", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d3c48cf1-700d-4da1-9ecd-f5a4ba2cba16", - "lastUpdatedDateTime": "2023-04-05T19:02:00Z", - "createdDateTime": "2023-04-05T19:01:58Z", - "expirationDateTime": "2023-04-06T19:01:58Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:02:00.1163335Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 133, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d3c48cf1-700d-4da1-9ecd-f5a4ba2cba16?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:02:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "988808f8-4f5e-4fde-b21f-4336cab8e3f3" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b5cc1711-6c4f-4f6d-9947-d6a4b12dfcff", - "Content-Length": "592", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:02:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "43", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d3c48cf1-700d-4da1-9ecd-f5a4ba2cba16", - "lastUpdatedDateTime": "2023-04-05T19:02:00Z", - "createdDateTime": "2023-04-05T19:01:58Z", - "expirationDateTime": "2023-04-06T19:01:58Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:02:00.1163335Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 133, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeKeyPhrasesExtractionAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeKeyPhrasesExtractionAction[1].json deleted file mode 100644 index 7a6afc29fd6d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeKeyPhrasesExtractionAction[1].json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "318", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:00:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "69dffa43-1336-401f-84eb-cdf45eef61ca" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week.", - "language": "en" - }, - { - "id": "1", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "KeyPhraseExtraction", - "parameters": { - "loggingOptOut": false - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "5d391570-8dd6-4c41-9ea4-2ba8db7fa9c3", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:00:56 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c7c5280b-67eb-4525-90bf-048e79f226c8?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "286", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c7c5280b-67eb-4525-90bf-048e79f226c8?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:01:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "265b39f4-945b-479c-9c85-799d0cc0386a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "52f242cb-54ec-40c2-90fa-166cdd40b7ad", - "Content-Length": "631", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:01:26 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "222", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c7c5280b-67eb-4525-90bf-048e79f226c8", - "lastUpdatedDateTime": "2023-04-05T19:00:59Z", - "createdDateTime": "2023-04-05T19:00:56Z", - "expirationDateTime": "2023-04-06T19:00:56Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T19:00:59.4892777Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c7c5280b-67eb-4525-90bf-048e79f226c8?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:01:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f0a8fa61-2c6e-453c-b52b-8eff0531f82e" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "27d02930-4f09-4f31-89a1-1c4ed27a3e2e", - "Content-Length": "631", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:01:26 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "300", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c7c5280b-67eb-4525-90bf-048e79f226c8", - "lastUpdatedDateTime": "2023-04-05T19:00:59Z", - "createdDateTime": "2023-04-05T19:00:56Z", - "expirationDateTime": "2023-04-06T19:00:56Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T19:00:59.4892777Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeLinkedEntityActions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeLinkedEntityActions[1].json deleted file mode 100644 index 84c300ffe3ea..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeLinkedEntityActions[1].json +++ /dev/null @@ -1,248 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "299", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:01:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "37cb6c42-2623-418a-a585-4f2bbdba65ee" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week.", - "language": "en" - }, - { - "id": "1", - "text": "I work at Microsoft.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "EntityLinking", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "06029ab3-2b0b-479c-aa1c-dc153e49428f", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:01:26 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/5d374be7-2896-4989-8b6f-3540efcb960c?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "174", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5d374be7-2896-4989-8b6f-3540efcb960c?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:01:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b4b6d722-f88e-449d-932f-cc7aaf28d57c" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7f3ee4a2-7323-4732-83f8-f918d1bb3d47", - "Content-Length": "993", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:01:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "337", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5d374be7-2896-4989-8b6f-3540efcb960c", - "lastUpdatedDateTime": "2023-04-05T19:01:31Z", - "createdDateTime": "2023-04-05T19:01:27Z", - "expirationDateTime": "2023-04-06T19:01:27Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T19:01:31.1831912Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5d374be7-2896-4989-8b6f-3540efcb960c?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:01:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4695651b-0b0a-4815-8ea3-86be0ebce3e5" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8e8818c8-db46-41ad-b1d4-fce2ffb1f60d", - "Content-Length": "993", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:01:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5d374be7-2896-4989-8b6f-3540efcb960c", - "lastUpdatedDateTime": "2023-04-05T19:01:31Z", - "createdDateTime": "2023-04-05T19:01:27Z", - "expirationDateTime": "2023-04-06T19:01:27Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T19:01:31.1831912Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzePiiEntityRecognitionWithCategoriesFilters[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzePiiEntityRecognitionWithCategoriesFilters[1].json deleted file mode 100644 index 21f4663751d8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzePiiEntityRecognitionWithCategoriesFilters[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "443", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "db5aafd6-d58c-4a2e-84f7-a6207389c1ea" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "tasks": [ - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "piiCategories": [ - "USSocialSecurityNumber", - "ABARoutingNumber" - ], - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "7777bfb2-2fbd-4a31-af9a-1903706f5877", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:06:05 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/f261aca8-bd06-4ad6-9064-11228483d6c1?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "134", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/f261aca8-bd06-4ad6-9064-11228483d6c1?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:06:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6ebbfe9a-14e3-4880-92ea-09f4c40d6833" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "897bd358-3f21-4df3-ae4f-fa7bbd7b944e", - "Content-Length": "971", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:06:35 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "f261aca8-bd06-4ad6-9064-11228483d6c1", - "lastUpdatedDateTime": "2023-04-05T19:06:08Z", - "createdDateTime": "2023-04-05T19:06:05Z", - "expirationDateTime": "2023-04-06T19:06:05Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T19:06:08.7122039Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/f261aca8-bd06-4ad6-9064-11228483d6c1?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:06:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f1bef1a0-7253-4919-beb7-4cec5dfaf73f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "14d3a41b-7f1f-4f54-8b7c-92e8476c173c", - "Content-Length": "971", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:06:35 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "51", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "f261aca8-bd06-4ad6-9064-11228483d6c1", - "lastUpdatedDateTime": "2023-04-05T19:06:08Z", - "createdDateTime": "2023-04-05T19:06:05Z", - "expirationDateTime": "2023-04-06T19:06:05Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T19:06:08.7122039Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzePiiEntityRecognitionWithDomainFilters[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzePiiEntityRecognitionWithDomainFilters[1].json deleted file mode 100644 index c7e615e27404..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzePiiEntityRecognitionWithDomainFilters[1].json +++ /dev/null @@ -1,257 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "396", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:53:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b9d76430-e507-414c-8aee-c6899a7979ba" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "tasks": [ - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "domain": "PHI", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "a3dbc43a-09b4-468f-9bcf-01c471424c01", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:53:08 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/4a7f4fb6-bc33-447b-bcbf-07edb16df598?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "186", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/4a7f4fb6-bc33-447b-bcbf-07edb16df598?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:53:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1de8a9fb-1840-45fa-9cfd-e6f8fba4ad3c" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "03787ef2-971c-4064-92b8-f8607c507dc2", - "Content-Length": "1256", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:53:38 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "107", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "4a7f4fb6-bc33-447b-bcbf-07edb16df598", - "lastUpdatedDateTime": "2023-04-05T18:53:10Z", - "createdDateTime": "2023-04-05T18:53:08Z", - "expirationDateTime": "2023-04-06T18:53:08Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:53:10.9335461Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/4a7f4fb6-bc33-447b-bcbf-07edb16df598?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:53:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "76104d47-6cbc-4533-b8a2-50c5be27f940" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "20bfba4c-af79-4251-a8ff-afbdada3ba04", - "Content-Length": "1256", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:53:38 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "193", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "4a7f4fb6-bc33-447b-bcbf-07edb16df598", - "lastUpdatedDateTime": "2023-04-05T18:53:10Z", - "createdDateTime": "2023-04-05T18:53:08Z", - "expirationDateTime": "2023-04-06T18:53:08Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:53:10.9335461Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentAction[1].json deleted file mode 100644 index b2c0fe132320..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentAction[1].json +++ /dev/null @@ -1,294 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "373", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:57:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "949768db-ff52-4488-9902-7d63c8199d72" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi.", - "language": "en" - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "SentimentAnalysis", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "dfacc0c2-7039-42e7-a80b-b83ac8fca26f", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:57:50 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/d4aaea0f-2256-453f-b4a9-8c0c58eb8793?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "323", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d4aaea0f-2256-453f-b4a9-8c0c58eb8793?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:58:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8a796a68-68f4-471b-bd30-80e6e4f7bc94" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "094597b6-9492-4d1b-b7df-175c0365d190", - "Content-Length": "1337", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:58:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "67", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d4aaea0f-2256-453f-b4a9-8c0c58eb8793", - "lastUpdatedDateTime": "2023-04-05T18:57:53Z", - "createdDateTime": "2023-04-05T18:57:51Z", - "expirationDateTime": "2023-04-06T18:57:51Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:57:53.0344133Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d4aaea0f-2256-453f-b4a9-8c0c58eb8793?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:58:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "255df10e-0472-46b0-91f7-23f064fb29df" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "eb942202-9782-4af0-8259-201992906e00", - "Content-Length": "1337", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:58:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "52", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d4aaea0f-2256-453f-b4a9-8c0c58eb8793", - "lastUpdatedDateTime": "2023-04-05T18:57:53Z", - "createdDateTime": "2023-04-05T18:57:51Z", - "expirationDateTime": "2023-04-06T18:57:51Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:57:53.0344133Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentBatchTooManyDocuments[1].json deleted file mode 100644 index e1f7e8339bc3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentBatchTooManyDocuments[1].json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "935", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:52:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2d7920f6-22b7-47b4-aa7d-c45689a3bfa9" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "e0635712-4a97-4054-8ff3-1cde7fda5763", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 10 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentDiacriticsNfc[1].json deleted file mode 100644 index 9d83560a5f14..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentDiacriticsNfc[1].json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "200", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4abdc030-510d-4b43-a191-814cfb2aad4d" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o The hotel was unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d5cc6757-004c-45e6-801b-2a3492fa0b62", - "Content-Length": "745", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "14", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 26, - "text": "a\u00F1o The hotel was unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.1, - "negative": 0.9 - }, - "offset": 8, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.1, - "negative": 0.9 - }, - "offset": 18, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentDuplicateIdInput[1].json deleted file mode 100644 index db3bf712df9e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentDuplicateIdInput[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "348", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f5f1ccf6-cd49-47e0-a6cd-bc315e191c3a" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "1914eb69-93db-4bca-88dd-6c44c3217763", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:54:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentEmptyIdInput[1].json deleted file mode 100644 index 79061b4e88cf..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentEmptyIdInput[1].json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "217", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2d79ad0f-58f8-4026-a93a-1dacce99155b" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "7a1669e5-f95a-4ff9-a8d2-fa5b0a2deeaf", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining[1].json deleted file mode 100644 index 67c8ed5b906e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining[1].json +++ /dev/null @@ -1,282 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "eb805f9d-68db-440d-a5b7-e30aa3c8ae68" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0e85eaf2-3b12-4748-8ed8-c9d76d8c259c", - "Content-Length": "2872", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "46", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. ", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 27, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 19, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 40, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 50, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 59, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining[1].json deleted file mode 100644 index d41714bee581..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining[1].json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:52:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "aaf1d456-66ba-4c29-a8d8-f06de54b40c2" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "622c2bd4-a700-422a-9c0d-bf187876988a", - "Content-Length": "3096", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "41", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. ", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 27, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 19, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 40, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 50, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 59, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining[1].json deleted file mode 100644 index b5ebf5a5815f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining[1].json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d941c5ed-d69a-412c-a523-454a0ec88a06" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7e8d6c9c-f8ba-4bf2-9074-722d2d5fc6bf", - "Content-Length": "1203", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:49:32 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "26", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatistics[1].json deleted file mode 100644 index 818567c9be1c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5ddef7bf-36f2-46fe-b6f4-047669d38e95" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ceafb29f-9c33-4906-9a04-1dc9fd3229b6", - "Content-Length": "1203", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:04:00 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "36", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions[1].json deleted file mode 100644 index e05ddc848bef..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions[1].json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:58:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "39cb53ef-9a02-495b-acf5-40891271e992" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "48889735-a0b2-4317-9f42-4f9d2a0b2c1c", - "Content-Length": "979", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:58:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "41", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputWithNullRequestOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputWithNullRequestOptions[1].json deleted file mode 100644 index abba72d568a3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchInputWithNullRequestOptions[1].json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9e6237a6-02cd-49d0-a973-a2eb52641c03" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7feb4c29-31a7-4b51-a726-3998f08279dc", - "Content-Length": "979", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchStringInput[1].json deleted file mode 100644 index b52e0951ba39..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForBatchStringInput[1].json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "30af5e99-5d5d-4d32-8544-d7ce87ec68bf" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7cfc35ef-5fdb-43a2-ae54-c04acc5d9437", - "Content-Length": "979", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "18", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForEmptyText[1].json deleted file mode 100644 index cc16e08eeeaa..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForEmptyText[1].json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "174", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:56:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9821f3ed-833f-441a-8d51-d223269d8edd" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d20c7386-8578-436b-abe2-83a0f02f6695", - "Content-Length": "264", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining[1].json deleted file mode 100644 index bf7c08e63ea9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining[1].json +++ /dev/null @@ -1,282 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:56:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0a0713aa-ef73-40e6-910a-8167fca5dfc4" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a0f3ce6f-9321-449f-8342-9f7d8415be8b", - "Content-Length": "2872", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. ", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 27, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 19, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 40, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 50, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 59, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining[1].json deleted file mode 100644 index 4ed20ebcaa2d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining[1].json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "66834683-c53a-4347-9a81-dea5ab774982" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c14aa582-cdb7-4e3f-abe0-eb397b72b59f", - "Content-Length": "3096", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "44", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. ", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 27, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 19, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 40, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 50, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 59, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringShowStatisticsExcludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringShowStatisticsExcludeOpinionMining[1].json deleted file mode 100644 index 3edd02183218..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringShowStatisticsExcludeOpinionMining[1].json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d6c22943-a4b9-45be-98c5-9f05e3baac37" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6f52d1a6-5f82-4295-8349-6c8360d95181", - "Content-Length": "1203", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "23", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringWithLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringWithLanguageHint[1].json deleted file mode 100644 index 4d65417eaa03..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForListStringWithLanguageHint[1].json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "361", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:45 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4f2428c5-28b4-4785-8d46-7dd96243b805" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi.", - "language": "en" - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bb8edfe2-acdf-4dc6-aa3e-829553298483", - "Content-Length": "979", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "22", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInputWithDefaultLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInputWithDefaultLanguageHint[1].json deleted file mode 100644 index 71a9ee1eb332..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInputWithDefaultLanguageHint[1].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "241", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "18a326c0-899a-43a1-8cc4-7e91c62bca6f" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "14caa343-7804-40fd-8f7f-6c0083188037", - "Content-Length": "540", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "31", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInputWithOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInputWithOpinionMining[1].json deleted file mode 100644 index 7f1df2b40c11..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInputWithOpinionMining[1].json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "256", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6ba3ed42-4aef-4fc7-8cfe-af7b3bdb2efb" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6313375f-d1dc-47b3-8369-aaa6bbd3abfb", - "Content-Length": "1486", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:32 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "28", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInput[1].json deleted file mode 100644 index defc98e04b8f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentForTextInput[1].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "241", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:59:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f9068628-eb76-46d0-8ffc-f06f9d9121d1" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e711200a-f81e-4323-a7c9-aa0e3023ae28", - "Content-Length": "540", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:59:23 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "20", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentKoreanNfc[1].json deleted file mode 100644 index 58ddc5dd7758..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentKoreanNfc[1].json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "93d7bef8-a086-4509-af2d-6f4c1a1898ca" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 The hotel was unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0a81eb36-2dc4-486c-9c0d-65e795194a3b", - "Content-Length": "751", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "23", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 25, - "text": "\uC544\uAC00 The hotel was unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.01, - "negative": 0.99 - }, - "offset": 7, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.01, - "negative": 0.99 - }, - "offset": 17, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentKoreanNfd[1].json deleted file mode 100644 index aac661c12a9a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.analyzeSentimentKoreanNfd[1].json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fb2d8d22-85fd-4fe5-94ee-8736f1ad37f4" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 The hotel was unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "34d31912-c991-4503-9f36-9be42520eb57", - "Content-Length": "751", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "23", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 25, - "text": "\uC544\uAC00 The hotel was unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.01, - "negative": 0.99 - }, - "offset": 7, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.01, - "negative": 0.99 - }, - "offset": 17, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryDuplicateIdInput[1].json deleted file mode 100644 index fa2bc00a343d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryDuplicateIdInput[1].json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "345", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e39a1ef0-a63f-4525-bdcf-9ed6af304cc1" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "parameters": { - "stringIndexType": "Utf16CodeUnit", - "loggingOptOut": false - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "cfc28a97-7edb-4bdd-8939-e68f619c13c6", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "4", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027AbstractiveSummarization\u0027 failed with validation error: Document abstractive summarization is not supported in the region West US 2. The supported regions are North Europe, East US, UK South." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027AbstractiveSummarization\u0027 failed with validation errors: [\u0027Invalid Request.\u0027]" - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryMaxOverload[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryMaxOverload[1].json deleted file mode 100644 index d82ac9ec6e8b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryMaxOverload[1].json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1822", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:57:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a6a81ce0-50c3-47fe-a772-fd770bcc12ed" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "parameters": { - "sentenceCount": 4, - "stringIndexType": "Utf16CodeUnit", - "loggingOptOut": false - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "46d4fe5e-0644-4a8e-a98c-2c86f42702d9", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:57:01 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/ddbd0760-ad85-47ac-8e1a-324fd8347134?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "187", - "x-ms-region": "East US" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ddbd0760-ad85-47ac-8e1a-324fd8347134?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:57:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5ab390fe-b19e-44a0-996c-216a8edb8fa5" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "02b02f6d-78c0-463d-b639-26718870d6d8", - "Content-Length": "1449", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:57:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "42", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "ddbd0760-ad85-47ac-8e1a-324fd8347134", - "lastUpdatedDateTime": "2023-04-05T19:57:04Z", - "createdDateTime": "2023-04-05T19:57:01Z", - "expirationDateTime": "2023-04-06T19:57:01Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:57:04.063387Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ddbd0760-ad85-47ac-8e1a-324fd8347134?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:57:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e711aee2-610a-4d12-b882-8a1c51043464" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "be07feb4-d7a1-478a-8a4c-bc2bc26b064a", - "Content-Length": "1449", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:57:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "41", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "ddbd0760-ad85-47ac-8e1a-324fd8347134", - "lastUpdatedDateTime": "2023-04-05T19:57:04Z", - "createdDateTime": "2023-04-05T19:57:01Z", - "expirationDateTime": "2023-04-06T19:57:01Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:57:04.063387Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryStringInput[1].json deleted file mode 100644 index 58f23b990fb3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginAbstractSummaryStringInput[1].json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1804", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:56:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d0fa2a62-2fd1-4e4d-937e-f4d47c38571d" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "parameters": { - "stringIndexType": "Utf16CodeUnit", - "loggingOptOut": false - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "f5d97d61-98f9-4ddf-b1e8-47f62e4bf7fa", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:56:18 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/f1e9df86-06b1-431c-a352-bf438a11be77?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "157", - "x-ms-region": "East US" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/f1e9df86-06b1-431c-a352-bf438a11be77?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:56:49 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5e50b102-bfe3-4d44-be35-4f7226c54dc2" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f838cbd3-7732-464a-a7b2-d9069b3d89d1", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:56:47 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "34", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "f1e9df86-06b1-431c-a352-bf438a11be77", - "lastUpdatedDateTime": "2023-04-05T19:56:20Z", - "createdDateTime": "2023-04-05T19:56:18Z", - "expirationDateTime": "2023-04-06T19:56:18Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:56:20.6436489Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/f1e9df86-06b1-431c-a352-bf438a11be77?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:56:49 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1e3c08a6-3de5-4baf-a6ec-51b7f735cd04" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d4ddddb5-1395-4db0-94f6-006081c12941", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:56:48 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "40", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "f1e9df86-06b1-431c-a352-bf438a11be77", - "lastUpdatedDateTime": "2023-04-05T19:56:20Z", - "createdDateTime": "2023-04-05T19:56:18Z", - "expirationDateTime": "2023-04-06T19:56:18Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:56:20.6436489Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummaryMaxSentenceCountInvalidRangeException[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummaryMaxSentenceCountInvalidRangeException[1].json deleted file mode 100644 index aba00bbfc16c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummaryMaxSentenceCountInvalidRangeException[1].json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1837", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:56:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a9bd2cab-7753-4222-8141-c1c8ce24bf52" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 0, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "0ea44bf6-5b9c-4389-9504-e516a49ac0c4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation error: Job task parameter value \u00270\u0027 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max)." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation errors: [\u0027Invalid parameter in request\u0027]" - } - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1838", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:56:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "11ffb50f-0376-4f2f-be17-8a8579e86d59" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 21, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "4cab690d-82fb-4bfd-a105-377db3202631", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation error: Job task parameter value \u002721\u0027 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max)." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation errors: [\u0027Invalid parameter in request\u0027]" - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummaryNonDefaultSentenceCount[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummaryNonDefaultSentenceCount[1].json deleted file mode 100644 index 77ddc063d535..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummaryNonDefaultSentenceCount[1].json +++ /dev/null @@ -1,225 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1837", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "94596744-7917-4883-bc84-aadcb556b849" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 5, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "843c4f96-9320-4e68-9075-2f76c7b2caff", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/ef528d19-c58d-4ae5-9f67-f741d373280f?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "107", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ef528d19-c58d-4ae5-9f67-f741d373280f?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:03:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7f0ec025-8c55-4f39-8f22-00842f3bd4dd" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b2fc1dbf-bc86-45e8-a362-d52910e50681", - "Content-Length": "1666", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:03:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ef528d19-c58d-4ae5-9f67-f741d373280f", - "lastUpdatedDateTime": "2023-04-05T19:03:01Z", - "createdDateTime": "2023-04-05T19:03:00Z", - "expirationDateTime": "2023-04-06T19:03:00Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:03:01.1592461Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ef528d19-c58d-4ae5-9f67-f741d373280f?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:03:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4bac13b5-59fd-4864-ae6e-841d9d769a37" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "22a27029-876d-4b45-8aaf-1478d4c96bf9", - "Content-Length": "1666", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:03:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "295", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ef528d19-c58d-4ae5-9f67-f741d373280f", - "lastUpdatedDateTime": "2023-04-05T19:03:01Z", - "createdDateTime": "2023-04-05T19:03:00Z", - "expirationDateTime": "2023-04-06T19:03:00Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:03:01.1592461Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySentenceCountLessThanMaxCount[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySentenceCountLessThanMaxCount[1].json deleted file mode 100644 index 3193801b4c8f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySentenceCountLessThanMaxCount[1].json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1838", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:48:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ba756451-6e0a-4775-94d0-4a34e1147510" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 20, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "34deaaac-4ecf-477b-8448-915a0c4956c8", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:48:30 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/e1529644-a554-4cec-8995-060d28cf77cc?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "168", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/e1529644-a554-4cec-8995-060d28cf77cc?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:49:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ce688c14-4660-4d6e-9118-a774fb37f5d4" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "25e000a2-ae8b-4857-be25-49c02245c502", - "Content-Length": "2629", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "61", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "e1529644-a554-4cec-8995-060d28cf77cc", - "lastUpdatedDateTime": "2023-04-05T18:48:30Z", - "createdDateTime": "2023-04-05T18:48:29Z", - "expirationDateTime": "2023-04-06T18:48:29Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:48:30.8771237Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality.", - "rankScore": 0.3, - "offset": 161, - "length": 162 - }, - { - "text": "In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z).", - "rankScore": 0.12, - "offset": 324, - "length": 192 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand.", - "rankScore": 0.0, - "offset": 1237, - "length": 241 - }, - { - "text": "I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "rankScore": 0.19, - "offset": 1479, - "length": 148 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/e1529644-a554-4cec-8995-060d28cf77cc?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:49:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9aa6793f-24ab-44e9-a72c-90aa6bfea0bc" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cf5f3ee1-0fa3-41e9-8ff4-dad8b0d2b6a2", - "Content-Length": "2629", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "217", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "e1529644-a554-4cec-8995-060d28cf77cc", - "lastUpdatedDateTime": "2023-04-05T18:48:30Z", - "createdDateTime": "2023-04-05T18:48:29Z", - "expirationDateTime": "2023-04-06T18:48:29Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:48:30.8771237Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality.", - "rankScore": 0.3, - "offset": 161, - "length": 162 - }, - { - "text": "In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z).", - "rankScore": 0.12, - "offset": 324, - "length": 192 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand.", - "rankScore": 0.0, - "offset": 1237, - "length": 241 - }, - { - "text": "I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "rankScore": 0.19, - "offset": 1479, - "length": 148 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySortedByOffset[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySortedByOffset[1].json deleted file mode 100644 index e235a5c479b2..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySortedByOffset[1].json +++ /dev/null @@ -1,214 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1855", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0dbe7851-e158-4b62-a03a-2b9083d86dcc" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 4, - "sortBy": "Offset", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "6e672065-edbc-42aa-9d54-4d0312612701", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:54:10 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/5621be9d-759c-4aaa-9d13-aa5e0cfdb4d6?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "256", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5621be9d-759c-4aaa-9d13-aa5e0cfdb4d6?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:54:40 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e6091d2f-ceb4-4819-afda-aec844639965" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0e7aee1e-2b3f-4237-82b6-bf2f987a48bb", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:54:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "58", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5621be9d-759c-4aaa-9d13-aa5e0cfdb4d6", - "lastUpdatedDateTime": "2023-04-05T18:54:10Z", - "createdDateTime": "2023-04-05T18:54:10Z", - "expirationDateTime": "2023-04-06T18:54:10Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:10.9541679Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5621be9d-759c-4aaa-9d13-aa5e0cfdb4d6?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:54:40 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9502cd1c-8027-4571-8236-9e4bb35e3e7b" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a6151545-f745-4b0b-a652-544cbf4aba9c", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:54:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "48", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5621be9d-759c-4aaa-9d13-aa5e0cfdb4d6", - "lastUpdatedDateTime": "2023-04-05T18:54:10Z", - "createdDateTime": "2023-04-05T18:54:10Z", - "expirationDateTime": "2023-04-06T18:54:10Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:54:10.9541679Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySortedByRankScore[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySortedByRankScore[1].json deleted file mode 100644 index a10209a970b6..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.beginExtractSummarySortedByRankScore[1].json +++ /dev/null @@ -1,214 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1853", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:58:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2ecfd774-4aa4-4ea9-89f0-fd8486812061" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 4, - "sortBy": "Rank", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "da5a95a4-f0f2-41b7-afaa-e5a29a68f9de", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:58:21 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c3a7fce7-0b49-4916-9064-9eeeb87d4ddd?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "265", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c3a7fce7-0b49-4916-9064-9eeeb87d4ddd?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:58:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "dba6e93c-0d2b-4084-922e-18f80910a395" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6f7e9a3b-4133-4501-8c45-372b5b8f5e3d", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:58:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "99", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c3a7fce7-0b49-4916-9064-9eeeb87d4ddd", - "lastUpdatedDateTime": "2023-04-05T18:58:22Z", - "createdDateTime": "2023-04-05T18:58:22Z", - "expirationDateTime": "2023-04-06T18:58:22Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:58:22.9885775Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c3a7fce7-0b49-4916-9064-9eeeb87d4ddd?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:58:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e1cb70ae-f47c-4bd3-b6ca-62839657544a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "95b2db52-037b-451b-a4c9-c29cc135e94b", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:58:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "162", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c3a7fce7-0b49-4916-9064-9eeeb87d4ddd", - "lastUpdatedDateTime": "2023-04-05T18:58:22Z", - "createdDateTime": "2023-04-05T18:58:22Z", - "expirationDateTime": "2023-04-06T18:58:22Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:58:22.9885775Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageDuplicateIdInput[1].json deleted file mode 100644 index 328925c28379..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageDuplicateIdInput[1].json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "229", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1a630478-8a30-4db5-9f24-1a8cc1028361" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - }, - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "4d2e0c17-9c8b-4068-ab58-9b1dc9144690", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyCountryHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyCountryHint[1].json deleted file mode 100644 index 3f977d56b8e5..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyCountryHint[1].json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "176", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:45 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "63806f1a-cf15-4405-8613-1936816ca4f0" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "484ad010-fdda-419d-a28c-81e7c033045f", - "Content-Length": "205", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyIdInput[1].json deleted file mode 100644 index 748b95d91430..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyIdInput[1].json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "143", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:00:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ad8a6ae7-b05b-40fa-b9bd-5027c2bc9876" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "c9f42143-946c-401a-bd64-25e9764d6fe4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:00:55 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyText[1].json deleted file mode 100644 index 2d2ff0fb7c21..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageEmptyText[1].json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "118", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f02bef7c-e9c5-48b8-a98f-3684ebf107d5" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "25b919fe-a114-4f8e-ba89-7e2f6171db2e", - "Content-Length": "264", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageInvalidCountryHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageInvalidCountryHint[1].json deleted file mode 100644 index 640eae8b5c56..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageInvalidCountryHint[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "178", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b7eb763d-04e8-41fa-8df6-656d2a75682f" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1140bba1-6ae7-435a-9da9-d027b916c82f", - "Content-Length": "325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Country Hint.", - "innererror": { - "code": "InvalidCountryHint", - "message": "Country hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country code." - } - } - } - ], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageNoneCountryHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageNoneCountryHint[1].json deleted file mode 100644 index b838bc56f342..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguageNoneCountryHint[1].json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "176", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c2b01cad-cd2e-40fd-b5ba-0f64b8d5b119" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f14a7c59-c4cb-4a36-b9fe-15749c57f41e", - "Content-Length": "205", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "17", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchInputShowStatistics[1].json deleted file mode 100644 index 8877aedfdc2f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchInputShowStatistics[1].json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "244", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:45 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b5855479-9d18-4fb6-a706-80e770460b85" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "23a0f45e-3cf1-4f75-a4b9-3d2b4fb82d33", - "Content-Length": "534", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "statistics": { - "charactersCount": 26, - "transactionsCount": 1 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "statistics": { - "charactersCount": 40, - "transactionsCount": 1 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchInput[1].json deleted file mode 100644 index d55db6325094..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchInput[1].json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "244", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "359030a1-cae9-457a-a458-10d58af89107" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7337c3ba-3003-47ab-8a21-be789a445431", - "Content-Length": "310", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:06:35 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchListCountryHintWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchListCountryHintWithOptions[1].json deleted file mode 100644 index 1d9a59620b6e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchListCountryHintWithOptions[1].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "206", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:58:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9db87920-028c-4768-a00e-061e7138e6a1" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8631bffb-f565-4e21-bce2-e6910d15602a", - "Content-Length": "534", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:58:21 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "statistics": { - "charactersCount": 26, - "transactionsCount": 1 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "statistics": { - "charactersCount": 40, - "transactionsCount": 1 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchListCountryHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchListCountryHint[1].json deleted file mode 100644 index 6b03078ef408..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchListCountryHint[1].json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "244", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ccd9aeb4-37f9-4fbd-a01f-8f386d62be00" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a05d5052-415f-4760-b3ec-b9d0f3d89c22", - "Content-Length": "310", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:03:30 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchStringInput[1].json deleted file mode 100644 index 9988097c4bda..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectLanguagesBatchStringInput[1].json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "206", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5cdd5afd-965a-4ea3-9633-7d3f2af361d9" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "750ac870-75fe-4081-9455-9a5768c65471", - "Content-Length": "310", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectSingleTextLanguage[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectSingleTextLanguage[1].json deleted file mode 100644 index 8d5791b19c62..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.detectSingleTextLanguage[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1c6b7c97-f264-4fca-a9af-8e03a99a015d" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ff6175d2-8ff9-4648-8f11-6111b417ddfb", - "Content-Length": "206", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesBatchTooManyDocuments[1].json deleted file mode 100644 index b8069a5c995c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesBatchTooManyDocuments[1].json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "881", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4a93ac55-5a92-47a1-b096-835d989639cc" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "f76b3ac2-e47b-430d-bf30-a9ddda403c06", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 10 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesDuplicateIdInput[1].json deleted file mode 100644 index 03653a071eff..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesDuplicateIdInput[1].json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "294", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "eab32055-4efd-422f-92ac-de039ba26eeb" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "c89b399d-be4e-4e60-bee7-b7a87d4ca39d", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:54:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesEmptyIdInput[1].json deleted file mode 100644 index 30125e2b30d9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesEmptyIdInput[1].json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "163", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a40e4061-46e1-4e9d-8c1e-92ee470cd287" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "30d5d6c7-21b8-4389-a130-fc7f272f3ebe", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchInputShowStatistics[1].json deleted file mode 100644 index ed3e6b38a93e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "211", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:51:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "45d661b8-1caf-412d-a971-f43af56f2f6d" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love." - }, - { - "id": "1", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "084d175d-648e-4d12-b5bb-acacee44ec47", - "Content-Length": "442", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:51:35 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "statistics": { - "charactersCount": 49, - "transactionsCount": 1 - }, - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "statistics": { - "charactersCount": 21, - "transactionsCount": 1 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchInput[1].json deleted file mode 100644 index 06de48c3a152..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchInput[1].json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "211", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1ebed183-9c96-4bdc-955d-8129ca636fb2" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love." - }, - { - "id": "1", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6c555e38-b28f-4e95-bd41-8b6aaadab4db", - "Content-Length": "218", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchStringInput[1].json deleted file mode 100644 index ae4ea657212e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForBatchStringInput[1].json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "211", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "abd8c607-3ce2-407c-a3e2-82a44321bece" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love." - }, - { - "id": "1", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c311fc8c-a791-4fe2-a03b-3e6cc1f40539", - "Content-Length": "218", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForEmptyText[1].json deleted file mode 100644 index 511fc517de6e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForEmptyText[1].json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "120", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:52:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c14a4f66-23be-4f62-8d3c-12a5e1dd505e" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "12920f15-ad53-47fa-8777-f3a14fa00e9b", - "Content-Length": "266", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForListLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForListLanguageHint[1].json deleted file mode 100644 index 2afb56be2098..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForListLanguageHint[1].json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "243", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f03e0c10-0ff8-4ce2-88d6-aecd12a25f69" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love.", - "language": "en" - }, - { - "id": "1", - "text": "Bonjour tout le monde", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1d987f9c-954d-4005-8c7b-ec7aed4b3c67", - "Content-Length": "218", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForListStringWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForListStringWithOptions[1].json deleted file mode 100644 index cb992733f908..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForListStringWithOptions[1].json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "211", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f78baab6-5540-4d47-871c-034de26acf93" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love." - }, - { - "id": "1", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6ff4c70a-f1f4-46bb-ac16-93e83d60f015", - "Content-Length": "442", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:56:17 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "statistics": { - "charactersCount": 49, - "transactionsCount": 1 - }, - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "statistics": { - "charactersCount": 21, - "transactionsCount": 1 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForTextInput[1].json deleted file mode 100644 index df45c6a0790a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.extractKeyPhrasesForTextInput[1].json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "141", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:53:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "389a8c9d-81c2-4636-aadf-d3606a73685a" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0813ad74-0d1f-43c6-a5d9-db1e68f06bfe", - "Content-Length": "151", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:53:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "monde" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareLroEmptyInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareLroEmptyInput[1].json deleted file mode 100644 index f721723386d8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareLroEmptyInput[1].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareLroPagination[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareLroPagination[1].json deleted file mode 100644 index f4e8302d2043..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareLroPagination[1].json +++ /dev/null @@ -1,6219 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1395", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:56:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8e12f492-0b16-409a-b70c-3c96139c45f4" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "1", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "2", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "3", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "4", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "5", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "6", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "7", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "8", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "9", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "0ac81f09-8979-4ac6-83d8-570d33ae4bd7", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:56:18 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/dca53f82-bd58-4030-a3e9-7d96bcaa4673?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "560", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/dca53f82-bd58-4030-a3e9-7d96bcaa4673?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:56:49 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f145308f-8bc0-4dda-8c28-21db1687d311" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f3a0abf8-d76a-4735-b2da-7bcec69cde65", - "Content-Length": "31563", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:56:48 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "265", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "dca53f82-bd58-4030-a3e9-7d96bcaa4673", - "lastUpdatedDateTime": "2023-04-05T18:56:22Z", - "createdDateTime": "2023-04-05T18:56:18Z", - "expirationDateTime": "2023-04-06T18:56:18Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:56:22.3141638Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 10, - "validDocumentsCount": 10, - "erroneousDocumentsCount": 0, - "transactionsCount": 10 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/1/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/1/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "2", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/2/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/2/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/2/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/2/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/3/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/3/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/3/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/3/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "4", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/4/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/4/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/4/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/4/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "5", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/5/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/5/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/5/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/5/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "6", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/6/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/6/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/6/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/6/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "7", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/7/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/7/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/7/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/7/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "8", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/8/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/8/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/8/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/8/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "9", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/9/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/9/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/9/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/9/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/dca53f82-bd58-4030-a3e9-7d96bcaa4673?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:56:49 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "11fcfa4b-c4af-47b3-9b69-4fda613aa51a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a4893393-a366-48d7-a2aa-7d33b903294c", - "Content-Length": "31563", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:56:48 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "191", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "dca53f82-bd58-4030-a3e9-7d96bcaa4673", - "lastUpdatedDateTime": "2023-04-05T18:56:22Z", - "createdDateTime": "2023-04-05T18:56:18Z", - "expirationDateTime": "2023-04-06T18:56:18Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:56:22.3141638Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 10, - "validDocumentsCount": 10, - "erroneousDocumentsCount": 0, - "transactionsCount": 10 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/1/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/1/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "2", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/2/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/2/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/2/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/2/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/3/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/3/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/3/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/3/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "4", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/4/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/4/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/4/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/4/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "5", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/5/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/5/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/5/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/5/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "6", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/6/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/6/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/6/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/6/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "7", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/7/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/7/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/7/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/7/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "8", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/8/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/8/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/8/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/8/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "9", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/9/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/9/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/9/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/9/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareMaxOverload[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareMaxOverload[1].json deleted file mode 100644 index 91d7c8ff874f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareMaxOverload[1].json +++ /dev/null @@ -1,1482 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "468", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:57:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2d83fe1e-a532-4b14-9354-ce56cbc081d0" - }, - "RequestBody": { - "displayName": "operationName", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "1", - "text": "The patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent." - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "442b8a48-0f87-4eec-889f-cfcbff416273", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:57:19 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/57ae01b4-806e-467b-a1fa-c4041bedcdf7?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "182", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/57ae01b4-806e-467b-a1fa-c4041bedcdf7?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:57:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "53f2f956-5b0a-4d90-a962-67570bfc188c" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1c20b480-555e-465e-923e-79169329fd57", - "Content-Length": "7430", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:57:49 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "139", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "57ae01b4-806e-467b-a1fa-c4041bedcdf7", - "lastUpdatedDateTime": "2023-04-05T18:57:22Z", - "createdDateTime": "2023-04-05T18:57:20Z", - "expirationDateTime": "2023-04-06T18:57:20Z", - "status": "succeeded", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:57:22.1890181Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 156, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/57ae01b4-806e-467b-a1fa-c4041bedcdf7?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:57:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ef2c1a25-bec0-4810-b8fc-70d1a059a605" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6fb68056-f718-4058-8cb3-63d01e0fd73f", - "Content-Length": "7430", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:57:50 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "208", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "57ae01b4-806e-467b-a1fa-c4041bedcdf7", - "lastUpdatedDateTime": "2023-04-05T18:57:22Z", - "createdDateTime": "2023-04-05T18:57:20Z", - "expirationDateTime": "2023-04-06T18:57:20Z", - "status": "succeeded", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:57:22.1890181Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 156, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareStringInputWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareStringInputWithOptions[1].json deleted file mode 100644 index b93c4ddb37db..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareStringInputWithOptions[1].json +++ /dev/null @@ -1,3922 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "552", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:02:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e67327eb-6067-4bfc-9eb4-8c4b1d11f8d7" - }, - "RequestBody": { - "displayName": "operationName", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months.", - "language": "en" - }, - { - "id": "1", - "text": "The patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "fhirVersion": "4.0.1", - "documentType": "ProgressNote", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "bd0d20de-c732-4c43-900f-9c4171cb21af", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:02:28 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/a79a2ae0-8d44-4cfe-9a25-8851d05d1207?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "157", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/a79a2ae0-8d44-4cfe-9a25-8851d05d1207?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a16b0620-2ad7-42d6-93d6-b8a8f8ed78c8" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "dcced8dc-6073-4f0e-a594-e4bacaa5a7bd", - "Content-Length": "26798", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:02:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "343", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "a79a2ae0-8d44-4cfe-9a25-8851d05d1207", - "lastUpdatedDateTime": "2023-04-05T19:02:30Z", - "createdDateTime": "2023-04-05T19:02:28Z", - "expirationDateTime": "2023-04-06T19:02:28Z", - "status": "succeeded", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:02:30.4901862Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "01a3dad2-44bd-4326-8b41-7dd4af012aa2", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:01a3dad2-44bd-4326-8b41-7dd4af012aa2" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/1d1554b9-7f7c-4aad-a0a9-a2ec58644acb", - "resource": { - "resourceType": "Composition", - "id": "1d1554b9-7f7c-4aad-a0a9-a2ec58644acb", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11506-3", - "display": "Progress note" - } - ], - "text": "Progress note" - }, - "subject": { - "reference": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/4959068c-b010-4c10-aba1-917a380c56e0", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/309414ee-eb83-47bf-9115-8ac707137e83", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Progress note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/309414ee-eb83-47bf-9115-8ac707137e83", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient is a 54-year-old gentleman with a history of progressive angina over the past several months.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/8a198b55-6793-41eb-873f-71e478ddd26f", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "resource": { - "resourceType": "Patient", - "id": "2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 29 - }, - { - "url": "REDACTED", - "valueInteger": 9 - } - ], - "url": "REDACTED" - } - ], - "gender": "male" - } - }, - { - "fullUrl": "Encounter/4959068c-b010-4c10-aba1-917a380c56e0", - "resource": { - "resourceType": "Encounter", - "id": "4959068c-b010-4c10-aba1-917a380c56e0", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/8a198b55-6793-41eb-873f-71e478ddd26f", - "resource": { - "resourceType": "List", - "id": "8a198b55-6793-41eb-873f-71e478ddd26f", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/4959068c-b010-4c10-aba1-917a380c56e0", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/7a4ecff0-4be0-473f-8e78-e45fb732e12a", - "type": "Observation", - "display": "angina" - } - } - ] - } - }, - { - "fullUrl": "Observation/7a4ecff0-4be0-473f-8e78-e45fb732e12a", - "resource": { - "resourceType": "Observation", - "id": "7a4ecff0-4be0-473f-8e78-e45fb732e12a", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 69 - }, - { - "url": "REDACTED", - "valueInteger": 6 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0002962", - "display": "Angina Pectoris" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000005330" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00047" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017852" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccs", - "code": "7.2.4.1" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000001165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "054" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1393-3407" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ANGINA PECTORIS" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U000113" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0001681" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-am", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-9-cm", - "code": "413" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc", - "code": "K74" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc2eeng", - "code": "K74" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU006338" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "K74001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U000244" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85005022" - }, - { - "system": "http://loinc.org", - "code": "LA14275-4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10002383" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "33215" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "142" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D000787" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mth", - "code": "053" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - }, - { - "system": "http://hl7.org/fhir/sid/mthicpc2eae", - "code": "K74" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E10110" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1710" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "040504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU009903" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/oms", - "code": "29.13" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_02040.07" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "02530" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/qmr", - "code": "Q0300326" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "G33.." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcdae", - "code": "Ua1eH" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-71500" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "D3-12000" - }, - { - "system": "http://snomed.info/sct", - "code": "194828000" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0422" - } - ], - "text": "angina" - }, - "subject": { - "reference": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/4959068c-b010-4c10-aba1-917a380c56e0", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 85 - }, - { - "url": "REDACTED", - "valueInteger": 19 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 1, - "durationUnit": "mo" - }, - "code": { - "text": "past several months" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 57 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "text": "progressive" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/309414ee-eb83-47bf-9115-8ac707137e83", - "resource": { - "resourceType": "Practitioner", - "id": "309414ee-eb83-47bf-9115-8ac707137e83", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - }, - { - "id": "1", - "statistics": { - "charactersCount": 156, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "d34d8e1e-894d-4609-91f1-8ec81bd55b9b", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:d34d8e1e-894d-4609-91f1-8ec81bd55b9b" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/426eb669-9f58-4dfd-aefe-8362222956a7", - "resource": { - "resourceType": "Composition", - "id": "426eb669-9f58-4dfd-aefe-8362222956a7", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11506-3", - "display": "Progress note" - } - ], - "text": "Progress note" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/fc1d9a04-d598-4091-96de-6cdca9487e6d", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Progress note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/fc1d9a04-d598-4091-96de-6cdca9487e6d", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/fa956f9a-1b50-41db-9ae6-36681d454cc3", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "resource": { - "resourceType": "Patient", - "id": "26f9a765-034b-43d5-b1a8-6711c27c4726", - "language": "en", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "resource": { - "resourceType": "Encounter", - "id": "e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/fa956f9a-1b50-41db-9ae6-36681d454cc3", - "resource": { - "resourceType": "List", - "id": "fa956f9a-1b50-41db-9ae6-36681d454cc3", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/07ec96e6-343e-4a34-8196-23f508676d0c", - "type": "Observation", - "display": "ST depressions in the anterior lateral leads" - } - }, - { - "item": { - "reference": "Observation/5f861706-08b9-451b-b1db-d7619699d8e2", - "type": "Observation", - "display": "fatigue" - } - }, - { - "item": { - "reference": "Observation/7678d742-613d-4d32-9c45-1f4471be196c", - "type": "Observation", - "display": "wrist pain" - } - }, - { - "item": { - "reference": "Observation/8b52b1e1-16cb-49ae-a2a5-e8b543b0adfe", - "type": "Observation", - "display": "anginal equivalent" - } - } - ] - } - }, - { - "fullUrl": "Observation/07ec96e6-343e-4a34-8196-23f508676d0c", - "resource": { - "resourceType": "Observation", - "id": "07ec96e6-343e-4a34-8196-23f508676d0c", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 46 - }, - { - "url": "REDACTED", - "valueInteger": 44 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "text": "ST depressions in the anterior lateral leads" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 21 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 6, - "durationUnit": "min" - }, - "code": { - "text": "six minutes" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 38 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "text": "minimal" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/5f861706-08b9-451b-b1db-d7619699d8e2", - "resource": { - "resourceType": "Observation", - "id": "5f861706-08b9-451b-b1db-d7619699d8e2", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 108 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0015672", - "display": "Fatigue" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/air", - "code": "FATIG" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000001768" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccc", - "code": "A01.4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1014729" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000004914" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "298" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cpm", - "code": "65221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1385-2059" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ASTHENIA" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U001451" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0012378" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "R53.83" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icnp", - "code": "10000695" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU080142" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "A04004" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U001739" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85047465" - }, - { - "system": "http://loinc.org", - "code": "MTHU013358" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10016256" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "273174" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "5324" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D005221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "780.79" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nanda-i", - "code": "00742" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cdisc", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E11098" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1849" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000321374" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cadsr", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "121028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU010062" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_00010.03" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000041390" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "19400" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "1682." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-01610" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-01360" - }, - { - "system": "http://snomed.info/sct", - "code": "84229001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0724" - } - ], - "text": "fatigue" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/7678d742-613d-4d32-9c45-1f4471be196c", - "resource": { - "resourceType": "Observation", - "id": "7678d742-613d-4d32-9c45-1f4471be196c", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 120 - }, - { - "url": "REDACTED", - "valueInteger": 10 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0221785", - "display": "Pain in wrist" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1016217" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000021489" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "U000624" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U004491" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0030836" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "M25.53" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU060847" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "L11002" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10048692" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "939" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU016462" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "N094F" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-176A0" - }, - { - "system": "http://snomed.info/sct", - "code": "56608008" - } - ], - "text": "wrist pain" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/8b52b1e1-16cb-49ae-a2a5-e8b543b0adfe", - "resource": { - "resourceType": "Observation", - "id": "8b52b1e1-16cb-49ae-a2a5-e8b543b0adfe", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 137 - }, - { - "url": "REDACTED", - "valueInteger": 18 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0741034", - "display": "Anginal equivalent" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017783" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000047213" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.8" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10076419" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - } - ], - "text": "anginal equivalent" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/fc1d9a04-d598-4091-96de-6cdca9487e6d", - "resource": { - "resourceType": "Practitioner", - "id": "fc1d9a04-d598-4091-96de-6cdca9487e6d", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/a79a2ae0-8d44-4cfe-9a25-8851d05d1207?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b0606bcd-1af1-4265-8f47-02fc20e8980c" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bcff686b-ef81-4d6e-aeeb-3ead10d7e069", - "Content-Length": "26798", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "87", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "a79a2ae0-8d44-4cfe-9a25-8851d05d1207", - "lastUpdatedDateTime": "2023-04-05T19:02:30Z", - "createdDateTime": "2023-04-05T19:02:28Z", - "expirationDateTime": "2023-04-06T19:02:28Z", - "status": "succeeded", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T19:02:30.4901862Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "01a3dad2-44bd-4326-8b41-7dd4af012aa2", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:01a3dad2-44bd-4326-8b41-7dd4af012aa2" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/1d1554b9-7f7c-4aad-a0a9-a2ec58644acb", - "resource": { - "resourceType": "Composition", - "id": "1d1554b9-7f7c-4aad-a0a9-a2ec58644acb", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11506-3", - "display": "Progress note" - } - ], - "text": "Progress note" - }, - "subject": { - "reference": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/4959068c-b010-4c10-aba1-917a380c56e0", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/309414ee-eb83-47bf-9115-8ac707137e83", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Progress note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/309414ee-eb83-47bf-9115-8ac707137e83", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient is a 54-year-old gentleman with a history of progressive angina over the past several months.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/8a198b55-6793-41eb-873f-71e478ddd26f", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "resource": { - "resourceType": "Patient", - "id": "2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 29 - }, - { - "url": "REDACTED", - "valueInteger": 9 - } - ], - "url": "REDACTED" - } - ], - "gender": "male" - } - }, - { - "fullUrl": "Encounter/4959068c-b010-4c10-aba1-917a380c56e0", - "resource": { - "resourceType": "Encounter", - "id": "4959068c-b010-4c10-aba1-917a380c56e0", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/8a198b55-6793-41eb-873f-71e478ddd26f", - "resource": { - "resourceType": "List", - "id": "8a198b55-6793-41eb-873f-71e478ddd26f", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/4959068c-b010-4c10-aba1-917a380c56e0", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/7a4ecff0-4be0-473f-8e78-e45fb732e12a", - "type": "Observation", - "display": "angina" - } - } - ] - } - }, - { - "fullUrl": "Observation/7a4ecff0-4be0-473f-8e78-e45fb732e12a", - "resource": { - "resourceType": "Observation", - "id": "7a4ecff0-4be0-473f-8e78-e45fb732e12a", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 69 - }, - { - "url": "REDACTED", - "valueInteger": 6 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0002962", - "display": "Angina Pectoris" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000005330" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00047" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017852" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccs", - "code": "7.2.4.1" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000001165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "054" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1393-3407" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ANGINA PECTORIS" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U000113" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0001681" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-am", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-9-cm", - "code": "413" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc", - "code": "K74" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc2eeng", - "code": "K74" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU006338" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "K74001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U000244" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85005022" - }, - { - "system": "http://loinc.org", - "code": "LA14275-4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10002383" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "33215" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "142" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D000787" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mth", - "code": "053" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - }, - { - "system": "http://hl7.org/fhir/sid/mthicpc2eae", - "code": "K74" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E10110" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1710" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "040504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU009903" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/oms", - "code": "29.13" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_02040.07" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "02530" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/qmr", - "code": "Q0300326" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "G33.." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcdae", - "code": "Ua1eH" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-71500" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "D3-12000" - }, - { - "system": "http://snomed.info/sct", - "code": "194828000" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0422" - } - ], - "text": "angina" - }, - "subject": { - "reference": "Patient/2fb8ab2c-cfa5-47cd-8055-e8cd020b7938", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/4959068c-b010-4c10-aba1-917a380c56e0", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 85 - }, - { - "url": "REDACTED", - "valueInteger": 19 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 1, - "durationUnit": "mo" - }, - "code": { - "text": "past several months" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 57 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "text": "progressive" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/309414ee-eb83-47bf-9115-8ac707137e83", - "resource": { - "resourceType": "Practitioner", - "id": "309414ee-eb83-47bf-9115-8ac707137e83", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - }, - { - "id": "1", - "statistics": { - "charactersCount": 156, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "d34d8e1e-894d-4609-91f1-8ec81bd55b9b", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:d34d8e1e-894d-4609-91f1-8ec81bd55b9b" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/426eb669-9f58-4dfd-aefe-8362222956a7", - "resource": { - "resourceType": "Composition", - "id": "426eb669-9f58-4dfd-aefe-8362222956a7", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11506-3", - "display": "Progress note" - } - ], - "text": "Progress note" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/fc1d9a04-d598-4091-96de-6cdca9487e6d", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Progress note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/fc1d9a04-d598-4091-96de-6cdca9487e6d", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/fa956f9a-1b50-41db-9ae6-36681d454cc3", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "resource": { - "resourceType": "Patient", - "id": "26f9a765-034b-43d5-b1a8-6711c27c4726", - "language": "en", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "resource": { - "resourceType": "Encounter", - "id": "e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/fa956f9a-1b50-41db-9ae6-36681d454cc3", - "resource": { - "resourceType": "List", - "id": "fa956f9a-1b50-41db-9ae6-36681d454cc3", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/07ec96e6-343e-4a34-8196-23f508676d0c", - "type": "Observation", - "display": "ST depressions in the anterior lateral leads" - } - }, - { - "item": { - "reference": "Observation/5f861706-08b9-451b-b1db-d7619699d8e2", - "type": "Observation", - "display": "fatigue" - } - }, - { - "item": { - "reference": "Observation/7678d742-613d-4d32-9c45-1f4471be196c", - "type": "Observation", - "display": "wrist pain" - } - }, - { - "item": { - "reference": "Observation/8b52b1e1-16cb-49ae-a2a5-e8b543b0adfe", - "type": "Observation", - "display": "anginal equivalent" - } - } - ] - } - }, - { - "fullUrl": "Observation/07ec96e6-343e-4a34-8196-23f508676d0c", - "resource": { - "resourceType": "Observation", - "id": "07ec96e6-343e-4a34-8196-23f508676d0c", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 46 - }, - { - "url": "REDACTED", - "valueInteger": 44 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "text": "ST depressions in the anterior lateral leads" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 21 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 6, - "durationUnit": "min" - }, - "code": { - "text": "six minutes" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 38 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "text": "minimal" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/5f861706-08b9-451b-b1db-d7619699d8e2", - "resource": { - "resourceType": "Observation", - "id": "5f861706-08b9-451b-b1db-d7619699d8e2", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 108 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0015672", - "display": "Fatigue" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/air", - "code": "FATIG" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000001768" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccc", - "code": "A01.4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1014729" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000004914" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "298" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cpm", - "code": "65221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1385-2059" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ASTHENIA" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U001451" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0012378" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "R53.83" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icnp", - "code": "10000695" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU080142" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "A04004" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U001739" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85047465" - }, - { - "system": "http://loinc.org", - "code": "MTHU013358" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10016256" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "273174" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "5324" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D005221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "780.79" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nanda-i", - "code": "00742" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cdisc", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E11098" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1849" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000321374" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cadsr", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "121028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU010062" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_00010.03" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000041390" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "19400" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "1682." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-01610" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-01360" - }, - { - "system": "http://snomed.info/sct", - "code": "84229001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0724" - } - ], - "text": "fatigue" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/7678d742-613d-4d32-9c45-1f4471be196c", - "resource": { - "resourceType": "Observation", - "id": "7678d742-613d-4d32-9c45-1f4471be196c", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 120 - }, - { - "url": "REDACTED", - "valueInteger": 10 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0221785", - "display": "Pain in wrist" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1016217" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000021489" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "U000624" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U004491" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0030836" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "M25.53" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU060847" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "L11002" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10048692" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "939" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU016462" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "N094F" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-176A0" - }, - { - "system": "http://snomed.info/sct", - "code": "56608008" - } - ], - "text": "wrist pain" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/8b52b1e1-16cb-49ae-a2a5-e8b543b0adfe", - "resource": { - "resourceType": "Observation", - "id": "8b52b1e1-16cb-49ae-a2a5-e8b543b0adfe", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 137 - }, - { - "url": "REDACTED", - "valueInteger": 18 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0741034", - "display": "Anginal equivalent" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017783" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000047213" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.8" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10076419" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - } - ], - "text": "anginal equivalent" - }, - "subject": { - "reference": "Patient/26f9a765-034b-43d5-b1a8-6711c27c4726", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/e209a05f-1ec0-4241-9ae7-09e6d5ef46f9", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/fc1d9a04-d598-4091-96de-6cdca9487e6d", - "resource": { - "resourceType": "Practitioner", - "id": "fc1d9a04-d598-4091-96de-6cdca9487e6d", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareStringInputWithoutOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareStringInputWithoutOptions[1].json deleted file mode 100644 index 38c388257b6a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.healthcareStringInputWithoutOptions[1].json +++ /dev/null @@ -1,1451 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "438", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:52:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "00aac15a-da31-4000-917c-30172327328d" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "1", - "text": "The patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent." - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "17f7de69-a133-409c-89f2-45cb8b1ebdf9", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:52:07 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/e3a33d60-f914-4920-a161-2b11814785df?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "231", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/e3a33d60-f914-4920-a161-2b11814785df?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8f3bf620-493e-4b4f-b878-b3ae58bd2d28" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d9842bf4-298b-41d3-8d92-7af4a0c79984", - "Content-Length": "7174", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "93", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "e3a33d60-f914-4920-a161-2b11814785df", - "lastUpdatedDateTime": "2023-04-05T18:52:08Z", - "createdDateTime": "2023-04-05T18:52:06Z", - "expirationDateTime": "2023-04-06T18:52:06Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:08.8405006Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/e3a33d60-f914-4920-a161-2b11814785df?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0f795620-a9a3-40e6-8ac3-f6f22bee36fe" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "231c7161-1fa3-4b3b-b820-9122d48e3f0d", - "Content-Length": "7174", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "99", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "e3a33d60-f914-4920-a161-2b11814785df", - "lastUpdatedDateTime": "2023-04-05T18:52:08Z", - "createdDateTime": "2023-04-05T18:52:06Z", - "expirationDateTime": "2023-04-06T18:52:06Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:52:08.8405006Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesBatchInputSingleError[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesBatchInputSingleError[1].json deleted file mode 100644 index a538977708e3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesBatchInputSingleError[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "153", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1c06044e-dec9-49da-81b9-049c4c3050bb" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "2", - "text": " " - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "eb8bb372-ac89-4d74-8688-021ba1461519", - "Content-Length": "264", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "2", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesBatchTooManyDocuments[1].json deleted file mode 100644 index cecce946e3f6..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesBatchTooManyDocuments[1].json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "913", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "52099a56-2d67-4857-a3b6-d61ff5ec001d" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "2337956e-62fc-4247-b771-5b96beb8fea6", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 5 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDiacriticsNfc[1].json deleted file mode 100644 index cfebf6aca0b6..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDiacriticsNfc[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "177", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "eea8e061-14b2-49b6-b468-ae63684e9e1c" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3b9d7ae4-1689-484f-aba7-f1c5f3a53c68", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "18", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 14, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDiacriticsNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDiacriticsNfd[1].json deleted file mode 100644 index 68750a0d89c7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDiacriticsNfd[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "178", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2fd58b53-faad-4b7b-8c35-d665c852530e" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "an\u0303o I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d79cc258-e453-4505-95bd-a668b0816a2e", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 15, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDuplicateIdInput[1].json deleted file mode 100644 index c7bc77a58e8d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesDuplicateIdInput[1].json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "326", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "837787da-e2f8-4d09-9e6a-58a0e21037ec" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "09bac652-eacc-4d86-a8f9-1ca7d987c80c", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:06:35 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiFamilyWIthSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiFamilyWIthSkinToneModifier[1].json deleted file mode 100644 index 0cbdca8128b3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiFamilyWIthSkinToneModifier[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "278", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3a8bc681-f17b-47ee-b154-5560dc4b3459" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d8b79181-519b-4e82-a644-8d1ff7cd098b", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:54:09 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "28", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 30, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiFamily[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiFamily[1].json deleted file mode 100644 index 4abafb97516a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiFamily[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "230", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d1d3c51d-0079-4596-9be6-1c16a2320e37" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "31e13107-e117-476f-82de-1818012d6ed8", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "26", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 22, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiWithSkinToneModifier[1].json deleted file mode 100644 index 276d4795c7b8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmojiWithSkinToneModifier[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "197", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d1645b8b-b301-4979-a167-3b9879a85637" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ad3ac7cb-cbe1-4675-b9c1-1aa4570aa222", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "25", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 15, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmoji[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmoji[1].json deleted file mode 100644 index 30d21ae9840b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmoji[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "185", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "48229f5d-2a26-4ac5-ac5b-79b9d580a705" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fcdae46c-28b4-466d-8e21-a597255a85c7", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:00 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "23", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 13, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmptyIdInput[1].json deleted file mode 100644 index d1454946fc47..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesEmptyIdInput[1].json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:45 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "effbe610-2ec0-4910-80e2-68a791c3ddc1" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "6ddbdb3e-57bf-4dd4-83e6-04d12acaca0f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchInputShowStatistics[1].json deleted file mode 100644 index 7d86cdac73cf..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "237", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d46624fd-fdeb-4705-83ac-c3236ae775a7" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "899a2b70-40bb-4208-ab11-c49c080c56d8", - "Content-Length": "795", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "28", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 44, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 20, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchInput[1].json deleted file mode 100644 index 9793186f296a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchInput[1].json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "237", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "94710d45-d8d3-4167-a011-06e4b23ce5c8" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ebf16988-9db4-4c26-9456-d292bf8889b1", - "Content-Length": "571", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:12 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "30", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchStringInput[1].json deleted file mode 100644 index 590c9400bd2c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForBatchStringInput[1].json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "237", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4efd9b3f-8735-463f-8230-5f720cbe43ba" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5f351733-fb6e-499d-a98a-e6baf7ef764b", - "Content-Length": "571", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:43 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "29", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForEmptyText[1].json deleted file mode 100644 index 627e57fc77fe..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForEmptyText[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "152", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:01:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8d9bca45-4a4f-4607-ae23-e5d6cb06faec" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "04b3b4a7-edab-4a80-bf0a-2561e17beb9b", - "Content-Length": "264", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:01:26 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForListLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForListLanguageHint[1].json deleted file mode 100644 index 7cfd060073f9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForListLanguageHint[1].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "269", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a9bc913e-43a1-46a7-84f3-d93fde4858ba" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week.", - "language": "en" - }, - { - "id": "1", - "text": "I work at Microsoft.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "24761385-1262-4fd2-987b-ece76caef667", - "Content-Length": "571", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:13 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "28", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForListWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForListWithOptions[1].json deleted file mode 100644 index 2c1d05767664..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForListWithOptions[1].json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "237", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "78ab936c-4ea6-4909-a017-a609e7966b1e" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f34a14d7-b33b-4f22-842f-dbb5ac6a8f18", - "Content-Length": "795", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "29", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 44, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 20, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForTextInput[1].json deleted file mode 100644 index eacab13bb069..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesForTextInput[1].json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "196", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "27fd36a7-4bad-4f82-b4ef-b4de2ff1d80b" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ceee0fab-3bf4-4ce5-81db-b44180ad91ad", - "Content-Length": "440", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "20", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesKoreanNfc[1].json deleted file mode 100644 index 6c3f43c1b951..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesKoreanNfc[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "179", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:59:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c63a459b-1508-49b7-b65c-11d348118e12" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e91992f5-f5bf-4f30-93fd-779f68a73287", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:59:23 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "27", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 13, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesKoreanNfd[1].json deleted file mode 100644 index 1b515e610ace..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesKoreanNfd[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "179", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:59:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8110de76-85d8-4ad5-95b3-bed42b7dfde9" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "69253311-6c14-4f4f-aa15-29f342c99cd4", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:59:23 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 13, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesResolutions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesResolutions[1].json deleted file mode 100644 index 16fb5fdd32bc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesResolutions[1].json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "231", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:05:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7c453672-35ff-4882-a818-87f505311485" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The cat is 1 year old and weighs 10 pounds." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "modelVersion": "2022-10-01-preview", - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9d424d7b-3283-46e7-9ed7-eb8399c0c302", - "Content-Length": "531", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:05:34 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "36", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "1 year old", - "category": "Quantity", - "subcategory": "Age", - "offset": 11, - "length": 10, - "confidenceScore": 0.99, - "resolutions": [ - { - "resolutionKind": "AgeResolution", - "unit": "Year", - "value": 1.0 - } - ] - }, - { - "text": "10 pounds", - "category": "Quantity", - "subcategory": "Dimension", - "offset": 33, - "length": 9, - "confidenceScore": 0.8, - "resolutions": [ - { - "resolutionKind": "WeightResolution", - "unit": "Pound", - "value": 10.0 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01-preview" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesZalgoText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesZalgoText[1].json deleted file mode 100644 index c22da40cbe7a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeEntitiesZalgoText[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "400", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "30585420-19af-45e9-9d5f-d1d33d4c5579" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "06476a00-249a-450c-8bdf-2a340e72dc25", - "Content-Length": "233", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:55:43 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "50", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 126, - "length": 9, - "confidenceScore": 0.98 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesBatchTooManyDocuments[1].json deleted file mode 100644 index 7d25a136392f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesBatchTooManyDocuments[1].json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "909", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "22e1c53f-f69c-4580-94f8-0014bdcac8c2" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "ceb2db54-a3a1-48e0-a802-0c7cc6e00b1a", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:52:37 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 5 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDiacriticsNfc[1].json deleted file mode 100644 index 7134f35361d2..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDiacriticsNfc[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "173", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ce0c2430-b010-4eb7-8ffa-5d70b57797b5" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "615fc000-ec4d-463d-9f22-6a9040c0b73a", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:06:35 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 14, - "length": 9, - "confidenceScore": 0.24 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDiacriticsNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDiacriticsNfd[1].json deleted file mode 100644 index 0927a53c4bd6..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDiacriticsNfd[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "174", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c86110ef-91fb-4794-9ba6-66b13b57796b" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "an\u0303o I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5fc5ff1a-a574-4cd7-af61-28e3e0e2c2c4", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:06:35 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 15, - "length": 9, - "confidenceScore": 0.24 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDuplicateIdInput[1].json deleted file mode 100644 index 91a1d6105d05..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesDuplicateIdInput[1].json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "322", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "63a89880-d225-4c86-aaa8-34bcacf12883" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "28d0904d-d0dc-4fb3-9172-b9e5b7dbfd76", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:43 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier[1].json deleted file mode 100644 index 39caf271ffbd..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "274", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3e3d2faf-5955-4acd-832f-b2833aea12c2" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "932f4b32-0c50-4c54-b1f3-718bed87e995", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:54:40 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "23", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 30, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiFamily[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiFamily[1].json deleted file mode 100644 index e6bd3ad0cbdc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiFamily[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "226", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:57:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8850ac7c-91f8-4d50-a31d-1c75af815487" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f085cba2-49c8-4f30-8ddc-378be19a61bd", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:57:50 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 22, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiWithSkinToneModifier[1].json deleted file mode 100644 index b3f34f57e803..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmojiWithSkinToneModifier[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "193", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "18ff3a13-636e-4e23-b571-19a609c43969" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "302e9d1d-ef3b-4f19-837a-4428b18d10b7", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:00 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "22", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 15, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmoji[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmoji[1].json deleted file mode 100644 index da98de35beb7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmoji[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "181", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f1ff875e-9087-4c81-9669-5615a5c5a5cc" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e1b9e50e-7222-4d3f-973e-a7da566df763", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:52:06 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 13, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmptyIdInput[1].json deleted file mode 100644 index 47db25ef7bc0..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesEmptyIdInput[1].json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "191", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2889f648-33ad-4e41-a4ea-31bc20dba7c7" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "cc6f4832-befe-48fb-9dfb-d8141da3f6c8", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchInputShowStatistics[1].json deleted file mode 100644 index eb8ac15e2a94..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "233", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a63d9162-d475-4961-9318-dcd269fc1a24" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b7a21b5b-4299-4fce-aede-4a93a95f52ef", - "Content-Length": "837", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "15", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 44, - "transactionsCount": 1 - }, - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 20, - "transactionsCount": 1 - }, - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchInput[1].json deleted file mode 100644 index 589f09a04d9a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchInput[1].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "233", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a032fc73-6baf-44d2-9f88-ffb8dc0015d6" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "51356a8f-a320-49c9-b08d-42747cd9d384", - "Content-Length": "613", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchStringInput[1].json deleted file mode 100644 index fd47ca8a60e0..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForBatchStringInput[1].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "233", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c7d7ae7c-2f04-4f07-8bbf-b34d102a42cb" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "82f9a6c0-7610-4e87-9850-21475597c9ee", - "Content-Length": "613", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:49:00 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForEmptyText[1].json deleted file mode 100644 index c79d1d02d7bb..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForEmptyText[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "148", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "767be1e6-bb35-4103-9157-9e8161cade8f" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "588043cb-dd5b-41ac-b773-f59f25c68ff9", - "Content-Length": "260", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForListLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForListLanguageHint[1].json deleted file mode 100644 index b18a1cf7bbf8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForListLanguageHint[1].json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "265", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:48:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f207094a-9142-4f3f-8314-2b057d33d224" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week.", - "language": "en" - }, - { - "id": "1", - "text": "I work at Microsoft.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f44f822e-68c0-40b8-ad0f-55418efca139", - "Content-Length": "613", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:48:29 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "18", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForListStringWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForListStringWithOptions[1].json deleted file mode 100644 index d11af350dffe..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForListStringWithOptions[1].json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "233", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4d70d567-2524-4e3d-b8fb-3bf73f02e92d" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ebc387d6-aeb2-42df-99d5-1583cda3615d", - "Content-Length": "837", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 44, - "transactionsCount": 1 - }, - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 20, - "transactionsCount": 1 - }, - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForTextInput[1].json deleted file mode 100644 index 62ad39a1438c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesForTextInput[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "192", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:51:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4735b23b-b0c5-44fb-8829-111460a765c4" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "35c21cfc-8582-40d9-a7be-8733ce49c575", - "Content-Length": "352", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:51:04 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesKoreanNfc[1].json deleted file mode 100644 index 670e9fdf9320..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesKoreanNfc[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "175", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6f106a2b-7909-4d65-85ec-d163a092b955" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "54b26e17-e243-430e-98a0-6dce9ef3713f", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "15", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 13, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesKoreanNfd[1].json deleted file mode 100644 index 4f74005ad5e9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesKoreanNfd[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "175", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b089f109-576d-4e25-9f51-a9c56a9179f1" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f09897c1-533c-49ce-b419-0b25451cab59", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 13, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesZalgoText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesZalgoText[1].json deleted file mode 100644 index 3a8d0f32514b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeLinkedEntitiesZalgoText[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "396", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "59fa9421-67c1-4f8a-965e-53f9bef16b41" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "54f22c8f-acb0-4268-97f3-fb1eb52970e3", - "Content-Length": "359", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "17", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 126, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesBatchInputSingleError[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesBatchInputSingleError[1].json deleted file mode 100644 index 03ccd3625887..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesBatchInputSingleError[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "155", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:51:36 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1082c6f1-353c-4740-ba85-22c8e61fe881" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "2", - "text": " " - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3b5b0f8b-9d5f-48a7-b43d-0633d05608d7", - "Content-Length": "267", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:51:35 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "3", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "2", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesBatchTooManyDocuments[1].json deleted file mode 100644 index 605c4f66158d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesBatchTooManyDocuments[1].json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "915", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:58:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e8b2e34d-a9e1-42e7-9f94-fc7d65ec2747" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "c87a8b6d-cd82-4a5c-8001-adbb8a8aef7e", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:58:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 5 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDiacriticsNfc[1].json deleted file mode 100644 index a47d266f5dc8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDiacriticsNfc[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "175", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0a643c65-b995-49fe-af11-b95ef91643c8" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7e4de5c9-b1d4-4f81-9a6a-5e3fac0b2a6c", - "Content-Length": "286", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:32 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "33", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "a\u00F1o SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 9, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDiacriticsNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDiacriticsNfd[1].json deleted file mode 100644 index cb29dd3e7e9b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDiacriticsNfd[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "176", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:49:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ad95cddf-165e-4297-8318-0d1839ff0c7e" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "an\u0303o SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "402d756e-23e0-44d7-89ab-2b8e28687976", - "Content-Length": "288", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:49:32 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "29", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "an\u0303o SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 10, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDuplicateIdInput[1].json deleted file mode 100644 index f997153855d5..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesDuplicateIdInput[1].json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9b50090f-8f53-4eca-b165-abea278dda19" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "1a318fd8-a5a7-4f4b-a781-19db2dc503ba", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:54:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier[1].json deleted file mode 100644 index b68d4b4ecc6a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "276", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:04:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fc008751-6759-4638-8b59-5bcd13e8f646" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6d352b74-1a34-4c3f-8d83-96cb444ddf69", - "Content-Length": "324", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:04:01 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "32", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 25, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiFamily[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiFamily[1].json deleted file mode 100644 index c9002139201b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiFamily[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "228", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:58:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "75e963b9-ddba-426a-9e66-31ce42f2df53" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6d6f2b2f-47d4-4136-8b07-5bbeee79b4e0", - "Content-Length": "308", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:58:21 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "34", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 17, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiWithSkinToneModifier[1].json deleted file mode 100644 index e1613adfc606..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmojiWithSkinToneModifier[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:45 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3f6b02bb-ac70-4cd6-b816-05331a41a3f0" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d06d7cbc-9143-4361-b819-ade37d16cea0", - "Content-Length": "291", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "27", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uD83D\uDC69\uD83C\uDFFB SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 10, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmoji[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmoji[1].json deleted file mode 100644 index 9d0feae118ec..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmoji[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "183", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:05:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "31b79515-f9e5-43d5-9d19-664ef46e894a" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69 SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2e273cd6-cbdb-4be2-a010-7d3d92a9fba9", - "Content-Length": "286", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:05:34 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "22", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uD83D\uDC69 SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 8, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmptyIdInput[1].json deleted file mode 100644 index 2a52e0cfae3d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesEmptyIdInput[1].json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "197", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "727a0248-738d-4e4e-a05d-70e5c7ae006d" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "11624daf-3349-436c-8529-55aa7b6d32a9", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputForCategoriesFilter[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputForCategoriesFilter[1].json deleted file mode 100644 index 2767d454e7e3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputForCategoriesFilter[1].json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "441", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:00:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d13c3b25-dd5f-47a2-af0d-d1372f8c0ff9" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "piiCategories": [ - "USSocialSecurityNumber", - "ABARoutingNumber" - ], - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9d2b04c5-a678-425c-96af-e29e3d036469", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:00:55 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputForDomainFilter[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputForDomainFilter[1].json deleted file mode 100644 index 60164d08eb0c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputForDomainFilter[1].json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "362", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:50:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b456d750-775b-4329-8771-20e5c5142575" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "domain": "PHI", - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "36c38c9d-f8e4-4de6-b73d-9e07934e6a85", - "Content-Length": "876", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:50:33 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "31", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputShowStatistics[1].json deleted file mode 100644 index 874be878cdd1..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "347", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:50:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "76b8b423-12ae-40a6-a0ff-c548df433c46" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6cd25a85-9bc9-4130-be0f-87f8602db73b", - "Content-Length": "1191", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:50:33 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "45", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputStringForDomainFilter[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputStringForDomainFilter[1].json deleted file mode 100644 index fd25017f96ce..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInputStringForDomainFilter[1].json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "394", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e28395c7-14ce-4d87-86ca-9c414b770a18" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "domain": "PHI", - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0337ce58-86f6-4fea-8873-4b5b469488cc", - "Content-Length": "876", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "33", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInput[1].json deleted file mode 100644 index 3cc30967ad8a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForBatchInput[1].json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "347", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:58:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "24fd82a7-6bca-45b5-9743-0baa941afdf3" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c3a4d970-00f2-44d7-92c9-66607980332d", - "Content-Length": "966", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:58:21 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "36", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForDomainFilter[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForDomainFilter[1].json deleted file mode 100644 index 4b6edd62abda..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForDomainFilter[1].json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "252", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:50:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "80e4d7ee-3cf6-4ffb-ba64-314a6e1a2070" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "domain": "PHI", - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6f5c8fe6-8af0-40f8-8f22-bdcfe0948fa1", - "Content-Length": "425", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:50:33 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "42", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForEmptyText[1].json deleted file mode 100644 index 9e808b69daae..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForEmptyText[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "154", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:58:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0809cc46-7239-4a25-b2eb-9f7eb98f0b7e" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "43cb1b02-6b73-4eb5-b93c-3adb0bf0ef7c", - "Content-Length": "267", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:58:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForListLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForListLanguageHint[1].json deleted file mode 100644 index c3c846126067..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForListLanguageHint[1].json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "379", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "931fd85b-d47e-4745-9afd-c3c8afbe132d" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2d80e7de-2a81-4bce-b31c-f95ec417f422", - "Content-Length": "966", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:54:41 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForListStringWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForListStringWithOptions[1].json deleted file mode 100644 index 6869cceba018..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForListStringWithOptions[1].json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "347", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:02:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "855c7f70-cc50-4c89-a728-e13b3a66f850" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5432bd09-2a97-4364-8b55-c76ac2b310f1", - "Content-Length": "1191", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:02:28 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "38", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForTextInput[1].json deleted file mode 100644 index d359b7b7f32e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesForTextInput[1].json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "221", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6161e447-b3b2-4618-90c1-22f9ef5de68d" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "52e200d8-a3fa-4985-8c59-9949e430a529", - "Content-Length": "515", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "41", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesKoreanNfc[1].json deleted file mode 100644 index 97667951caaa..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesKoreanNfc[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "177", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:59:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ae2b6fb4-11b4-4e14-b2e4-7f078cd51f0f" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9d4686b8-c325-499b-a9ed-5df560b153e1", - "Content-Length": "288", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:59:54 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "26", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uC544\uAC00 SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 8, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesKoreanNfd[1].json deleted file mode 100644 index b170380d6065..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesKoreanNfd[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "177", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:59:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7c4c8380-98b7-4edd-aedc-45817f0c46d0" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c8ff562d-4959-4e73-91ef-7d0ec89c197c", - "Content-Length": "288", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:59:54 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "26", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uC544\uAC00 SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 8, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesZalgoText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesZalgoText[1].json deleted file mode 100644 index eb0a0f4ab3d7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntitiesZalgoText[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "398", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:55:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b402bf78-5165-4f65-891d-ce9c7bb2d456" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "46e4c0f2-7ce6-4429-bcad-0bede77bbbfb", - "Content-Length": "511", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:55:43 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "55", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 121, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntityWithCategoriesFilterFromOtherResult[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntityWithCategoriesFilterFromOtherResult[1].json deleted file mode 100644 index c1a1d78fb5fa..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizePiiEntityWithCategoriesFilterFromOtherResult[1].json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "441", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "89269c01-5898-43aa-b080-04503a6e8fc0" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "piiCategories": [ - "USSocialSecurityNumber", - "ABARoutingNumber" - ], - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f0b84497-b3d3-4ff2-bf72-32a20315e341", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "46", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - }, - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "441", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:03:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7db996c8-8dbc-4fe1-8b62-90f596d8df98" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "piiCategories": [ - "USSocialSecurityNumber", - "ABARoutingNumber" - ], - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "db80f4f3-f52e-41a7-82c0-3200508cbf12", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:02:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "38", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithAAD[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithAAD[1].json deleted file mode 100644 index 0c2afca39208..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithAAD[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 21:53:19 GMT", - "User-Agent": "azsdk-java-client_name/client_version (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "966c49de-cfe1-44ff-ac65-faf49a01a685" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4f8d4dc8-dee4-4575-ace5-2d4a2efb77f2", - "Content-Length": "206", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 21:53:19 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithDefaultPipeline[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithDefaultPipeline[1].json deleted file mode 100644 index f1a329a2fddd..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithDefaultPipeline[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ad831903-d9db-4027-9940-821a26678e27" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "baf2c5ba-5d25-4d0d-8657-52c34df9079b", - "Content-Length": "206", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:06:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithInvalidApiKeyCredential[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithInvalidApiKeyCredential[1].json deleted file mode 100644 index d9045cac5073..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithInvalidApiKeyCredential[1].json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9240f02c-70a1-46d7-a7b5-582a21edae16" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 401, - "ResponseHeaders": { - "apim-request-id": "b94fc11a-77b6-4f6b-8152-de14e281188d", - "Content-Length": "224", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT" - }, - "ResponseBody": { - "error": { - "code": "401", - "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource." - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithNewCountryHintForBatchOperation[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithNewCountryHintForBatchOperation[1].json deleted file mode 100644 index ccfdfd9acb74..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithNewCountryHintForBatchOperation[1].json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "191", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b3cedf52-269a-4a11-b5f5-145c0ba5de69" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "personal", - "countryHint": "US" - }, - { - "id": "1", - "text": "social", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6940735f-1b47-40d1-9e54-3c3a471ba92f", - "Content-Length": "311", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.96 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.89 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithNullServiceVersion[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithNullServiceVersion[1].json deleted file mode 100644 index dd5420d3caac..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithNullServiceVersion[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b1239da5-a637-444f-aa19-4eb7a15f2313" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "30521d3e-2965-4544-a42d-e57fb587bbda", - "Content-Length": "206", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithRotateToInvalidKey[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithRotateToInvalidKey[1].json deleted file mode 100644 index dfe63fd33a22..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithRotateToInvalidKey[1].json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:40 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ef6da660-6db4-4d39-8ed1-f287e637979e" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 401, - "ResponseHeaders": { - "apim-request-id": "d7052c24-093e-4359-8d69-3102ac7bdb69", - "Content-Length": "224", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT" - }, - "ResponseBody": { - "error": { - "code": "401", - "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource." - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithRotateToValidKey[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithRotateToValidKey[1].json deleted file mode 100644 index add242efb376..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithRotateToValidKey[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "04f2f12f-a4a7-4379-b8cb-5bbb9b1aefc3" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "843a505f-64a0-48e0-be8d-c5f4fe870fe8", - "Content-Length": "206", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithValidApiKeyCredential[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithValidApiKeyCredential[1].json deleted file mode 100644 index d88a590a391e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientBuilderTest.clientBuilderWithValidApiKeyCredential[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3440aa40-f513-4d28-933a-cae487d72e40" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "548b9dd7-187e-4e9a-817e-048c74039615", - "Content-Length": "206", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 19:06:39 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeAbstractiveSummaryActionWithDefaultParameterValues[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeAbstractiveSummaryActionWithDefaultParameterValues[1].json deleted file mode 100644 index f3f5c4cc705b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeAbstractiveSummaryActionWithDefaultParameterValues[1].json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1819", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:53:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "73782d3b-085e-4f78-b99e-e89bfaa7c9d9" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "parameters": { - "stringIndexType": "Utf16CodeUnit", - "loggingOptOut": true - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "310815c5-8cbd-4000-88f5-e240c9cda0a9", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:53:26 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/81e2114c-1d9b-4c7b-a0fd-cf3efb478dd7?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "312", - "x-ms-region": "East US" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/81e2114c-1d9b-4c7b-a0fd-cf3efb478dd7?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:53:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5559dca2-55e4-4e8d-b439-949efd762202" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c2bc2619-9992-49dd-9ad4-71fb6de631b0", - "Content-Length": "280", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:53:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "81e2114c-1d9b-4c7b-a0fd-cf3efb478dd7", - "lastUpdatedDateTime": "2023-04-05T19:53:27Z", - "createdDateTime": "2023-04-05T19:53:27Z", - "expirationDateTime": "2023-04-06T19:53:27Z", - "status": "running", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/81e2114c-1d9b-4c7b-a0fd-cf3efb478dd7?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:53:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "eaf199a5-5b12-4258-a117-0cb99595af42" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7f850115-ca4f-4cc8-9ea2-cd0697466aeb", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:53:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "41", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "81e2114c-1d9b-4c7b-a0fd-cf3efb478dd7", - "lastUpdatedDateTime": "2023-04-05T19:53:29Z", - "createdDateTime": "2023-04-05T19:53:27Z", - "expirationDateTime": "2023-04-06T19:53:27Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:53:29.8613489Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/81e2114c-1d9b-4c7b-a0fd-cf3efb478dd7?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:53:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5d312cf8-602d-4e24-aeec-2ec0510fccb9" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "15003ff8-00bb-4e6f-a49d-113cc44d66a1", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:53:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "81e2114c-1d9b-4c7b-a0fd-cf3efb478dd7", - "lastUpdatedDateTime": "2023-04-05T19:53:29Z", - "createdDateTime": "2023-04-05T19:53:27Z", - "expirationDateTime": "2023-04-06T19:53:27Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:53:29.8613489Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsAutoDetectedLanguage[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsAutoDetectedLanguage[1].json deleted file mode 100644 index ed3297b4b9d9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsAutoDetectedLanguage[1].json +++ /dev/null @@ -1,996 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "708", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ade97fb9-d01a-4f73-a06e-123764653b50" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft was founded by Bill Gates and Paul Allen", - "language": "auto" - }, - { - "id": "1", - "text": "Microsoft fue fundado por Bill Gates y Paul Allen", - "language": "auto" - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "KeyPhraseExtraction", - "parameters": { - "loggingOptOut": false - } - }, - { - "kind": "EntityLinking", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "SentimentAnalysis", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "f8d83747-bf6d-49d5-8302-49e0fb9cac58", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/624c2ba7-a622-4669-b25f-7c04918cf8ae?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "273", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/624c2ba7-a622-4669-b25f-7c04918cf8ae?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:36:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b6cd61a2-4d6d-4606-a9b9-a7bca5fbb983" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c7421e2f-b860-4121-96a0-197a73033457", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "624c2ba7-a622-4669-b25f-7c04918cf8ae", - "lastUpdatedDateTime": "2023-04-05T18:36:35Z", - "createdDateTime": "2023-04-05T18:36:34Z", - "expirationDateTime": "2023-04-06T18:36:34Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 5, - "total": 5, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/624c2ba7-a622-4669-b25f-7c04918cf8ae?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fae7b84a-b91e-4ebc-8e65-d3f029c3997a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d6e39865-e15f-484e-af23-f82891218900", - "Content-Length": "5798", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "345", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "624c2ba7-a622-4669-b25f-7c04918cf8ae", - "lastUpdatedDateTime": "2023-04-05T18:36:43Z", - "createdDateTime": "2023-04-05T18:36:34Z", - "expirationDateTime": "2023-04-06T18:36:34Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:38.3796481Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 1.0 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 1.0 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 1.0 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 26, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 39, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:43.5982237Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* was founded by ********** and **********", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.96 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 0.99 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "redactedText": "********* fue fundado por ********** y **********", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.96 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 26, - "length": 10, - "confidenceScore": 0.99 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 39, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:37.2656334Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:39.8043211Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.49 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "0d47c987-0042-5576-15e8-97af601614fa", - "name": "Bill Gates", - "matches": [ - { - "text": "Bill Gates", - "offset": 25, - "length": 10, - "confidenceScore": 0.52 - } - ], - "language": "en", - "id": "Bill Gates", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "df2c4376-9923-6a54-893f-2ee5a5badbc7", - "name": "Paul Allen", - "matches": [ - { - "text": "Paul Allen", - "offset": 40, - "length": 10, - "confidenceScore": 0.54 - } - ], - "language": "en", - "id": "Paul Allen", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.38 - } - ], - "language": "es", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "0d47c987-0042-5576-15e8-97af601614fa", - "name": "Bill Gates", - "matches": [ - { - "text": "Bill Gates", - "offset": 26, - "length": 10, - "confidenceScore": 0.37 - } - ], - "language": "es", - "id": "Bill Gates", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "df2c4376-9923-6a54-893f-2ee5a5badbc7", - "name": "Paul Allen", - "matches": [ - { - "text": "Paul Allen", - "offset": 39, - "length": 10, - "confidenceScore": 0.9 - } - ], - "language": "es", - "id": "Paul Allen", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:37.4880508Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.99, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.99, - "negative": 0.0 - }, - "offset": 0, - "length": 50, - "text": "Microsoft was founded by Bill Gates and Paul Allen" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.02, - "neutral": 0.98, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.02, - "neutral": 0.98, - "negative": 0.0 - }, - "offset": 0, - "length": 49, - "text": "Microsoft fue fundado por Bill Gates y Paul Allen" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/624c2ba7-a622-4669-b25f-7c04918cf8ae?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5a234a1b-7f16-4517-8736-9ecc7eb39b16" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "67daa699-d632-4591-9198-dd6f85b58c6b", - "Content-Length": "5798", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "283", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "624c2ba7-a622-4669-b25f-7c04918cf8ae", - "lastUpdatedDateTime": "2023-04-05T18:36:43Z", - "createdDateTime": "2023-04-05T18:36:34Z", - "expirationDateTime": "2023-04-06T18:36:34Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:38.3796481Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 1.0 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 1.0 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 1.0 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 26, - "length": 10, - "confidenceScore": 1.0 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 39, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:43.5982237Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* was founded by ********** and **********", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.96 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 25, - "length": 10, - "confidenceScore": 0.99 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 40, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "redactedText": "********* fue fundado por ********** y **********", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.96 - }, - { - "text": "Bill Gates", - "category": "Person", - "offset": 26, - "length": 10, - "confidenceScore": 0.99 - }, - { - "text": "Paul Allen", - "category": "Person", - "offset": 39, - "length": 10, - "confidenceScore": 0.99 - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:37.2656334Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:39.8043211Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.49 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "0d47c987-0042-5576-15e8-97af601614fa", - "name": "Bill Gates", - "matches": [ - { - "text": "Bill Gates", - "offset": 25, - "length": 10, - "confidenceScore": 0.52 - } - ], - "language": "en", - "id": "Bill Gates", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "df2c4376-9923-6a54-893f-2ee5a5badbc7", - "name": "Paul Allen", - "matches": [ - { - "text": "Paul Allen", - "offset": 40, - "length": 10, - "confidenceScore": 0.54 - } - ], - "language": "en", - "id": "Paul Allen", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.38 - } - ], - "language": "es", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "0d47c987-0042-5576-15e8-97af601614fa", - "name": "Bill Gates", - "matches": [ - { - "text": "Bill Gates", - "offset": 26, - "length": 10, - "confidenceScore": 0.37 - } - ], - "language": "es", - "id": "Bill Gates", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "df2c4376-9923-6a54-893f-2ee5a5badbc7", - "name": "Paul Allen", - "matches": [ - { - "text": "Paul Allen", - "offset": 39, - "length": 10, - "confidenceScore": 0.9 - } - ], - "language": "es", - "id": "Paul Allen", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:37.4880508Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.99, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.99, - "negative": 0.0 - }, - "offset": 0, - "length": 50, - "text": "Microsoft was founded by Bill Gates and Paul Allen" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.97 - }, - "isLanguageDefaulted": false - }, - { - "id": "1", - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.02, - "neutral": 0.98, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "neutral", - "confidenceScores": { - "positive": 0.02, - "neutral": 0.98, - "negative": 0.0 - }, - "offset": 0, - "length": 49, - "text": "Microsoft fue fundado por Bill Gates y Paul Allen" - } - ], - "warnings": [], - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 0.99 - }, - "isLanguageDefaulted": false - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsEmptyInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsEmptyInput[1].json deleted file mode 100644 index f721723386d8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsEmptyInput[1].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsStringInput[1].json deleted file mode 100644 index 1dd0c73ae547..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsStringInput[1].json +++ /dev/null @@ -1,806 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "706", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:34:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7af5bfe5-d4c0-40b0-a65b-839b12b8cf9f" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "KeyPhraseExtraction", - "parameters": { - "loggingOptOut": false - } - }, - { - "kind": "EntityLinking", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "SentimentAnalysis", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "1fb4196b-4806-4a72-81e0-c0eb3bd1668a", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:34:30 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/8b312efe-5872-4cf9-af96-831d415c6724?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "322", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/8b312efe-5872-4cf9-af96-831d415c6724?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:34:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e841817a-550e-464b-917d-9857501248d9" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d19376df-fd54-4f22-8fa5-de3156095207", - "Content-Length": "305", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:34:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "8b312efe-5872-4cf9-af96-831d415c6724", - "lastUpdatedDateTime": "2023-04-05T18:34:31Z", - "createdDateTime": "2023-04-05T18:34:30Z", - "expirationDateTime": "2023-04-06T18:34:30Z", - "status": "notStarted", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 5, - "total": 5, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/8b312efe-5872-4cf9-af96-831d415c6724?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:35:01 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f38c871e-ef25-430f-958e-5413e54b7161" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "da9ba889-d8e2-4be8-a706-74ec416b5f17", - "Content-Length": "4319", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:35:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "328", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "8b312efe-5872-4cf9-af96-831d415c6724", - "lastUpdatedDateTime": "2023-04-05T18:34:35Z", - "createdDateTime": "2023-04-05T18:34:30Z", - "expirationDateTime": "2023-04-06T18:34:30Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:33.9510407Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:34.033405Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:33.0038702Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:35.2500849Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.28 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "e8c1a257-7315-a482-c81d-202a0260e4ed", - "name": "Application programming interface", - "matches": [ - { - "text": "API\u0027s", - "offset": 61, - "length": 5, - "confidenceScore": 0.85 - } - ], - "language": "en", - "id": "Application programming interface", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:33.1360834Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "offset": 0, - "length": 67, - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/8b312efe-5872-4cf9-af96-831d415c6724?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:35:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2f7006c5-17e8-43ba-8c66-74f6215f2161" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a609acd4-5a02-494f-984d-d3a19393c5c3", - "Content-Length": "4319", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:35:01 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "292", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "8b312efe-5872-4cf9-af96-831d415c6724", - "lastUpdatedDateTime": "2023-04-05T18:34:35Z", - "createdDateTime": "2023-04-05T18:34:30Z", - "expirationDateTime": "2023-04-06T18:34:30Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:33.9510407Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:34.033405Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:33.0038702Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:35.2500849Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.28 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "e8c1a257-7315-a482-c81d-202a0260e4ed", - "name": "Application programming interface", - "matches": [ - { - "text": "API\u0027s", - "offset": 61, - "length": 5, - "confidenceScore": 0.85 - } - ], - "language": "en", - "id": "Application programming interface", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:33.1360834Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "offset": 0, - "length": 67, - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsWithActionNames[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsWithActionNames[1].json deleted file mode 100644 index f26d64f1dfce..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsWithActionNames[1].json +++ /dev/null @@ -1,571 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "882", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7ca26e47-be3a-4373-a763-58bdd524b24a" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "PiiEntityRecognition", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "KeyPhraseExtraction", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false - } - }, - { - "kind": "EntityLinking", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "SentimentAnalysis", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "ExtractiveSummarization", - "taskName": "customActionName", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "f6e5ba1e-3d54-4466-8400-3237aa27b0a0", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/35a30251-aa8b-448a-9ec4-aaf70ebe0633?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "269", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/35a30251-aa8b-448a-9ec4-aaf70ebe0633?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:40:45 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3563d690-2cd9-4bdd-abd7-68736bfd547d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0e20768c-736c-4ba0-96ed-aa507378dcda", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "35a30251-aa8b-448a-9ec4-aaf70ebe0633", - "lastUpdatedDateTime": "2023-04-05T18:40:44Z", - "createdDateTime": "2023-04-05T18:40:44Z", - "expirationDateTime": "2023-04-06T18:40:44Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 6, - "total": 6, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/35a30251-aa8b-448a-9ec4-aaf70ebe0633?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "be77df9e-12fc-4192-9b3b-d09f490339e9" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e3f33f58-e139-4de2-a08a-2733671f4f9b", - "Content-Length": "2846", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:41:14 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "239", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "35a30251-aa8b-448a-9ec4-aaf70ebe0633", - "lastUpdatedDateTime": "2023-04-05T18:40:46Z", - "createdDateTime": "2023-04-05T18:40:44Z", - "expirationDateTime": "2023-04-06T18:40:44Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 6, - "failed": 0, - "inProgress": 0, - "total": 6, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.4822757Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.5816906Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.4369645Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.504975Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.7459079Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - }, - { - "kind": "ExtractiveSummarizationLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:45.2064941Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "I had a wonderful trip to Seattle last week.", - "rankScore": 1.0, - "offset": 0, - "length": 44 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/35a30251-aa8b-448a-9ec4-aaf70ebe0633?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a75c7460-0017-461e-a290-e32ee9988301" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fa46069b-cdf6-4c2e-85e9-911b59511eee", - "Content-Length": "2846", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:41:14 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "211", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "35a30251-aa8b-448a-9ec4-aaf70ebe0633", - "lastUpdatedDateTime": "2023-04-05T18:40:46Z", - "createdDateTime": "2023-04-05T18:40:44Z", - "expirationDateTime": "2023-04-06T18:40:44Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 6, - "failed": 0, - "inProgress": 0, - "total": 6, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.4822757Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.5816906Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.4369645Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.504975Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:46.7459079Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - }, - { - "kind": "ExtractiveSummarizationLROResults", - "taskName": "customActionName", - "lastUpdateDateTime": "2023-04-05T18:40:45.2064941Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "I had a wonderful trip to Seattle last week.", - "rankScore": 1.0, - "offset": 0, - "length": 44 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsWithOptions[1].json deleted file mode 100644 index afab8af2ce5c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeActionsWithOptions[1].json +++ /dev/null @@ -1,806 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "706", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "190bc651-f433-43e9-a0b9-790ad49306b7" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "KeyPhraseExtraction", - "parameters": { - "loggingOptOut": false - } - }, - { - "kind": "EntityLinking", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - { - "kind": "SentimentAnalysis", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "60eba833-032e-4ab5-8a41-a9ad7b3364c9", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:37:39 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/cdaefce4-832b-4260-856e-fa0e530e7c81?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "287", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/cdaefce4-832b-4260-856e-fa0e530e7c81?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:37:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "97ba5ad5-3b03-41b7-810a-ab05b8d5e3ef" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0c4277de-d018-40cd-b74c-65e0f792060e", - "Content-Length": "302", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:39 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "cdaefce4-832b-4260-856e-fa0e530e7c81", - "lastUpdatedDateTime": "2023-04-05T18:37:39Z", - "createdDateTime": "2023-04-05T18:37:38Z", - "expirationDateTime": "2023-04-06T18:37:38Z", - "status": "running", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 5, - "total": 5, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/cdaefce4-832b-4260-856e-fa0e530e7c81?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "29745991-6d4a-4092-839f-6aa884de8755" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32a72ba4-f8e0-4a3a-882d-7ffcee80d81e", - "Content-Length": "4320", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "331", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "cdaefce4-832b-4260-856e-fa0e530e7c81", - "lastUpdatedDateTime": "2023-04-05T18:37:41Z", - "createdDateTime": "2023-04-05T18:37:38Z", - "expirationDateTime": "2023-04-06T18:37:38Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:40.8900916Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:41.0595719Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:41.0136216Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:41.2410695Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.28 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "e8c1a257-7315-a482-c81d-202a0260e4ed", - "name": "Application programming interface", - "matches": [ - { - "text": "API\u0027s", - "offset": 61, - "length": 5, - "confidenceScore": 0.85 - } - ], - "language": "en", - "id": "Application programming interface", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:40.8505948Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "offset": 0, - "length": 67, - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/cdaefce4-832b-4260-856e-fa0e530e7c81?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b7ca491d-5956-4f4e-85a5-233ea23f2bb9" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0f40c678-5e41-4318-a682-e885a0bc8f03", - "Content-Length": "4320", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "223", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "cdaefce4-832b-4260-856e-fa0e530e7c81", - "lastUpdatedDateTime": "2023-04-05T18:37:41Z", - "createdDateTime": "2023-04-05T18:37:38Z", - "expirationDateTime": "2023-04-06T18:37:38Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 5, - "failed": 0, - "inProgress": 0, - "total": 5, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:40.8900916Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:41.0595719Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "I had a wonderful trip to Seattle *********.", - "id": "0", - "entities": [ - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - }, - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:41.0136216Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - }, - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:41.2410695Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 0, - "length": 9, - "confidenceScore": 0.28 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - }, - { - "bingId": "e8c1a257-7315-a482-c81d-202a0260e4ed", - "name": "Application programming interface", - "matches": [ - { - "text": "API\u0027s", - "offset": 61, - "length": 5, - "confidenceScore": 0.85 - } - ], - "language": "en", - "id": "Application programming interface", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - }, - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:40.8505948Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 44, - "text": "I had a wonderful trip to Seattle last week." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.97, - "neutral": 0.03, - "negative": 0.0 - }, - "offset": 0, - "length": 67, - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeEntitiesRecognitionActionResolution[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeEntitiesRecognitionActionResolution[1].json deleted file mode 100644 index efd4a49b5d38..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeEntitiesRecognitionActionResolution[1].json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "243", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:47:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "50324dd5-2b6f-4d7c-bb0e-9f3f6ec9ed2a" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The cat is 1 year old and weighs 10 pounds." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "modelVersion": "2022-10-01-preview", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "cfd10f06-cc54-468b-bd5a-cfb95f18d2c3", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:47:25 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/92afcf42-72d5-4eca-beba-5d8905cfffa1?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "156", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/92afcf42-72d5-4eca-beba-5d8905cfffa1?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:47:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8693dccc-57d5-45fe-9781-cdefa92d6ba8" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0a096c84-522e-4f17-ac68-b3e59b1bc646", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:47:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "92afcf42-72d5-4eca-beba-5d8905cfffa1", - "lastUpdatedDateTime": "2023-04-05T18:47:26Z", - "createdDateTime": "2023-04-05T18:47:26Z", - "expirationDateTime": "2023-04-06T18:47:26Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/92afcf42-72d5-4eca-beba-5d8905cfffa1?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:47:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4679f5a4-988d-4755-9117-79441a2d72ac" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "00bac0a6-cb81-4f21-8747-19891a408e4e", - "Content-Length": "889", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:47:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "173", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "92afcf42-72d5-4eca-beba-5d8905cfffa1", - "lastUpdatedDateTime": "2023-04-05T18:47:27Z", - "createdDateTime": "2023-04-05T18:47:26Z", - "expirationDateTime": "2023-04-06T18:47:26Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:47:27.9271384Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "1 year old", - "category": "Quantity", - "subcategory": "Age", - "offset": 11, - "length": 10, - "confidenceScore": 0.99, - "resolutions": [ - { - "resolutionKind": "AgeResolution", - "unit": "Year", - "value": 1.0 - } - ] - }, - { - "text": "10 pounds", - "category": "Quantity", - "subcategory": "Dimension", - "offset": 33, - "length": 9, - "confidenceScore": 0.8, - "resolutions": [ - { - "resolutionKind": "WeightResolution", - "unit": "Pound", - "value": 10.0 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/92afcf42-72d5-4eca-beba-5d8905cfffa1?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:47:57 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a6c96176-f0bf-47ce-962c-17faf0e7003b" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bd4b2ecb-bde7-490e-a22b-103ea3690668", - "Content-Length": "889", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:47:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "184", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "92afcf42-72d5-4eca-beba-5d8905cfffa1", - "lastUpdatedDateTime": "2023-04-05T18:47:27Z", - "createdDateTime": "2023-04-05T18:47:26Z", - "expirationDateTime": "2023-04-06T18:47:26Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:47:27.9271384Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "1 year old", - "category": "Quantity", - "subcategory": "Age", - "offset": 11, - "length": 10, - "confidenceScore": 0.99, - "resolutions": [ - { - "resolutionKind": "AgeResolution", - "unit": "Year", - "value": 1.0 - } - ] - }, - { - "text": "10 pounds", - "category": "Quantity", - "subcategory": "Dimension", - "offset": 33, - "length": 9, - "confidenceScore": 0.8, - "resolutions": [ - { - "resolutionKind": "WeightResolution", - "unit": "Pound", - "value": 10.0 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeEntitiesRecognitionAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeEntitiesRecognitionAction[1].json deleted file mode 100644 index f5c4ef2aec12..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeEntitiesRecognitionAction[1].json +++ /dev/null @@ -1,358 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "318", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f2932b8f-503f-4fc9-8cc0-4bfa44e55457" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "fdaaf893-beb4-49d2-90df-dd43b72705ac", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/7b0c9f7d-86c4-45e8-b191-575dddb12a3c?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "343", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/7b0c9f7d-86c4-45e8-b191-575dddb12a3c?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:30:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "886b6524-06aa-4834-9144-f6c6d90a69f0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7cdf39fb-2c9d-46db-9009-2c285baba842", - "Content-Length": "305", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "7b0c9f7d-86c4-45e8-b191-575dddb12a3c", - "lastUpdatedDateTime": "2023-04-05T18:30:54Z", - "createdDateTime": "2023-04-05T18:30:53Z", - "expirationDateTime": "2023-04-06T18:30:53Z", - "status": "notStarted", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/7b0c9f7d-86c4-45e8-b191-575dddb12a3c?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b751f7e0-67d2-4f48-b9a9-e52e2c3cd096" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e8dd03af-d3ea-436b-acf3-831050f2172b", - "Content-Length": "1437", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "63", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "7b0c9f7d-86c4-45e8-b191-575dddb12a3c", - "lastUpdatedDateTime": "2023-04-05T18:30:56Z", - "createdDateTime": "2023-04-05T18:30:53Z", - "expirationDateTime": "2023-04-06T18:30:53Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:30:56.4699945Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/7b0c9f7d-86c4-45e8-b191-575dddb12a3c?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "214f01ab-a2a2-4528-bf71-5d023e470958" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6465b04f-2179-45d1-860b-8ea7d8d5645d", - "Content-Length": "1437", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "65", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "7b0c9f7d-86c4-45e8-b191-575dddb12a3c", - "lastUpdatedDateTime": "2023-04-05T18:30:56Z", - "createdDateTime": "2023-04-05T18:30:53Z", - "expirationDateTime": "2023-04-06T18:30:53Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:30:56.4699945Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.98 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.96 - }, - { - "text": "859", - "category": "Quantity", - "subcategory": "Number", - "offset": 28, - "length": 3, - "confidenceScore": 0.8 - }, - { - "text": "98", - "category": "Quantity", - "subcategory": "Number", - "offset": 32, - "length": 2, - "confidenceScore": 0.8 - }, - { - "text": "0987", - "category": "Quantity", - "subcategory": "Number", - "offset": 35, - "length": 4, - "confidenceScore": 0.8 - }, - { - "text": "API\u0027s", - "category": "Skill", - "offset": 61, - "length": 5, - "confidenceScore": 0.71 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionMaxSentenceCountInvalidRangeException[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionMaxSentenceCountInvalidRangeException[1].json deleted file mode 100644 index b98b417923e9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionMaxSentenceCountInvalidRangeException[1].json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1837", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "43371cb6-f0b9-44f4-9ae3-0af27831e2bc" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 0, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "40fe9199-42db-4192-bd8b-1eba9a7d3d73", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation error: Job task parameter value \u00270\u0027 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max)." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation errors: [\u0027Invalid parameter in request\u0027]" - } - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1838", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "77110e37-11fd-46f9-9ea9-07e3df60507e" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 21, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "fce400e8-2555-4605-b241-67064d67b2b5", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation error: Job task parameter value \u002721\u0027 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max)." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation errors: [\u0027Invalid parameter in request\u0027]" - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionSortedByOffset[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionSortedByOffset[1].json deleted file mode 100644 index a25707804eee..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionSortedByOffset[1].json +++ /dev/null @@ -1,253 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1855", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:38:42 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "08de7831-6c13-4330-a25a-db436f1c316b" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 4, - "sortBy": "Offset", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "c7677a44-4774-402a-ac5c-bee716cae1be", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:38:41 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/042c3a40-1b55-4cb3-a665-6db1c8ac2edb?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "242", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/042c3a40-1b55-4cb3-a665-6db1c8ac2edb?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:38:42 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "68bfcd0a-4297-45f2-901d-24c9b8670d1c" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "fd7f476d-7258-4c77-b9fc-457fdcff59d2", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:41 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "042c3a40-1b55-4cb3-a665-6db1c8ac2edb", - "lastUpdatedDateTime": "2023-04-05T18:38:42Z", - "createdDateTime": "2023-04-05T18:38:41Z", - "expirationDateTime": "2023-04-06T18:38:41Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/042c3a40-1b55-4cb3-a665-6db1c8ac2edb?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:39:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2073acd1-85fa-4bcf-adb1-75e611344293" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b7e824cc-8139-41af-b187-f661685f4192", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:39:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "54", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "042c3a40-1b55-4cb3-a665-6db1c8ac2edb", - "lastUpdatedDateTime": "2023-04-05T18:38:42Z", - "createdDateTime": "2023-04-05T18:38:41Z", - "expirationDateTime": "2023-04-06T18:38:41Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:38:42.7132225Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/042c3a40-1b55-4cb3-a665-6db1c8ac2edb?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:39:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2eb9b6dc-6ad7-4f3e-9530-81b109e251e3" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c4d6d587-9a01-4a4f-8d16-4738b1891dd7", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:39:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "44", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "042c3a40-1b55-4cb3-a665-6db1c8ac2edb", - "lastUpdatedDateTime": "2023-04-05T18:38:42Z", - "createdDateTime": "2023-04-05T18:38:41Z", - "expirationDateTime": "2023-04-06T18:38:41Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:38:42.7132225Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionSortedByRankScore[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionSortedByRankScore[1].json deleted file mode 100644 index f2f8149e7dd9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionSortedByRankScore[1].json +++ /dev/null @@ -1,253 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1853", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:35:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "bcb7ec0b-407a-4cd2-abd9-b18fc664cdf0" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 4, - "sortBy": "Rank", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "22070352-77f5-4198-8b6b-4e28b0f42ed6", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:35:32 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/fa0f94c1-a941-4f1f-97d3-6e6f83dc3f33?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "198", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/fa0f94c1-a941-4f1f-97d3-6e6f83dc3f33?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:35:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "551271dc-506c-4209-8c9b-3cde5c82fbc4" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0d2c13c8-3238-4270-b979-d0a961856e6b", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:35:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "fa0f94c1-a941-4f1f-97d3-6e6f83dc3f33", - "lastUpdatedDateTime": "2023-04-05T18:35:33Z", - "createdDateTime": "2023-04-05T18:35:32Z", - "expirationDateTime": "2023-04-06T18:35:32Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/fa0f94c1-a941-4f1f-97d3-6e6f83dc3f33?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:36:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0ee0c125-0b03-4a30-a4b2-25a0ed752a4a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "dacf4809-3b99-4b3c-b12c-e7132605be08", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "184", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "fa0f94c1-a941-4f1f-97d3-6e6f83dc3f33", - "lastUpdatedDateTime": "2023-04-05T18:35:33Z", - "createdDateTime": "2023-04-05T18:35:32Z", - "expirationDateTime": "2023-04-06T18:35:32Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:35:33.5352297Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/fa0f94c1-a941-4f1f-97d3-6e6f83dc3f33?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:36:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "24c50726-c3f1-4862-9ffd-0dde025e1049" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cee2207e-8874-4d68-b225-03526eec7e4d", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "45", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "fa0f94c1-a941-4f1f-97d3-6e6f83dc3f33", - "lastUpdatedDateTime": "2023-04-05T18:35:33Z", - "createdDateTime": "2023-04-05T18:35:32Z", - "expirationDateTime": "2023-04-06T18:35:32Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:35:33.5352297Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithDefaultParameterValues[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithDefaultParameterValues[1].json deleted file mode 100644 index a78afa3f76e8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithDefaultParameterValues[1].json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1819", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:41:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4a9733dd-2f21-4326-83ca-f05ea8002273" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "f713cfb1-9f9c-420e-8856-ebe14f4d340e", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/4bd244c7-de8f-4291-a35c-19b82ac963ef?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "156", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/4bd244c7-de8f-4291-a35c-19b82ac963ef?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:41:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b154b34b-8fa3-40ae-9f54-b8bda23625d9" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ec1cad96-6265-4d30-9417-a3723306d190", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "4bd244c7-de8f-4291-a35c-19b82ac963ef", - "lastUpdatedDateTime": "2023-04-05T18:41:15Z", - "createdDateTime": "2023-04-05T18:41:15Z", - "expirationDateTime": "2023-04-06T18:41:15Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/4bd244c7-de8f-4291-a35c-19b82ac963ef?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:41:46 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "651a72a1-47b8-46bd-bbc7-f7a6cec43f27" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7032b65d-5f22-4c70-8635-ec929f2caf96", - "Content-Length": "1214", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:41:45 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "168", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "4bd244c7-de8f-4291-a35c-19b82ac963ef", - "lastUpdatedDateTime": "2023-04-05T18:41:16Z", - "createdDateTime": "2023-04-05T18:41:15Z", - "expirationDateTime": "2023-04-06T18:41:15Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:41:16.4570955Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/4bd244c7-de8f-4291-a35c-19b82ac963ef?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:41:46 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a14aa52f-588b-4aae-871a-cd08c64a7538" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e13559d9-4449-472e-9143-0e03008b5515", - "Content-Length": "1214", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:41:45 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "4bd244c7-de8f-4291-a35c-19b82ac963ef", - "lastUpdatedDateTime": "2023-04-05T18:41:16Z", - "createdDateTime": "2023-04-05T18:41:15Z", - "expirationDateTime": "2023-04-06T18:41:15Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:41:16.4570955Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithNonDefaultSentenceCount[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithNonDefaultSentenceCount[1].json deleted file mode 100644 index eaaacb9c2513..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithNonDefaultSentenceCount[1].json +++ /dev/null @@ -1,264 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1837", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:32:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2d0ac821-6017-4c02-aec2-5b775a36bdc9" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 5, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "85a11117-539f-4f8d-aeb1-a790b8e689b5", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:32:27 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c11ac820-25b0-40ee-82c2-5241d394c1f4?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "263", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c11ac820-25b0-40ee-82c2-5241d394c1f4?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:32:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "197449bb-eb5f-4be1-8886-cceed6c993a6" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f49002e1-df69-471c-b381-3af369020e58", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:32:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c11ac820-25b0-40ee-82c2-5241d394c1f4", - "lastUpdatedDateTime": "2023-04-05T18:32:27Z", - "createdDateTime": "2023-04-05T18:32:26Z", - "expirationDateTime": "2023-04-06T18:32:26Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c11ac820-25b0-40ee-82c2-5241d394c1f4?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:32:57 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9cfce72e-b07d-4c24-a712-63987dbff682" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "53a87da7-4b45-427a-97b4-c687cdabd4fa", - "Content-Length": "1666", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:32:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "74", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c11ac820-25b0-40ee-82c2-5241d394c1f4", - "lastUpdatedDateTime": "2023-04-05T18:32:27Z", - "createdDateTime": "2023-04-05T18:32:26Z", - "expirationDateTime": "2023-04-06T18:32:26Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:32:27.4554013Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c11ac820-25b0-40ee-82c2-5241d394c1f4?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:32:57 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "146aa192-8621-418f-bf89-9a80af6bec00" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "de811ad7-8993-4c3a-9fe4-287d9fc05842", - "Content-Length": "1666", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:32:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "169", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c11ac820-25b0-40ee-82c2-5241d394c1f4", - "lastUpdatedDateTime": "2023-04-05T18:32:27Z", - "createdDateTime": "2023-04-05T18:32:26Z", - "expirationDateTime": "2023-04-06T18:32:26Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:32:27.4554013Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithSentenceCountLessThanMaxCount[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithSentenceCountLessThanMaxCount[1].json deleted file mode 100644 index 703173e288f9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeExtractSummaryActionWithSentenceCountLessThanMaxCount[1].json +++ /dev/null @@ -1,312 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1838", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:42:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e3197459-c8df-492a-8f0f-1a526a647f51" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 20, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "e2e58f85-6c9b-449d-9dc3-8c2ae3f0fde7", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:42:16 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/bedf2ffd-1893-44e6-ab76-e34be0ef6031?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "163", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/bedf2ffd-1893-44e6-ab76-e34be0ef6031?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:42:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "481cfde0-5bdf-478d-ad4e-4d84d5300d27" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "49bb6438-e73b-4e79-bcdd-bd3cb3277fd3", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:42:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "bedf2ffd-1893-44e6-ab76-e34be0ef6031", - "lastUpdatedDateTime": "2023-04-05T18:42:17Z", - "createdDateTime": "2023-04-05T18:42:17Z", - "expirationDateTime": "2023-04-06T18:42:17Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/bedf2ffd-1893-44e6-ab76-e34be0ef6031?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:42:47 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a7f4161a-e3ce-45da-8f6a-247f88ddab98" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "17256bb6-75e3-4ac2-874a-fe8ea237d7e1", - "Content-Length": "2629", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:42:46 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "78", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "bedf2ffd-1893-44e6-ab76-e34be0ef6031", - "lastUpdatedDateTime": "2023-04-05T18:42:17Z", - "createdDateTime": "2023-04-05T18:42:17Z", - "expirationDateTime": "2023-04-06T18:42:17Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:42:17.7897673Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality.", - "rankScore": 0.3, - "offset": 161, - "length": 162 - }, - { - "text": "In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z).", - "rankScore": 0.12, - "offset": 324, - "length": 192 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand.", - "rankScore": 0.0, - "offset": 1237, - "length": 241 - }, - { - "text": "I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "rankScore": 0.19, - "offset": 1479, - "length": 148 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/bedf2ffd-1893-44e6-ab76-e34be0ef6031?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:42:47 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "accbb7e2-05c9-4cd7-83bf-0a1b063a9a15" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "39a5797d-05dc-4aa6-bff0-3b9e5f610959", - "Content-Length": "2629", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:42:47 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "222", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "bedf2ffd-1893-44e6-ab76-e34be0ef6031", - "lastUpdatedDateTime": "2023-04-05T18:42:17Z", - "createdDateTime": "2023-04-05T18:42:17Z", - "expirationDateTime": "2023-04-06T18:42:17Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:42:17.7897673Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality.", - "rankScore": 0.3, - "offset": 161, - "length": 162 - }, - { - "text": "In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z).", - "rankScore": 0.12, - "offset": 324, - "length": 192 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand.", - "rankScore": 0.0, - "offset": 1237, - "length": 241 - }, - { - "text": "I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "rankScore": 0.19, - "offset": 1479, - "length": 148 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareAction[1].json deleted file mode 100644 index 5b81d11633fc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareAction[1].json +++ /dev/null @@ -1,3929 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "492", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "86e05ee3-c343-4e9a-a796-bb99e0118c6b" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months.", - "language": "en" - }, - { - "id": "1", - "text": "The patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "fhirVersion": "4.0.1", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "c172b080-e947-4f5a-a3e5-cf44d899b7f8", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c85a5976-9e68-44ad-ad88-1b2fd81954d2?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "181", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c85a5976-9e68-44ad-ad88-1b2fd81954d2?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "84fcb722-4115-451d-997a-679162e06d86" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "40db2797-a351-415c-a920-6fa9f328daf3", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c85a5976-9e68-44ad-ad88-1b2fd81954d2", - "lastUpdatedDateTime": "2023-04-05T18:45:54Z", - "createdDateTime": "2023-04-05T18:45:54Z", - "expirationDateTime": "2023-04-06T18:45:54Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c85a5976-9e68-44ad-ad88-1b2fd81954d2?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:46:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "eea92093-1476-4149-9d2e-ffde8d3faced" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ad3eb4bc-1c23-45d7-af6b-839d35468bac", - "Content-Length": "26584", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:46:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "94", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c85a5976-9e68-44ad-ad88-1b2fd81954d2", - "lastUpdatedDateTime": "2023-04-05T18:45:56Z", - "createdDateTime": "2023-04-05T18:45:54Z", - "expirationDateTime": "2023-04-06T18:45:54Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:45:56.2298919Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "73448391-871e-4014-80f3-719cab375fb3", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:73448391-871e-4014-80f3-719cab375fb3" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/073e7f5d-e061-41eb-8d5c-0d18fae836e9", - "resource": { - "resourceType": "Composition", - "id": "073e7f5d-e061-41eb-8d5c-0d18fae836e9", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "34117-2", - "display": "History and physical note" - } - ], - "text": "History and physical note" - }, - "subject": { - "reference": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/b26855c2-3f9f-4a31-908e-1dde2770024e", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "History and physical note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/b26855c2-3f9f-4a31-908e-1dde2770024e", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient is a 54-year-old gentleman with a history of progressive angina over the past several months.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/ba2d4edd-f159-492b-ad63-a3cc2400f20f", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "resource": { - "resourceType": "Patient", - "id": "158c7f53-6f63-4c94-8e09-06224d7f38a4", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 29 - }, - { - "url": "REDACTED", - "valueInteger": 9 - } - ], - "url": "REDACTED" - } - ], - "gender": "male" - } - }, - { - "fullUrl": "Encounter/0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "resource": { - "resourceType": "Encounter", - "id": "0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/ba2d4edd-f159-492b-ad63-a3cc2400f20f", - "resource": { - "resourceType": "List", - "id": "ba2d4edd-f159-492b-ad63-a3cc2400f20f", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/31729a8f-db38-480f-a8f7-a6f83764a718", - "type": "Observation", - "display": "angina" - } - } - ] - } - }, - { - "fullUrl": "Observation/31729a8f-db38-480f-a8f7-a6f83764a718", - "resource": { - "resourceType": "Observation", - "id": "31729a8f-db38-480f-a8f7-a6f83764a718", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 69 - }, - { - "url": "REDACTED", - "valueInteger": 6 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0002962", - "display": "Angina Pectoris" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000005330" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00047" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017852" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccs", - "code": "7.2.4.1" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000001165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "054" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1393-3407" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ANGINA PECTORIS" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U000113" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0001681" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-am", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-9-cm", - "code": "413" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc", - "code": "K74" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc2eeng", - "code": "K74" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU006338" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "K74001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U000244" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85005022" - }, - { - "system": "http://loinc.org", - "code": "LA14275-4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10002383" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "33215" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "142" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D000787" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mth", - "code": "053" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - }, - { - "system": "http://hl7.org/fhir/sid/mthicpc2eae", - "code": "K74" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E10110" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1710" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "040504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU009903" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/oms", - "code": "29.13" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_02040.07" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "02530" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/qmr", - "code": "Q0300326" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "G33.." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcdae", - "code": "Ua1eH" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-71500" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "D3-12000" - }, - { - "system": "http://snomed.info/sct", - "code": "194828000" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0422" - } - ], - "text": "angina" - }, - "subject": { - "reference": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 85 - }, - { - "url": "REDACTED", - "valueInteger": 19 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 1, - "durationUnit": "mo" - }, - "code": { - "text": "past several months" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 57 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "text": "progressive" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/b26855c2-3f9f-4a31-908e-1dde2770024e", - "resource": { - "resourceType": "Practitioner", - "id": "b26855c2-3f9f-4a31-908e-1dde2770024e", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - }, - { - "id": "1", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "2be17795-2696-4f7d-b0ac-fe948420f42f", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:2be17795-2696-4f7d-b0ac-fe948420f42f" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/0de10163-1ed4-43fa-bc79-79497d5fa48a", - "resource": { - "resourceType": "Composition", - "id": "0de10163-1ed4-43fa-bc79-79497d5fa48a", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11526-1", - "display": "Pathology study" - } - ], - "text": "Pathology study" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/e3be26ec-5338-4449-b539-781b74f33d87", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Pathology study", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/e3be26ec-5338-4449-b539-781b74f33d87", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/8553569a-e602-465c-aa18-b5966717861e", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "resource": { - "resourceType": "Patient", - "id": "36dd63e4-094b-4bab-b625-452297af5be0", - "language": "en", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "resource": { - "resourceType": "Encounter", - "id": "28890705-e67c-4f8f-b1e7-c47f90750cec", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/8553569a-e602-465c-aa18-b5966717861e", - "resource": { - "resourceType": "List", - "id": "8553569a-e602-465c-aa18-b5966717861e", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/81aa959c-dc29-47c9-a54a-363f373b5565", - "type": "Observation", - "display": "ST depressions in the anterior lateral leads" - } - }, - { - "item": { - "reference": "Observation/9ec19568-d7c6-41e4-9349-4286124078a7", - "type": "Observation", - "display": "fatigue" - } - }, - { - "item": { - "reference": "Observation/2771b627-7717-40a0-a0ac-37adcd6d013e", - "type": "Observation", - "display": "wrist pain" - } - }, - { - "item": { - "reference": "Observation/eae01fbc-e245-47c2-a910-60a85116bcfb", - "type": "Observation", - "display": "anginal equivalent" - } - } - ] - } - }, - { - "fullUrl": "Observation/81aa959c-dc29-47c9-a54a-363f373b5565", - "resource": { - "resourceType": "Observation", - "id": "81aa959c-dc29-47c9-a54a-363f373b5565", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 46 - }, - { - "url": "REDACTED", - "valueInteger": 44 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "text": "ST depressions in the anterior lateral leads" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 21 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 6, - "durationUnit": "min" - }, - "code": { - "text": "six minutes" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 38 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "text": "minimal" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/9ec19568-d7c6-41e4-9349-4286124078a7", - "resource": { - "resourceType": "Observation", - "id": "9ec19568-d7c6-41e4-9349-4286124078a7", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 108 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0015672", - "display": "Fatigue" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/air", - "code": "FATIG" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000001768" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccc", - "code": "A01.4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1014729" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000004914" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "298" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cpm", - "code": "65221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1385-2059" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ASTHENIA" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U001451" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0012378" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "R53.83" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icnp", - "code": "10000695" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU080142" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "A04004" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U001739" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85047465" - }, - { - "system": "http://loinc.org", - "code": "MTHU013358" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10016256" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "273174" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "5324" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D005221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "780.79" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nanda-i", - "code": "00742" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cdisc", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E11098" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1849" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000321374" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cadsr", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "121028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU010062" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_00010.03" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000041390" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "19400" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "1682." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-01610" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-01360" - }, - { - "system": "http://snomed.info/sct", - "code": "84229001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0724" - } - ], - "text": "fatigue" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/2771b627-7717-40a0-a0ac-37adcd6d013e", - "resource": { - "resourceType": "Observation", - "id": "2771b627-7717-40a0-a0ac-37adcd6d013e", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 120 - }, - { - "url": "REDACTED", - "valueInteger": 10 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0221785", - "display": "Pain in wrist" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1016217" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000021489" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "U000624" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U004491" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0030836" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "M25.53" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU060847" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "L11002" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10048692" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "939" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU016462" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "N094F" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-176A0" - }, - { - "system": "http://snomed.info/sct", - "code": "56608008" - } - ], - "text": "wrist pain" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/eae01fbc-e245-47c2-a910-60a85116bcfb", - "resource": { - "resourceType": "Observation", - "id": "eae01fbc-e245-47c2-a910-60a85116bcfb", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 137 - }, - { - "url": "REDACTED", - "valueInteger": 18 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0741034", - "display": "Anginal equivalent" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017783" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000047213" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.8" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10076419" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - } - ], - "text": "anginal equivalent" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/e3be26ec-5338-4449-b539-781b74f33d87", - "resource": { - "resourceType": "Practitioner", - "id": "e3be26ec-5338-4449-b539-781b74f33d87", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c85a5976-9e68-44ad-ad88-1b2fd81954d2?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:46:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "42451d96-86de-459c-a1bd-fc70a00f98a4" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6e97a92c-ccdd-4742-bc83-4c96d0317cbd", - "Content-Length": "26584", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:46:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "74", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c85a5976-9e68-44ad-ad88-1b2fd81954d2", - "lastUpdatedDateTime": "2023-04-05T18:45:56Z", - "createdDateTime": "2023-04-05T18:45:54Z", - "expirationDateTime": "2023-04-06T18:45:54Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:45:56.2298919Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "73448391-871e-4014-80f3-719cab375fb3", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:73448391-871e-4014-80f3-719cab375fb3" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/073e7f5d-e061-41eb-8d5c-0d18fae836e9", - "resource": { - "resourceType": "Composition", - "id": "073e7f5d-e061-41eb-8d5c-0d18fae836e9", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "34117-2", - "display": "History and physical note" - } - ], - "text": "History and physical note" - }, - "subject": { - "reference": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/b26855c2-3f9f-4a31-908e-1dde2770024e", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "History and physical note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/b26855c2-3f9f-4a31-908e-1dde2770024e", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient is a 54-year-old gentleman with a history of progressive angina over the past several months.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/ba2d4edd-f159-492b-ad63-a3cc2400f20f", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "resource": { - "resourceType": "Patient", - "id": "158c7f53-6f63-4c94-8e09-06224d7f38a4", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 29 - }, - { - "url": "REDACTED", - "valueInteger": 9 - } - ], - "url": "REDACTED" - } - ], - "gender": "male" - } - }, - { - "fullUrl": "Encounter/0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "resource": { - "resourceType": "Encounter", - "id": "0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/ba2d4edd-f159-492b-ad63-a3cc2400f20f", - "resource": { - "resourceType": "List", - "id": "ba2d4edd-f159-492b-ad63-a3cc2400f20f", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/31729a8f-db38-480f-a8f7-a6f83764a718", - "type": "Observation", - "display": "angina" - } - } - ] - } - }, - { - "fullUrl": "Observation/31729a8f-db38-480f-a8f7-a6f83764a718", - "resource": { - "resourceType": "Observation", - "id": "31729a8f-db38-480f-a8f7-a6f83764a718", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 69 - }, - { - "url": "REDACTED", - "valueInteger": 6 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0002962", - "display": "Angina Pectoris" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000005330" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00047" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017852" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccs", - "code": "7.2.4.1" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000001165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "054" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1393-3407" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ANGINA PECTORIS" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U000113" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0001681" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-am", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-9-cm", - "code": "413" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc", - "code": "K74" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc2eeng", - "code": "K74" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU006338" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "K74001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U000244" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85005022" - }, - { - "system": "http://loinc.org", - "code": "LA14275-4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10002383" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "33215" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "142" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D000787" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mth", - "code": "053" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - }, - { - "system": "http://hl7.org/fhir/sid/mthicpc2eae", - "code": "K74" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E10110" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1710" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "040504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU009903" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/oms", - "code": "29.13" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_02040.07" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "02530" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/qmr", - "code": "Q0300326" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "G33.." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcdae", - "code": "Ua1eH" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-71500" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "D3-12000" - }, - { - "system": "http://snomed.info/sct", - "code": "194828000" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0422" - } - ], - "text": "angina" - }, - "subject": { - "reference": "Patient/158c7f53-6f63-4c94-8e09-06224d7f38a4", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/0e7b51e5-54de-46ec-a4e1-d4b3085f69ab", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 85 - }, - { - "url": "REDACTED", - "valueInteger": 19 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 1, - "durationUnit": "mo" - }, - "code": { - "text": "past several months" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 57 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "text": "progressive" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/b26855c2-3f9f-4a31-908e-1dde2770024e", - "resource": { - "resourceType": "Practitioner", - "id": "b26855c2-3f9f-4a31-908e-1dde2770024e", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - }, - { - "id": "1", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "2be17795-2696-4f7d-b0ac-fe948420f42f", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:2be17795-2696-4f7d-b0ac-fe948420f42f" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/0de10163-1ed4-43fa-bc79-79497d5fa48a", - "resource": { - "resourceType": "Composition", - "id": "0de10163-1ed4-43fa-bc79-79497d5fa48a", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11526-1", - "display": "Pathology study" - } - ], - "text": "Pathology study" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/e3be26ec-5338-4449-b539-781b74f33d87", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Pathology study", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/e3be26ec-5338-4449-b539-781b74f33d87", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/8553569a-e602-465c-aa18-b5966717861e", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "resource": { - "resourceType": "Patient", - "id": "36dd63e4-094b-4bab-b625-452297af5be0", - "language": "en", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "resource": { - "resourceType": "Encounter", - "id": "28890705-e67c-4f8f-b1e7-c47f90750cec", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/8553569a-e602-465c-aa18-b5966717861e", - "resource": { - "resourceType": "List", - "id": "8553569a-e602-465c-aa18-b5966717861e", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/81aa959c-dc29-47c9-a54a-363f373b5565", - "type": "Observation", - "display": "ST depressions in the anterior lateral leads" - } - }, - { - "item": { - "reference": "Observation/9ec19568-d7c6-41e4-9349-4286124078a7", - "type": "Observation", - "display": "fatigue" - } - }, - { - "item": { - "reference": "Observation/2771b627-7717-40a0-a0ac-37adcd6d013e", - "type": "Observation", - "display": "wrist pain" - } - }, - { - "item": { - "reference": "Observation/eae01fbc-e245-47c2-a910-60a85116bcfb", - "type": "Observation", - "display": "anginal equivalent" - } - } - ] - } - }, - { - "fullUrl": "Observation/81aa959c-dc29-47c9-a54a-363f373b5565", - "resource": { - "resourceType": "Observation", - "id": "81aa959c-dc29-47c9-a54a-363f373b5565", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 46 - }, - { - "url": "REDACTED", - "valueInteger": 44 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "text": "ST depressions in the anterior lateral leads" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 21 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 6, - "durationUnit": "min" - }, - "code": { - "text": "six minutes" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 38 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "text": "minimal" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/9ec19568-d7c6-41e4-9349-4286124078a7", - "resource": { - "resourceType": "Observation", - "id": "9ec19568-d7c6-41e4-9349-4286124078a7", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 108 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0015672", - "display": "Fatigue" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/air", - "code": "FATIG" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000001768" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccc", - "code": "A01.4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1014729" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000004914" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "298" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cpm", - "code": "65221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1385-2059" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ASTHENIA" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U001451" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0012378" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "R53.83" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icnp", - "code": "10000695" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU080142" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "A04004" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U001739" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85047465" - }, - { - "system": "http://loinc.org", - "code": "MTHU013358" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10016256" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "273174" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "5324" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D005221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "780.79" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nanda-i", - "code": "00742" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cdisc", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E11098" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1849" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000321374" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cadsr", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "121028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU010062" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_00010.03" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000041390" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "19400" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "1682." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-01610" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-01360" - }, - { - "system": "http://snomed.info/sct", - "code": "84229001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0724" - } - ], - "text": "fatigue" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/2771b627-7717-40a0-a0ac-37adcd6d013e", - "resource": { - "resourceType": "Observation", - "id": "2771b627-7717-40a0-a0ac-37adcd6d013e", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 120 - }, - { - "url": "REDACTED", - "valueInteger": 10 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0221785", - "display": "Pain in wrist" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1016217" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000021489" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "U000624" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U004491" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0030836" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "M25.53" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU060847" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "L11002" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10048692" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "939" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU016462" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "N094F" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-176A0" - }, - { - "system": "http://snomed.info/sct", - "code": "56608008" - } - ], - "text": "wrist pain" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/eae01fbc-e245-47c2-a910-60a85116bcfb", - "resource": { - "resourceType": "Observation", - "id": "eae01fbc-e245-47c2-a910-60a85116bcfb", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 137 - }, - { - "url": "REDACTED", - "valueInteger": 18 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0741034", - "display": "Anginal equivalent" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017783" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000047213" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.8" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10076419" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - } - ], - "text": "anginal equivalent" - }, - "subject": { - "reference": "Patient/36dd63e4-094b-4bab-b625-452297af5be0", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/28890705-e67c-4f8f-b1e7-c47f90750cec", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/e3be26ec-5338-4449-b539-781b74f33d87", - "resource": { - "resourceType": "Practitioner", - "id": "e3be26ec-5338-4449-b539-781b74f33d87", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesDiacriticsNfc[1].json deleted file mode 100644 index 5f2017bb6b6b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesDiacriticsNfc[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "189", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b977f8ee-f805-4c43-bade-bb8467e6d20a" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "71e424c0-8f35-4601-87b8-5f4652e08011", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/b00c502b-c481-400f-8282-c082430ec15e?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "154", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b00c502b-c481-400f-8282-c082430ec15e?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "66800654-6c01-4a7c-883d-5b88bceaf12f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8c5b450d-78b8-4b58-ab01-a8294b725bf6", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b00c502b-c481-400f-8282-c082430ec15e", - "lastUpdatedDateTime": "2023-04-05T18:31:25Z", - "createdDateTime": "2023-04-05T18:31:25Z", - "expirationDateTime": "2023-04-06T18:31:25Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b00c502b-c481-400f-8282-c082430ec15e?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:31:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e53c75fc-8dc2-409a-b9e9-6fe42640fe4a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0ead2b09-8d07-44cb-8a7f-6d01bb4cce05", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:31:54 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "60", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b00c502b-c481-400f-8282-c082430ec15e", - "lastUpdatedDateTime": "2023-04-05T18:31:28Z", - "createdDateTime": "2023-04-05T18:31:25Z", - "expirationDateTime": "2023-04-06T18:31:25Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:31:28.2077325Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b00c502b-c481-400f-8282-c082430ec15e?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:31:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8195df32-3189-4d40-8754-5fce11be9891" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1fe4fd58-8b42-45f8-97d7-80e4b941f5d4", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:31:54 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "177", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b00c502b-c481-400f-8282-c082430ec15e", - "lastUpdatedDateTime": "2023-04-05T18:31:28Z", - "createdDateTime": "2023-04-05T18:31:25Z", - "expirationDateTime": "2023-04-06T18:31:25Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:31:28.2077325Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesDiacriticsNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesDiacriticsNfd[1].json deleted file mode 100644 index 8aad2b9fdee0..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesDiacriticsNfd[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "190", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:31:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "cecbe698-916a-4fc8-8781-c8caa01bc8d9" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "an\u0303o The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "7d55e05a-1d73-407b-a053-5a82ae6e996f", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:31:55 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/80812b5a-2295-4928-a2b7-219ffc327db9?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "181", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/80812b5a-2295-4928-a2b7-219ffc327db9?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:31:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "764b7e40-0c23-4ed8-8ae4-fa82f9ead53e" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "390126d9-dcf4-43a8-85e4-a778b65205a4", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:31:55 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "80812b5a-2295-4928-a2b7-219ffc327db9", - "lastUpdatedDateTime": "2023-04-05T18:31:55Z", - "createdDateTime": "2023-04-05T18:31:55Z", - "expirationDateTime": "2023-04-06T18:31:55Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/80812b5a-2295-4928-a2b7-219ffc327db9?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:32:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d237e084-bcc7-4cc0-b7d7-ac4d0a6c4b0a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "14ffc92e-c2fa-4bd3-9355-ec279a832bfd", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:32:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "68", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "80812b5a-2295-4928-a2b7-219ffc327db9", - "lastUpdatedDateTime": "2023-04-05T18:31:57Z", - "createdDateTime": "2023-04-05T18:31:55Z", - "expirationDateTime": "2023-04-06T18:31:55Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:31:57.5085136Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 22, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/80812b5a-2295-4928-a2b7-219ffc327db9?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:32:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "208f3905-0262-4a1a-80f6-b895a4dfc78d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "382aeb3e-e280-4e4f-ab2d-0371e9bce5df", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:32:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "39", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "80812b5a-2295-4928-a2b7-219ffc327db9", - "lastUpdatedDateTime": "2023-04-05T18:31:57Z", - "createdDateTime": "2023-04-05T18:31:55Z", - "expirationDateTime": "2023-04-06T18:31:55Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:31:57.5085136Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 22, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiFamilyWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiFamilyWithSkinToneModifier[1].json deleted file mode 100644 index 7ab90d864dbd..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiFamilyWithSkinToneModifier[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "290", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "cbc96e92-baa5-4a41-9aba-3d7111034e95" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "c27edf9e-2d31-46a9-8998-3fc791ae5e26", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:45:21 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/ff1ea05d-e90e-4910-83f6-f7000dd573a5?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "166", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ff1ea05d-e90e-4910-83f6-f7000dd573a5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:45:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "15743bb2-1b66-4ffb-980f-58799f4a782b" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "128470e1-5cbe-4cff-bf43-45b7bf8cdef4", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ff1ea05d-e90e-4910-83f6-f7000dd573a5", - "lastUpdatedDateTime": "2023-04-05T18:45:22Z", - "createdDateTime": "2023-04-05T18:45:22Z", - "expirationDateTime": "2023-04-06T18:45:22Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ff1ea05d-e90e-4910-83f6-f7000dd573a5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:45:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1d3309fd-c82f-4d3a-8e24-7f2671340635" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "36850495-897d-4ebe-9948-caeb19a242a4", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "230", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ff1ea05d-e90e-4910-83f6-f7000dd573a5", - "lastUpdatedDateTime": "2023-04-05T18:45:24Z", - "createdDateTime": "2023-04-05T18:45:22Z", - "expirationDateTime": "2023-04-06T18:45:22Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:45:24.2368638Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 37, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ff1ea05d-e90e-4910-83f6-f7000dd573a5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "409ff6fe-0bbf-44c0-af54-67e56315117a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b23a5390-f5d5-4150-9aa0-748524330ce0", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "36", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ff1ea05d-e90e-4910-83f6-f7000dd573a5", - "lastUpdatedDateTime": "2023-04-05T18:45:24Z", - "createdDateTime": "2023-04-05T18:45:22Z", - "expirationDateTime": "2023-04-06T18:45:22Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:45:24.2368638Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 37, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiFamily[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiFamily[1].json deleted file mode 100644 index f8fc8d7e9bd4..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiFamily[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "242", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:32:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "39244ec4-6a5e-4736-a6fa-662792ce5f05" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "f2152ca5-7ec3-4149-9a8f-6ad40343c7af", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:32:58 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c4f21039-4576-4f8c-ab16-d8796f680730?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "362", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c4f21039-4576-4f8c-ab16-d8796f680730?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:32:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "60c7c877-fa0a-4594-aef0-5013be7cc447" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "47991422-9b42-43be-bfb8-4d31e9116ece", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:32:58 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c4f21039-4576-4f8c-ab16-d8796f680730", - "lastUpdatedDateTime": "2023-04-05T18:32:58Z", - "createdDateTime": "2023-04-05T18:32:57Z", - "expirationDateTime": "2023-04-06T18:32:57Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c4f21039-4576-4f8c-ab16-d8796f680730?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:33:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7cf907c6-dbeb-4eda-8516-60bbf7344405" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0ac69925-c1c7-4af0-99a0-f02a0866a56f", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:33:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "276", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c4f21039-4576-4f8c-ab16-d8796f680730", - "lastUpdatedDateTime": "2023-04-05T18:33:00Z", - "createdDateTime": "2023-04-05T18:32:57Z", - "expirationDateTime": "2023-04-06T18:32:57Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:33:00.0986035Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 29, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c4f21039-4576-4f8c-ab16-d8796f680730?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:33:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "35a33fb5-6342-4808-b087-a80f7d1d84fe" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6d89c70b-179c-4178-824a-cd11d92c3f78", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:33:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "51", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c4f21039-4576-4f8c-ab16-d8796f680730", - "lastUpdatedDateTime": "2023-04-05T18:33:00Z", - "createdDateTime": "2023-04-05T18:32:57Z", - "expirationDateTime": "2023-04-06T18:32:57Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:33:00.0986035Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 29, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiWithSkinToneModifier[1].json deleted file mode 100644 index fb9e42d4daf9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmojiWithSkinToneModifier[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "209", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a3318f2d-b49e-4ca5-9ccb-0ba96b247686" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "5c2c22e6-b2f1-4673-b350-571ec82318ff", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c9931b9f-2090-40db-8141-7d7528832add?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "106", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c9931b9f-2090-40db-8141-7d7528832add?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:37:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a14d64c5-6e62-434f-b919-f2e717b8249a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1c3a2a7e-9ea5-4519-b553-436181c2c4ce", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c9931b9f-2090-40db-8141-7d7528832add", - "lastUpdatedDateTime": "2023-04-05T18:37:06Z", - "createdDateTime": "2023-04-05T18:37:06Z", - "expirationDateTime": "2023-04-06T18:37:06Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c9931b9f-2090-40db-8141-7d7528832add?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:37:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c7ae56d6-28ff-41c2-aac5-5563517697c5" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "70c31f77-9143-49c8-8870-7053a5db8f33", - "Content-Length": "588", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:36 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "101", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c9931b9f-2090-40db-8141-7d7528832add", - "lastUpdatedDateTime": "2023-04-05T18:37:08Z", - "createdDateTime": "2023-04-05T18:37:06Z", - "expirationDateTime": "2023-04-06T18:37:06Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:08.7103Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 22, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c9931b9f-2090-40db-8141-7d7528832add?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:37:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4a4f136f-0780-4507-910c-644801528ff4" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e9eda9ac-735c-4284-a92d-0307d50af150", - "Content-Length": "588", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:36 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "239", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c9931b9f-2090-40db-8141-7d7528832add", - "lastUpdatedDateTime": "2023-04-05T18:37:08Z", - "createdDateTime": "2023-04-05T18:37:06Z", - "expirationDateTime": "2023-04-06T18:37:06Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:37:08.7103Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 22, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmoji[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmoji[1].json deleted file mode 100644 index 41fc466829af..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesEmoji[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "197", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:33:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2b6bec2a-92b0-4d9b-9561-18d59e2556ce" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69 The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "2a2846fc-67b5-4a61-9782-f0f006d10dda", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:33:29 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/e1241d01-67b4-4906-afdd-82dd70232a21?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "149", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/e1241d01-67b4-4906-afdd-82dd70232a21?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:33:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d18bb688-3513-4b9e-a901-bba6106f677f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "05b0edf4-126a-40c1-83b5-cb4832051531", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:33:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "e1241d01-67b4-4906-afdd-82dd70232a21", - "lastUpdatedDateTime": "2023-04-05T18:33:29Z", - "createdDateTime": "2023-04-05T18:33:29Z", - "expirationDateTime": "2023-04-06T18:33:29Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/e1241d01-67b4-4906-afdd-82dd70232a21?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:33:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c149b88f-d1c2-4b17-97fe-580459d18e00" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "065553df-742b-4ac0-90ad-f72e77df1a77", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:33:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "e1241d01-67b4-4906-afdd-82dd70232a21", - "lastUpdatedDateTime": "2023-04-05T18:33:30Z", - "createdDateTime": "2023-04-05T18:33:29Z", - "expirationDateTime": "2023-04-06T18:33:29Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:33:30.7277506Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/e1241d01-67b4-4906-afdd-82dd70232a21?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:33:59 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2913c99b-abb7-489d-ba48-0f32dfeb0bab" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d7d6c45a-b417-4f4c-8402-665fa1d86f06", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:33:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "53", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "e1241d01-67b4-4906-afdd-82dd70232a21", - "lastUpdatedDateTime": "2023-04-05T18:33:30Z", - "createdDateTime": "2023-04-05T18:33:29Z", - "expirationDateTime": "2023-04-06T18:33:29Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:33:30.7277506Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesForAssertion[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesForAssertion[1].json deleted file mode 100644 index fcbcbf9a2ef1..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesForAssertion[1].json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "331", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:41:46 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7bb969b2-cfe6-4e85-838d-bd8c71257e61" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "All female participants that are premenopausal will be required to have a pregnancy test; any participant who is pregnant or breastfeeding will not be included", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "1ba99204-e4dc-412f-8d92-a29b52c9a01b", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:41:45 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/18066082-b04f-403e-a695-689725876872?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "262", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/18066082-b04f-403e-a695-689725876872?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:41:47 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f1bc1aa4-41f2-4fc3-82d4-d466cb27b2fb" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0f40aebf-db8a-47cc-961f-589da61349ff", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:41:45 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "18066082-b04f-403e-a695-689725876872", - "lastUpdatedDateTime": "2023-04-05T18:41:46Z", - "createdDateTime": "2023-04-05T18:41:46Z", - "expirationDateTime": "2023-04-06T18:41:46Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/18066082-b04f-403e-a695-689725876872?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:42:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "22e3d946-f454-4125-a872-053f5fec49bd" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "99083a0b-f235-4dab-afa8-e4c0628710dc", - "Content-Length": "3171", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:42:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "18066082-b04f-403e-a695-689725876872", - "lastUpdatedDateTime": "2023-04-05T18:41:48Z", - "createdDateTime": "2023-04-05T18:41:46Z", - "expirationDateTime": "2023-04-06T18:41:46Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:41:48.7818099Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 4, - "length": 6, - "text": "female", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Woman", - "links": [ - { - "dataSource": "UMLS", - "id": "C0043210" - }, - { - "dataSource": "AOD", - "id": "0000014451" - }, - { - "dataSource": "CCPSS", - "id": "0018392" - }, - { - "dataSource": "CHV", - "id": "0000013181" - }, - { - "dataSource": "LCH", - "id": "U005036" - }, - { - "dataSource": "LCH_NW", - "id": "sh85147274" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "4" - }, - { - "dataSource": "MSH", - "id": "D014930" - }, - { - "dataSource": "PSY", - "id": "23450" - }, - { - "dataSource": "RCD", - "id": "Ua0Wg" - }, - { - "dataSource": "SNM", - "id": "E-4957" - }, - { - "dataSource": "SNMI", - "id": "L-85B00" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "224526002" - } - ] - }, - { - "offset": 33, - "length": 13, - "text": "premenopausal", - "category": "Diagnosis", - "confidenceScore": 0.96, - "assertion": { - "conditionality": "hypothetical" - }, - "name": "Premenopausal - menopausal status", - "links": [ - { - "dataSource": "UMLS", - "id": "C0279752" - }, - { - "dataSource": "CHV", - "id": "0000027286" - }, - { - "dataSource": "LNC", - "id": "LP140231-4" - }, - { - "dataSource": "NCI", - "id": "C15491" - }, - { - "dataSource": "NCI_CPTAC", - "id": "C15491" - }, - { - "dataSource": "NCI_GDC", - "id": "C15491" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000045268" - }, - { - "dataSource": "PDQ", - "id": "CDR0000040049" - } - ] - }, - { - "offset": 74, - "length": 14, - "text": "pregnancy test", - "category": "ExaminationName", - "confidenceScore": 1.0, - "name": "Pregnancy Tests", - "links": [ - { - "dataSource": "UMLS", - "id": "C0032976" - }, - { - "dataSource": "AOD", - "id": "0000007532" - }, - { - "dataSource": "CHV", - "id": "0000010058" - }, - { - "dataSource": "CSP", - "id": "2403-5273" - }, - { - "dataSource": "ICPC2P", - "id": "W33002" - }, - { - "dataSource": "LNC", - "id": "LP105252-3" - }, - { - "dataSource": "MDR", - "id": "10036572" - }, - { - "dataSource": "MEDCIN", - "id": "13078" - }, - { - "dataSource": "MSH", - "id": "D011258" - }, - { - "dataSource": "NCI", - "id": "C92949" - }, - { - "dataSource": "RCD", - "id": "X77WY" - }, - { - "dataSource": "SNM", - "id": "P-9501" - }, - { - "dataSource": "SNMI", - "id": "P2-87010" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "74036000" - } - ] - }, - { - "offset": 113, - "length": 8, - "text": "pregnant", - "category": "Diagnosis", - "confidenceScore": 1.0, - "name": "Patient currently pregnant", - "links": [ - { - "dataSource": "UMLS", - "id": "C0549206" - }, - { - "dataSource": "CHV", - "id": "0000023061" - }, - { - "dataSource": "HL7V2.5", - "id": "B6" - }, - { - "dataSource": "HL7V3.0", - "id": "PGNT" - }, - { - "dataSource": "LNC", - "id": "LA15173-0" - }, - { - "dataSource": "MDR", - "id": "10018707" - }, - { - "dataSource": "MEDCIN", - "id": "621" - }, - { - "dataSource": "NCI", - "id": "C124295" - }, - { - "dataSource": "NCI_CDISC", - "id": "C124295" - }, - { - "dataSource": "RCD", - "id": "621.." - }, - { - "dataSource": "SNM", - "id": "F-31220" - }, - { - "dataSource": "SNMI", - "id": "F-84000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "77386006" - } - ] - }, - { - "offset": 125, - "length": 13, - "text": "breastfeeding", - "category": "Diagnosis", - "confidenceScore": 1.0, - "name": "Breastfeeding (mother)", - "links": [ - { - "dataSource": "UMLS", - "id": "C1623040" - }, - { - "dataSource": "LNC", - "id": "LP114922-0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "413712001" - } - ] - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/18066082-b04f-403e-a695-689725876872?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:42:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "392e7fa6-4a22-4d77-8b4b-b92e76545361" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4a1cc345-e084-4228-9f4a-17ab1fabcf46", - "Content-Length": "3171", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:42:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "41", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "18066082-b04f-403e-a695-689725876872", - "lastUpdatedDateTime": "2023-04-05T18:41:48Z", - "createdDateTime": "2023-04-05T18:41:46Z", - "expirationDateTime": "2023-04-06T18:41:46Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:41:48.7818099Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 4, - "length": 6, - "text": "female", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Woman", - "links": [ - { - "dataSource": "UMLS", - "id": "C0043210" - }, - { - "dataSource": "AOD", - "id": "0000014451" - }, - { - "dataSource": "CCPSS", - "id": "0018392" - }, - { - "dataSource": "CHV", - "id": "0000013181" - }, - { - "dataSource": "LCH", - "id": "U005036" - }, - { - "dataSource": "LCH_NW", - "id": "sh85147274" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "4" - }, - { - "dataSource": "MSH", - "id": "D014930" - }, - { - "dataSource": "PSY", - "id": "23450" - }, - { - "dataSource": "RCD", - "id": "Ua0Wg" - }, - { - "dataSource": "SNM", - "id": "E-4957" - }, - { - "dataSource": "SNMI", - "id": "L-85B00" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "224526002" - } - ] - }, - { - "offset": 33, - "length": 13, - "text": "premenopausal", - "category": "Diagnosis", - "confidenceScore": 0.96, - "assertion": { - "conditionality": "hypothetical" - }, - "name": "Premenopausal - menopausal status", - "links": [ - { - "dataSource": "UMLS", - "id": "C0279752" - }, - { - "dataSource": "CHV", - "id": "0000027286" - }, - { - "dataSource": "LNC", - "id": "LP140231-4" - }, - { - "dataSource": "NCI", - "id": "C15491" - }, - { - "dataSource": "NCI_CPTAC", - "id": "C15491" - }, - { - "dataSource": "NCI_GDC", - "id": "C15491" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000045268" - }, - { - "dataSource": "PDQ", - "id": "CDR0000040049" - } - ] - }, - { - "offset": 74, - "length": 14, - "text": "pregnancy test", - "category": "ExaminationName", - "confidenceScore": 1.0, - "name": "Pregnancy Tests", - "links": [ - { - "dataSource": "UMLS", - "id": "C0032976" - }, - { - "dataSource": "AOD", - "id": "0000007532" - }, - { - "dataSource": "CHV", - "id": "0000010058" - }, - { - "dataSource": "CSP", - "id": "2403-5273" - }, - { - "dataSource": "ICPC2P", - "id": "W33002" - }, - { - "dataSource": "LNC", - "id": "LP105252-3" - }, - { - "dataSource": "MDR", - "id": "10036572" - }, - { - "dataSource": "MEDCIN", - "id": "13078" - }, - { - "dataSource": "MSH", - "id": "D011258" - }, - { - "dataSource": "NCI", - "id": "C92949" - }, - { - "dataSource": "RCD", - "id": "X77WY" - }, - { - "dataSource": "SNM", - "id": "P-9501" - }, - { - "dataSource": "SNMI", - "id": "P2-87010" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "74036000" - } - ] - }, - { - "offset": 113, - "length": 8, - "text": "pregnant", - "category": "Diagnosis", - "confidenceScore": 1.0, - "name": "Patient currently pregnant", - "links": [ - { - "dataSource": "UMLS", - "id": "C0549206" - }, - { - "dataSource": "CHV", - "id": "0000023061" - }, - { - "dataSource": "HL7V2.5", - "id": "B6" - }, - { - "dataSource": "HL7V3.0", - "id": "PGNT" - }, - { - "dataSource": "LNC", - "id": "LA15173-0" - }, - { - "dataSource": "MDR", - "id": "10018707" - }, - { - "dataSource": "MEDCIN", - "id": "621" - }, - { - "dataSource": "NCI", - "id": "C124295" - }, - { - "dataSource": "NCI_CDISC", - "id": "C124295" - }, - { - "dataSource": "RCD", - "id": "621.." - }, - { - "dataSource": "SNM", - "id": "F-31220" - }, - { - "dataSource": "SNMI", - "id": "F-84000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "77386006" - } - ] - }, - { - "offset": 125, - "length": 13, - "text": "breastfeeding", - "category": "Diagnosis", - "confidenceScore": 1.0, - "name": "Breastfeeding (mother)", - "links": [ - { - "dataSource": "UMLS", - "id": "C1623040" - }, - { - "dataSource": "LNC", - "id": "LP114922-0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "413712001" - } - ] - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesKoreanNfc[1].json deleted file mode 100644 index 82385897c800..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesKoreanNfc[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "191", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:46:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4569ba4d-198e-46fa-9abd-367468e8da56" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "e66135d3-1d5c-4443-b778-7f506cb1fcee", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:46:24 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/b507fcd8-85ec-4646-86f1-7405cd5e7776?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "178", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b507fcd8-85ec-4646-86f1-7405cd5e7776?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:46:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c8628f45-bbac-400d-b34b-d00e8124ef3f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8b3ba98c-0dc2-4a80-9ffc-add1a73060b0", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:46:24 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "13", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b507fcd8-85ec-4646-86f1-7405cd5e7776", - "lastUpdatedDateTime": "2023-04-05T18:46:25Z", - "createdDateTime": "2023-04-05T18:46:24Z", - "expirationDateTime": "2023-04-06T18:46:24Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b507fcd8-85ec-4646-86f1-7405cd5e7776?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:46:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9048ca95-69c0-4e9c-8bfa-0768a84e77f0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "146f9112-8642-4126-981e-041bdd50e256", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:46:55 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "245", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b507fcd8-85ec-4646-86f1-7405cd5e7776", - "lastUpdatedDateTime": "2023-04-05T18:46:26Z", - "createdDateTime": "2023-04-05T18:46:24Z", - "expirationDateTime": "2023-04-06T18:46:24Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:46:26.5356868Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b507fcd8-85ec-4646-86f1-7405cd5e7776?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:46:55 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5944a4d6-87bb-48ef-a542-25b7cf69514d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2b7b63e3-d66e-44ef-8d11-bda832b1b530", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:46:55 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "37", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b507fcd8-85ec-4646-86f1-7405cd5e7776", - "lastUpdatedDateTime": "2023-04-05T18:46:26Z", - "createdDateTime": "2023-04-05T18:46:24Z", - "expirationDateTime": "2023-04-06T18:46:24Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:46:26.5356868Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesKoreanNfd[1].json deleted file mode 100644 index 159a6d5adbec..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesKoreanNfd[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "191", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:46:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8b60f65a-807d-4b94-9a9c-eaf6e5c2d2ca" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "06de7682-0a1c-451b-a53c-fd0dfde3593b", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:46:55 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/5210fa4c-341f-4669-a49b-2a5b924be8a5?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "119", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5210fa4c-341f-4669-a49b-2a5b924be8a5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:46:56 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5a355c9a-b582-4d42-ab77-d158e5c41d50" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5c0f772b-ac37-4e1b-bfa6-d929cd0333f9", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:46:55 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5210fa4c-341f-4669-a49b-2a5b924be8a5", - "lastUpdatedDateTime": "2023-04-05T18:46:55Z", - "createdDateTime": "2023-04-05T18:46:55Z", - "expirationDateTime": "2023-04-06T18:46:55Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5210fa4c-341f-4669-a49b-2a5b924be8a5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:47:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3fe15fff-0c77-4ac4-b8a4-9a837e03935b" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1055a20a-4ded-4cea-acb8-cb0a6d5af6d7", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:47:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "61", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5210fa4c-341f-4669-a49b-2a5b924be8a5", - "lastUpdatedDateTime": "2023-04-05T18:46:57Z", - "createdDateTime": "2023-04-05T18:46:55Z", - "expirationDateTime": "2023-04-06T18:46:55Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:46:57.3358124Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/5210fa4c-341f-4669-a49b-2a5b924be8a5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:47:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "930f5fbe-94f3-4622-bfe9-082cf465f9b1" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ce6ea14e-cc7c-46e4-b4d9-341c11ab9cc1", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:47:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "95", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "5210fa4c-341f-4669-a49b-2a5b924be8a5", - "lastUpdatedDateTime": "2023-04-05T18:46:57Z", - "createdDateTime": "2023-04-05T18:46:55Z", - "expirationDateTime": "2023-04-06T18:46:55Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:46:57.3358124Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 20, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesZalgoText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesZalgoText[1].json deleted file mode 100644 index 7bc07c68d4c1..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeHealthcareEntitiesZalgoText[1].json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "412", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:43:49 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e28d9b7f-14ca-4a80-8e1e-5af715335deb" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E The patient is a 54-year-old" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "89d16c63-6ebd-4e29-b30a-c42252d0e982", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:43:49 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/29b462d3-ce7a-4c94-bf61-adb1426ec216?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "165", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/29b462d3-ce7a-4c94-bf61-adb1426ec216?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:43:49 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "23626f6a-7996-4d37-86e5-705500bd70b7" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4d65c02e-0b2f-49c6-b133-4832610c0245", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:43:49 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "17", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "29b462d3-ce7a-4c94-bf61-adb1426ec216", - "lastUpdatedDateTime": "2023-04-05T18:43:49Z", - "createdDateTime": "2023-04-05T18:43:49Z", - "expirationDateTime": "2023-04-06T18:43:49Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/29b462d3-ce7a-4c94-bf61-adb1426ec216?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:44:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1d4f886e-4d27-4f8a-8272-a1f36b8a211e" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6981203d-b372-4f2a-949a-120c2160f98a", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:44:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "60", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "29b462d3-ce7a-4c94-bf61-adb1426ec216", - "lastUpdatedDateTime": "2023-04-05T18:43:51Z", - "createdDateTime": "2023-04-05T18:43:49Z", - "expirationDateTime": "2023-04-06T18:43:49Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:43:51.190088Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 133, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/29b462d3-ce7a-4c94-bf61-adb1426ec216?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:44:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "34aa6413-6abf-4c74-8f3f-91077af609d0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "26bdada0-a138-40de-b8a1-e41f56b1be69", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:44:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "48", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "29b462d3-ce7a-4c94-bf61-adb1426ec216", - "lastUpdatedDateTime": "2023-04-05T18:43:51Z", - "createdDateTime": "2023-04-05T18:43:49Z", - "expirationDateTime": "2023-04-06T18:43:49Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:43:51.190088Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 133, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - } - ], - "relations": [], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeKeyPhrasesExtractionAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeKeyPhrasesExtractionAction[1].json deleted file mode 100644 index 0ff26425c798..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeKeyPhrasesExtractionAction[1].json +++ /dev/null @@ -1,233 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "318", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:42:48 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f1a82c15-e6b3-4b7c-a771-e6fd4247a04e" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week.", - "language": "en" - }, - { - "id": "1", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "KeyPhraseExtraction", - "parameters": { - "loggingOptOut": false - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "6dd9fef4-46ff-4c3a-b395-32d2974acb3e", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:42:47 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/a3d632b5-e526-4a99-a5bf-d413f757d1b5?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "162", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/a3d632b5-e526-4a99-a5bf-d413f757d1b5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:42:48 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "19b7f3f3-3c19-4cf6-8410-9fcaf4072155" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "569d9362-6b57-40ca-b48d-ea7d3c3909bd", - "Content-Length": "305", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:42:47 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "a3d632b5-e526-4a99-a5bf-d413f757d1b5", - "lastUpdatedDateTime": "2023-04-05T18:42:48Z", - "createdDateTime": "2023-04-05T18:42:47Z", - "expirationDateTime": "2023-04-06T18:42:47Z", - "status": "notStarted", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/a3d632b5-e526-4a99-a5bf-d413f757d1b5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:43:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "68e9fe8f-8d72-4a4a-b83c-31482bccd92b" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b61489df-99db-466d-85d0-a9c0ead3a0a0", - "Content-Length": "631", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:43:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "238", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "a3d632b5-e526-4a99-a5bf-d413f757d1b5", - "lastUpdatedDateTime": "2023-04-05T18:42:49Z", - "createdDateTime": "2023-04-05T18:42:47Z", - "expirationDateTime": "2023-04-06T18:42:47Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:42:49.8535243Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/a3d632b5-e526-4a99-a5bf-d413f757d1b5?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:43:18 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9c63d5f1-fd8c-4398-93e5-72f3de146dcc" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5bac8cfb-796c-4547-8c29-fe849c291ed4", - "Content-Length": "631", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:43:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "107", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "a3d632b5-e526-4a99-a5bf-d413f757d1b5", - "lastUpdatedDateTime": "2023-04-05T18:42:49Z", - "createdDateTime": "2023-04-05T18:42:47Z", - "expirationDateTime": "2023-04-06T18:42:47Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "KeyPhraseExtractionLROResults", - "lastUpdateDateTime": "2023-04-05T18:42:49.8535243Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "wonderful trip", - "Seattle" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "Microsoft employee", - "awesome API", - "ssn" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeLinkedEntityActions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeLinkedEntityActions[1].json deleted file mode 100644 index 3ae035d8031b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeLinkedEntityActions[1].json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "299", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:43:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "aa22e961-0a94-4ae2-8e82-d6f9e28ca20e" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week.", - "language": "en" - }, - { - "id": "1", - "text": "I work at Microsoft.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "EntityLinking", - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "74f7c981-d4fa-4a86-846f-2e0bb1f5430e", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:43:17 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/31d0393c-e7cd-439a-aff0-db5af3581fe6?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "263", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/31d0393c-e7cd-439a-aff0-db5af3581fe6?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:43:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "db9943c8-5373-4ad9-92fc-bddfa8dac7b7" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "47d0bfdd-7c20-4b42-b999-a3c4f1bb3246", - "Content-Length": "305", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:43:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "31d0393c-e7cd-439a-aff0-db5af3581fe6", - "lastUpdatedDateTime": "2023-04-05T18:43:18Z", - "createdDateTime": "2023-04-05T18:43:18Z", - "expirationDateTime": "2023-04-06T18:43:18Z", - "status": "notStarted", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/31d0393c-e7cd-439a-aff0-db5af3581fe6?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:43:49 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "cc5e2b2a-efb6-4327-a452-2ba8f6d3f265" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ebd0ee22-f432-4773-a373-129a8adbffb7", - "Content-Length": "993", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:43:48 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "82", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "31d0393c-e7cd-439a-aff0-db5af3581fe6", - "lastUpdatedDateTime": "2023-04-05T18:43:21Z", - "createdDateTime": "2023-04-05T18:43:18Z", - "expirationDateTime": "2023-04-06T18:43:18Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:43:21.8877955Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/31d0393c-e7cd-439a-aff0-db5af3581fe6?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:43:49 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8d2d750c-c406-4cae-b85d-fd5c70aa3a98" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "efd559ed-b5c9-4034-9835-77958a4c520b", - "Content-Length": "993", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:43:49 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "60", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "31d0393c-e7cd-439a-aff0-db5af3581fe6", - "lastUpdatedDateTime": "2023-04-05T18:43:21Z", - "createdDateTime": "2023-04-05T18:43:18Z", - "expirationDateTime": "2023-04-06T18:43:18Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "EntityLinkingLROResults", - "lastUpdateDateTime": "2023-04-05T18:43:21.8877955Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzePiiEntityRecognitionWithCategoriesFilters[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzePiiEntityRecognitionWithCategoriesFilters[1].json deleted file mode 100644 index 61d16d5d1664..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzePiiEntityRecognitionWithCategoriesFilters[1].json +++ /dev/null @@ -1,258 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "443", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:47:57 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "72c03a15-f27e-4709-91fe-893a70e72c70" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "tasks": [ - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "piiCategories": [ - "USSocialSecurityNumber", - "ABARoutingNumber" - ], - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "0685c1dc-2544-4b8e-bdfb-5f2123eb5f00", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:47:56 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/a0cd5443-e2a0-4204-a86e-c29382ff5f18?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "327", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/a0cd5443-e2a0-4204-a86e-c29382ff5f18?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:47:57 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2fcf7e39-d3dd-4ce7-9af6-171c903cfa8d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3cbbed62-f726-49ab-9c41-330cae1a0ce0", - "Content-Length": "305", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:47:56 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "a0cd5443-e2a0-4204-a86e-c29382ff5f18", - "lastUpdatedDateTime": "2023-04-05T18:47:57Z", - "createdDateTime": "2023-04-05T18:47:56Z", - "expirationDateTime": "2023-04-06T18:47:56Z", - "status": "notStarted", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/a0cd5443-e2a0-4204-a86e-c29382ff5f18?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:48:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e79cc048-8d37-4d0f-8ff5-19c8e8f19d4b" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d95338a7-ff0d-46f1-8038-161824cb9272", - "Content-Length": "971", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:48:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "157", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "a0cd5443-e2a0-4204-a86e-c29382ff5f18", - "lastUpdatedDateTime": "2023-04-05T18:47:59Z", - "createdDateTime": "2023-04-05T18:47:56Z", - "expirationDateTime": "2023-04-06T18:47:56Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:47:59.2551532Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/a0cd5443-e2a0-4204-a86e-c29382ff5f18?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:48:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "30e0b702-461a-4098-a2e6-32e9b84c943c" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e63542e2-3063-431e-84a0-c5f0d6da32fa", - "Content-Length": "971", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:48:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "69", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "a0cd5443-e2a0-4204-a86e-c29382ff5f18", - "lastUpdatedDateTime": "2023-04-05T18:47:59Z", - "createdDateTime": "2023-04-05T18:47:56Z", - "expirationDateTime": "2023-04-06T18:47:56Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:47:59.2551532Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzePiiEntityRecognitionWithDomainFilters[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzePiiEntityRecognitionWithDomainFilters[1].json deleted file mode 100644 index ffbeee89a532..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzePiiEntityRecognitionWithDomainFilters[1].json +++ /dev/null @@ -1,297 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "396", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:35:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "cf68046c-c0dd-47cf-b13c-80d31a32d0c9" - }, - "RequestBody": { - "displayName": "Test1", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "tasks": [ - { - "kind": "PiiEntityRecognition", - "parameters": { - "loggingOptOut": true, - "domain": "PHI", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "07b53585-c74a-4069-89f8-32143bd39a70", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:35:02 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/3be43c5e-8c4a-411c-a558-d2eb33c85d99?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "311", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/3be43c5e-8c4a-411c-a558-d2eb33c85d99?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:35:02 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "de3c89d0-4be4-4f55-baf9-398ecdcb4260" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a8ca949a-850a-417a-b89f-10a3c93d8012", - "Content-Length": "305", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:35:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "3be43c5e-8c4a-411c-a558-d2eb33c85d99", - "lastUpdatedDateTime": "2023-04-05T18:35:02Z", - "createdDateTime": "2023-04-05T18:35:02Z", - "expirationDateTime": "2023-04-06T18:35:02Z", - "status": "notStarted", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/3be43c5e-8c4a-411c-a558-d2eb33c85d99?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:35:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "689aecb6-6f02-45d0-bebc-b599293439d9" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "72d99caa-07ba-4dce-b2cc-33a99f9d8650", - "Content-Length": "1256", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:35:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "86", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "3be43c5e-8c4a-411c-a558-d2eb33c85d99", - "lastUpdatedDateTime": "2023-04-05T18:35:05Z", - "createdDateTime": "2023-04-05T18:35:02Z", - "expirationDateTime": "2023-04-06T18:35:02Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:35:05.4716585Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/3be43c5e-8c4a-411c-a558-d2eb33c85d99?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:35:32 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "330afd6d-8bb9-482c-95c3-6437e506fa4f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "10b91a1b-1f3c-40b4-971e-b8163f696632", - "Content-Length": "1256", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:35:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "67", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "3be43c5e-8c4a-411c-a558-d2eb33c85d99", - "lastUpdatedDateTime": "2023-04-05T18:35:05Z", - "createdDateTime": "2023-04-05T18:35:02Z", - "expirationDateTime": "2023-04-06T18:35:02Z", - "status": "succeeded", - "errors": [], - "displayName": "Test1", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "PiiEntityRecognitionLROResults", - "lastUpdateDateTime": "2023-04-05T18:35:05.4716585Z", - "status": "succeeded", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentAction[1].json deleted file mode 100644 index 3ba680589dca..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentAction[1].json +++ /dev/null @@ -1,333 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "373", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:39:43 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "56a5b3e1-2987-483c-88f7-68fed89ae149" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi.", - "language": "en" - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "SentimentAnalysis", - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "1314531a-a7be-4295-ad9f-f70655e4a85a", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:39:42 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/450c70c2-3052-498f-9af5-a9aa31491971?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "214", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/450c70c2-3052-498f-9af5-a9aa31491971?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:39:43 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "84c7b6bf-e71c-4184-bb61-6f1c170cc3e7" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b42615aa-0d2b-4a29-bc29-f8442c997242", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:39:42 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "450c70c2-3052-498f-9af5-a9aa31491971", - "lastUpdatedDateTime": "2023-04-05T18:39:43Z", - "createdDateTime": "2023-04-05T18:39:42Z", - "expirationDateTime": "2023-04-06T18:39:42Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/450c70c2-3052-498f-9af5-a9aa31491971?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b4708c57-92b8-47c6-8fe7-3dbdc31a6043" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a58e4f07-7f03-494f-9d20-5dbafcb010bc", - "Content-Length": "1337", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:40:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "80", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "450c70c2-3052-498f-9af5-a9aa31491971", - "lastUpdatedDateTime": "2023-04-05T18:39:45Z", - "createdDateTime": "2023-04-05T18:39:42Z", - "expirationDateTime": "2023-04-06T18:39:42Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:39:45.0674573Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/450c70c2-3052-498f-9af5-a9aa31491971?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e1da94de-f269-48d8-9b43-a915ac4b8e4d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b49699d9-1ac1-4c6f-b648-22d32b4eb1ff", - "Content-Length": "1337", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "64", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "450c70c2-3052-498f-9af5-a9aa31491971", - "lastUpdatedDateTime": "2023-04-05T18:39:45Z", - "createdDateTime": "2023-04-05T18:39:42Z", - "expirationDateTime": "2023-04-06T18:39:42Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "SentimentAnalysisLROResults", - "lastUpdateDateTime": "2023-04-05T18:39:45.0674573Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentBatchTooManyDocuments[1].json deleted file mode 100644 index aa4286ecbd24..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentBatchTooManyDocuments[1].json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "935", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:34:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c65155bf-9282-461a-a950-dd261dfd691e" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "d85890d2-dc94-4466-b891-ab83be9e9cf6", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:33:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 10 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentDiacriticsNfc[1].json deleted file mode 100644 index bdf2f08bc7c5..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentDiacriticsNfc[1].json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "200", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7ceca2fb-591c-4ac8-981a-5ffbcf598249" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o The hotel was unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2f007fcf-d81f-4e9b-95a7-499a814ca00c", - "Content-Length": "745", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "15", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 26, - "text": "a\u00F1o The hotel was unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.1, - "negative": 0.9 - }, - "offset": 8, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.1, - "negative": 0.9 - }, - "offset": 18, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentDuplicateIdInput[1].json deleted file mode 100644 index 1863bdb496ed..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentDuplicateIdInput[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "348", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "522fd0f2-9f7a-4cee-abfc-2ab276c19cc0" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "162cb5df-1e1a-4e81-ba8d-25cd5b905ffd", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentEmptyIdInput[1].json deleted file mode 100644 index 71370b32ae3e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentEmptyIdInput[1].json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "217", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7b51e259-32a4-4d47-93b8-ba0ab0235666" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "1e5fc329-d230-421b-83f9-2b66dfd7e93f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining[1].json deleted file mode 100644 index afc5c68a4c1d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining[1].json +++ /dev/null @@ -1,282 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f75e749c-c0ec-4f5c-8a09-735a03cf8cc1" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8ee2d6fa-87aa-48e6-a15b-953be78e5b15", - "Content-Length": "2872", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "52", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. ", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 27, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 19, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 40, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 50, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 59, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining[1].json deleted file mode 100644 index 5afc720adf3c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining[1].json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:34:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ab909bd5-e9d5-4bfe-ac46-f5674a6267aa" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cb93be22-c389-493e-b16b-7042a2db30e2", - "Content-Length": "3096", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:33:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "71", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. ", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 27, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 19, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 40, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 50, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 59, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining[1].json deleted file mode 100644 index fbdbe8da7578..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining[1].json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fc26dd91-4c96-42c4-a1f8-f608afc670bb" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6ede0374-0de0-4203-9fc0-3726a021d3cd", - "Content-Length": "1203", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "23", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatistics[1].json deleted file mode 100644 index 74b68b5d9be6..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "11ea44bc-4678-4337-9457-950878a2fdc0" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "25b08b19-7609-42e3-b3a1-06b7d0270f26", - "Content-Length": "1203", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:45:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "26", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions[1].json deleted file mode 100644 index 8b20246543f9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions[1].json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "321aff5a-d6bf-4572-b280-f443c297da8d" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8421994e-7bc1-4661-8fab-3cc3e4e93ef7", - "Content-Length": "979", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "26", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputWithNullRequestOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputWithNullRequestOptions[1].json deleted file mode 100644 index 41fb63a465be..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchInputWithNullRequestOptions[1].json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:34:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4d948073-2699-4140-96fb-d9225eeff775" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7a117134-9001-4418-b34d-240dbd928758", - "Content-Length": "979", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:34:30 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "29", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchStringInput[1].json deleted file mode 100644 index 1b0323a85341..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForBatchStringInput[1].json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7cea14c9-b579-4c23-bfef-89d93d09f276" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "06e56729-047f-4a39-b0ed-dbfaaf4d561b", - "Content-Length": "979", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "42", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForEmptyText[1].json deleted file mode 100644 index e73e245b2fcd..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForEmptyText[1].json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "174", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0ddb72d5-b624-47ca-acc6-211309d7210a" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "236a7662-f67d-49c1-9c44-7e9c54305c25", - "Content-Length": "264", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "3", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining[1].json deleted file mode 100644 index 0c49305111bc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining[1].json +++ /dev/null @@ -1,282 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4010845b-de4d-45fc-b474-4bebfe0fa47f" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "65e1fb8d-6d01-4770-ae7d-ebf0767b4840", - "Content-Length": "2872", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "37", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. ", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 27, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 19, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 40, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 50, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 59, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining[1].json deleted file mode 100644 index c3a282040d37..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining[1].json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7bea54ef-258b-4e96-9622-1723a0215357" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "468c3e06-6e01-417c-bc25-859a29874c0f", - "Content-Length": "3096", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "34", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. ", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 27, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 19, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 40, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/1/sentences/1/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 50, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 59, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringShowStatisticsExcludeOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringShowStatisticsExcludeOpinionMining[1].json deleted file mode 100644 index 3ab4369cf0ec..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringShowStatisticsExcludeOpinionMining[1].json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "329", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "faa1a78d-dace-43ba-a4dd-3e965de9e526" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3bc94542-5d7b-4a03-9486-1d1e647f13d3", - "Content-Length": "1203", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "31", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringWithLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringWithLanguageHint[1].json deleted file mode 100644 index 7fe836e2907f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForListStringWithLanguageHint[1].json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "361", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "705141f0-aa66-4a8c-bf3d-77fb41d0c426" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi.", - "language": "en" - }, - { - "id": "1", - "text": "The restaurant had amazing gnocchi. The hotel was dark and unclean.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1d88381e-4886-45e5-8209-095ddf92377f", - "Content-Length": "979", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "27", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - }, - { - "id": "1", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 0, - "length": 36, - "text": "The restaurant had amazing gnocchi. " - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 36, - "length": 31, - "text": "The hotel was dark and unclean." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInputWithDefaultLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInputWithDefaultLanguageHint[1].json deleted file mode 100644 index fff4fed95548..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInputWithDefaultLanguageHint[1].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "241", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "36bc42d2-ef85-4bad-8ebd-454e7f3d7892" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4d8a1725-cbd2-4dd9-9e2c-cf775782e852", - "Content-Length": "540", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "21", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInputWithOpinionMining[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInputWithOpinionMining[1].json deleted file mode 100644 index 831c480905a6..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInputWithOpinionMining[1].json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "256", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "66ace203-0426-4f74-a662-146d202eb74d" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0723717f-7240-4769-86ff-3f5127ee9ae7", - "Content-Length": "1486", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "41", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. ", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 4, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - }, - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/1" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 14, - "length": 4, - "text": "dark", - "isNegated": false - }, - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "negative": 1.0 - }, - "offset": 23, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi.", - "targets": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 59, - "length": 7, - "text": "gnocchi", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/1/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "positive", - "confidenceScores": { - "positive": 1.0, - "negative": 0.0 - }, - "offset": 51, - "length": 7, - "text": "amazing", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInput[1].json deleted file mode 100644 index a4643e092dbc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentForTextInput[1].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "241", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e2d363cd-6d92-4504-bac8-6de43a72918c" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The hotel was dark and unclean. The restaurant had amazing gnocchi." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "922d7aea-c39c-43a5-b0c1-912849958058", - "Content-Length": "540", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "24", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "mixed", - "confidenceScores": { - "positive": 0.5, - "neutral": 0.0, - "negative": 0.5 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 32, - "text": "The hotel was dark and unclean. " - }, - { - "sentiment": "positive", - "confidenceScores": { - "positive": 0.99, - "neutral": 0.0, - "negative": 0.0 - }, - "offset": 32, - "length": 35, - "text": "The restaurant had amazing gnocchi." - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentKoreanNfc[1].json deleted file mode 100644 index fea9bdde6ead..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentKoreanNfc[1].json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "24a2b306-a5a1-465f-a2aa-4c9c8c5ac5d2" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 The hotel was unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6f16848f-86b8-4ae7-b883-b6709082e490", - "Content-Length": "751", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:30:51 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "20", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 25, - "text": "\uC544\uAC00 The hotel was unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.01, - "negative": 0.99 - }, - "offset": 7, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.01, - "negative": 0.99 - }, - "offset": 17, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentKoreanNfd[1].json deleted file mode 100644 index 2582676336cb..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.analyzeSentimentKoreanNfd[1].json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "202", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c5e7943e-031b-47d2-9754-588a675ed6b4" - }, - "RequestBody": { - "kind": "SentimentAnalysis", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 The hotel was unclean." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "opinionMining": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4ecaca24-b720-4507-a5d3-170d53b8e12c", - "Content-Length": "751", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.Sentiment=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:30:51 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "17", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "id": "0", - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "sentences": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.0, - "neutral": 0.0, - "negative": 1.0 - }, - "offset": 0, - "length": 25, - "text": "\uC544\uAC00 The hotel was unclean.", - "targets": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.01, - "negative": 0.99 - }, - "offset": 7, - "length": 5, - "text": "hotel", - "relations": [ - { - "relationType": "assessment", - "ref": "#/documents/0/sentences/0/assessments/0" - } - ] - } - ], - "assessments": [ - { - "sentiment": "negative", - "confidenceScores": { - "positive": 0.01, - "negative": 0.99 - }, - "offset": 17, - "length": 7, - "text": "unclean", - "isNegated": false - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-11-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryDuplicateIdInput[1].json deleted file mode 100644 index 5e9cc77b27b7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryDuplicateIdInput[1].json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "345", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9f86fb6e-77cd-448f-9144-37137bfc3c3e" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "parameters": { - "stringIndexType": "Utf16CodeUnit", - "loggingOptOut": false - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "693934b5-de44-4f0d-8c72-d99b5b39261e", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027AbstractiveSummarization\u0027 failed with validation error: Document abstractive summarization is not supported in the region West US 2. The supported regions are North Europe, East US, UK South." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027AbstractiveSummarization\u0027 failed with validation errors: [\u0027Invalid Request.\u0027]" - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryMaxOverload[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryMaxOverload[1].json deleted file mode 100644 index 3f741c4ee989..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryMaxOverload[1].json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1822", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:57:46 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a3931c0a-cb44-4fd8-9f37-a291a6f1ca46" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "parameters": { - "sentenceCount": 4, - "stringIndexType": "Utf16CodeUnit", - "loggingOptOut": false - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "5f9fc6e3-4cc8-471c-905a-1eeca1199a47", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:57:46 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/10e2da04-47c2-41b7-b28c-3ff47e1ac8fa?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "225", - "x-ms-region": "East US" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/10e2da04-47c2-41b7-b28c-3ff47e1ac8fa?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:57:47 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "745df7fa-a9ff-491e-992d-4e9a28d58b43" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "baaed9b7-5443-4b3a-8ce3-ee08763164a2", - "Content-Length": "280", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:57:46 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "10e2da04-47c2-41b7-b28c-3ff47e1ac8fa", - "lastUpdatedDateTime": "2023-04-05T19:57:46Z", - "createdDateTime": "2023-04-05T19:57:46Z", - "expirationDateTime": "2023-04-06T19:57:46Z", - "status": "running", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/10e2da04-47c2-41b7-b28c-3ff47e1ac8fa?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:58:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f6e45e13-fe70-44ad-9362-5440d69380a1" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "06d0045f-2b65-4733-bd77-109c31930e7b", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:58:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "139", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "10e2da04-47c2-41b7-b28c-3ff47e1ac8fa", - "lastUpdatedDateTime": "2023-04-05T19:57:48Z", - "createdDateTime": "2023-04-05T19:57:46Z", - "expirationDateTime": "2023-04-06T19:57:46Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:57:48.7552341Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/10e2da04-47c2-41b7-b28c-3ff47e1ac8fa?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:58:17 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fc5ed950-5619-4c34-93b4-9341254dd86a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2372f142-f9f9-416a-914e-9e2559e1f800", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:58:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "10e2da04-47c2-41b7-b28c-3ff47e1ac8fa", - "lastUpdatedDateTime": "2023-04-05T19:57:48Z", - "createdDateTime": "2023-04-05T19:57:46Z", - "expirationDateTime": "2023-04-06T19:57:46Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:57:48.7552341Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryStringInput[1].json deleted file mode 100644 index c395b583b6ba..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginAbstractSummaryStringInput[1].json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1804", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 19:54:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "38c284b5-7cf6-452a-ba15-a497ced4750a" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "parameters": { - "stringIndexType": "Utf16CodeUnit", - "loggingOptOut": false - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "47bed56c-f69f-4ab8-9204-e01770eab5a4", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:54:51 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c4b228a2-ae70-43c9-b5ac-6a21b2d1c01e?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "208", - "x-ms-region": "East US" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c4b228a2-ae70-43c9-b5ac-6a21b2d1c01e?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:54:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a0caa0b9-3801-4102-aa29-d01afa367f85" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "eb77835e-2640-45e9-9213-f2fe99d40d2e", - "Content-Length": "280", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:54:51 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "c4b228a2-ae70-43c9-b5ac-6a21b2d1c01e", - "lastUpdatedDateTime": "2023-04-05T19:54:52Z", - "createdDateTime": "2023-04-05T19:54:52Z", - "expirationDateTime": "2023-04-06T19:54:52Z", - "status": "running", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c4b228a2-ae70-43c9-b5ac-6a21b2d1c01e?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:55:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8c672ad6-5b6f-4c76-b711-6c764e29d135" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6c6c02c9-01b4-4420-be78-e6b789de0e9f", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:55:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "34", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "c4b228a2-ae70-43c9-b5ac-6a21b2d1c01e", - "lastUpdatedDateTime": "2023-04-05T19:54:54Z", - "createdDateTime": "2023-04-05T19:54:52Z", - "expirationDateTime": "2023-04-06T19:54:52Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:54:54.4006438Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c4b228a2-ae70-43c9-b5ac-6a21b2d1c01e?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 19:55:23 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d3da25d8-44d4-4e86-bedd-d30f50c29f74" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "dd09994a-b929-4775-9e95-24310cb3e99c", - "Content-Length": "1450", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 19:55:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "33", - "x-ms-region": "East US" - }, - "ResponseBody": { - "jobId": "c4b228a2-ae70-43c9-b5ac-6a21b2d1c01e", - "lastUpdatedDateTime": "2023-04-05T19:54:54Z", - "createdDateTime": "2023-04-05T19:54:52Z", - "expirationDateTime": "2023-04-06T19:54:52Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T19:54:54.4006438Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft has been working to advance AI beyond existing techniques by taking a more holistic, human-centric approach to learning and understanding. The Chief Technology Officer of Azure AI Cognitive Services, who enjoys a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text, audio or visual sensory signals, and multilingual, has created XYZ-code, a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. Over the past five years, Microsoft has achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "contexts": [ - { - "offset": 0, - "length": 1627 - } - ] - } - ], - "id": "0", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummaryMaxSentenceCountInvalidRangeException[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummaryMaxSentenceCountInvalidRangeException[1].json deleted file mode 100644 index 2ff665267ddc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummaryMaxSentenceCountInvalidRangeException[1].json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1837", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "203d9f88-ac05-4fbb-a75c-fdde44230615" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 0, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "892c7fab-1583-4572-b5af-e3fee9928945", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation error: Job task parameter value \u00270\u0027 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max)." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation errors: [\u0027Invalid parameter in request\u0027]" - } - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1838", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "44cddbb3-0e36-4135-9dd7-0723d67256bb" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 21, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "24b81be9-ac1b-4497-a61e-1be93e529d57", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "details": [ - { - "code": "InvalidRequest", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation error: Job task parameter value \u002721\u0027 is not supported for sentenceCount parameter for job task type ExtractiveSummarization. Supported values 1 (min) to 20 (max)." - } - ], - "message": "Invalid Request.", - "innererror": { - "code": "InvalidParameterValue", - "message": "Job task: \u0027ExtractiveSummarization\u0027 failed with validation errors: [\u0027Invalid parameter in request\u0027]" - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummaryNonDefaultSentenceCount[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummaryNonDefaultSentenceCount[1].json deleted file mode 100644 index 0e36d2bf130c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummaryNonDefaultSentenceCount[1].json +++ /dev/null @@ -1,264 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1837", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b2d71f74-ad5e-4c2d-9675-d42c926abad6" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 5, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "2397486d-a68a-4242-ab78-376fb096ca2b", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/ba2d3212-c595-4d9a-8162-be862ba2656a?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "154", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ba2d3212-c595-4d9a-8162-be862ba2656a?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:44:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4879c6c5-a056-4f3c-aea3-f39b867a5678" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "67d8edbe-40ab-41bf-b062-e80b1a452b14", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ba2d3212-c595-4d9a-8162-be862ba2656a", - "lastUpdatedDateTime": "2023-04-05T18:44:51Z", - "createdDateTime": "2023-04-05T18:44:51Z", - "expirationDateTime": "2023-04-06T18:44:51Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ba2d3212-c595-4d9a-8162-be862ba2656a?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:45:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6c42195b-bf3c-45f0-9b36-c8303e2c9fd3" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "757f1dec-8539-494a-80ec-e19c3a10e31e", - "Content-Length": "1666", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "56", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ba2d3212-c595-4d9a-8162-be862ba2656a", - "lastUpdatedDateTime": "2023-04-05T18:44:52Z", - "createdDateTime": "2023-04-05T18:44:51Z", - "expirationDateTime": "2023-04-06T18:44:51Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:44:52.3856819Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/ba2d3212-c595-4d9a-8162-be862ba2656a?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:45:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "66317397-1be5-451d-9328-dc9e63595c2c" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f99a2fae-269e-4059-8914-98e7960c0c40", - "Content-Length": "1666", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "103", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "ba2d3212-c595-4d9a-8162-be862ba2656a", - "lastUpdatedDateTime": "2023-04-05T18:44:52Z", - "createdDateTime": "2023-04-05T18:44:51Z", - "expirationDateTime": "2023-04-06T18:44:51Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:44:52.3856819Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySentenceCountLessThanMaxCount[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySentenceCountLessThanMaxCount[1].json deleted file mode 100644 index 33181a87717d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySentenceCountLessThanMaxCount[1].json +++ /dev/null @@ -1,312 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1838", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "12ab97cd-b354-4aab-baac-7d5b4eb9e589" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 20, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "2cd51f74-4009-4f08-999d-88050c295cf9", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:30:20 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/32d347e4-1d09-4ba4-b06c-4c4217e12c00?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "244", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/32d347e4-1d09-4ba4-b06c-4c4217e12c00?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:30:21 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9013729d-c2d1-4827-86c3-f9483c9e44cd" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "91804150-98ee-41a9-92a1-344bb7a8428a", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "32d347e4-1d09-4ba4-b06c-4c4217e12c00", - "lastUpdatedDateTime": "2023-04-05T18:30:21Z", - "createdDateTime": "2023-04-05T18:30:20Z", - "expirationDateTime": "2023-04-06T18:30:20Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/32d347e4-1d09-4ba4-b06c-4c4217e12c00?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:30:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1486b9fd-5cdb-41b1-a390-f9a9a77bbafa" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4580f8cc-47e4-4865-8c16-35686eb278a3", - "Content-Length": "2629", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:50 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "207", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "32d347e4-1d09-4ba4-b06c-4c4217e12c00", - "lastUpdatedDateTime": "2023-04-05T18:30:21Z", - "createdDateTime": "2023-04-05T18:30:20Z", - "expirationDateTime": "2023-04-06T18:30:20Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:30:21.5433468Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality.", - "rankScore": 0.3, - "offset": 161, - "length": 162 - }, - { - "text": "In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z).", - "rankScore": 0.12, - "offset": 324, - "length": 192 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand.", - "rankScore": 0.0, - "offset": 1237, - "length": 241 - }, - { - "text": "I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "rankScore": 0.19, - "offset": 1479, - "length": 148 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/32d347e4-1d09-4ba4-b06c-4c4217e12c00?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:30:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0397e5b1-4942-4a9a-9828-187a0e6b148d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "396a28fb-dca3-4dac-abda-8e313eca53c4", - "Content-Length": "2629", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:50 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "175", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "32d347e4-1d09-4ba4-b06c-4c4217e12c00", - "lastUpdatedDateTime": "2023-04-05T18:30:21Z", - "createdDateTime": "2023-04-05T18:30:20Z", - "expirationDateTime": "2023-04-06T18:30:20Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:30:21.5433468Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality.", - "rankScore": 0.3, - "offset": 161, - "length": 162 - }, - { - "text": "In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z).", - "rankScore": 0.12, - "offset": 324, - "length": 192 - }, - { - "text": "At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better.", - "rankScore": 0.5, - "offset": 517, - "length": 203 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand.", - "rankScore": 0.0, - "offset": 1237, - "length": 241 - }, - { - "text": "I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "rankScore": 0.19, - "offset": 1479, - "length": 148 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySortedByOffset[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySortedByOffset[1].json deleted file mode 100644 index e351ca42fb3d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySortedByOffset[1].json +++ /dev/null @@ -1,253 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1855", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e4609548-d407-4545-983d-86284a88938a" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 4, - "sortBy": "Offset", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "8a8e277b-1840-435a-b255-7a30c94f0a33", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:36:03 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/b9acb644-1d13-4a37-9f2c-33704561190a?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "274", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b9acb644-1d13-4a37-9f2c-33704561190a?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:36:04 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ea9806a4-1136-410a-a4f8-469406ea6e2d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ac083da3-c908-4bbf-87eb-1146f806dbb5", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b9acb644-1d13-4a37-9f2c-33704561190a", - "lastUpdatedDateTime": "2023-04-05T18:36:03Z", - "createdDateTime": "2023-04-05T18:36:03Z", - "expirationDateTime": "2023-04-06T18:36:03Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b9acb644-1d13-4a37-9f2c-33704561190a?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9e603e9f-2eb6-4e69-aa4f-e2016df3272f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bb91ff66-2c30-47ce-9194-57733b200eb5", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "62", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b9acb644-1d13-4a37-9f2c-33704561190a", - "lastUpdatedDateTime": "2023-04-05T18:36:04Z", - "createdDateTime": "2023-04-05T18:36:03Z", - "expirationDateTime": "2023-04-06T18:36:03Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:04.4205176Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/b9acb644-1d13-4a37-9f2c-33704561190a?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "df639bb2-a0aa-4aa6-9eae-0b293c870d02" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "11f78fc0-d250-4673-a6ad-bd709e8794f5", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:33 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "144", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "b9acb644-1d13-4a37-9f2c-33704561190a", - "lastUpdatedDateTime": "2023-04-05T18:36:04Z", - "createdDateTime": "2023-04-05T18:36:03Z", - "expirationDateTime": "2023-04-06T18:36:03Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:36:04.4205176Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySortedByRankScore[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySortedByRankScore[1].json deleted file mode 100644 index 479c1380ad1e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.beginExtractSummarySortedByRankScore[1].json +++ /dev/null @@ -1,253 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1853", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:40:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "19470db0-ad7c-418f-80d6-589c2bb76c20" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there\u2019s magic\u2014what we call XYZ-code as illustrated in Figure 1\u2014a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multisensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "ExtractiveSummarization", - "parameters": { - "loggingOptOut": false, - "sentenceCount": 4, - "sortBy": "Rank", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "33ad9421-8765-4995-8b73-bd9e71eee17a", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/c071562d-0373-43f6-823d-3a313fb56de7?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "137", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c071562d-0373-43f6-823d-3a313fb56de7?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:40:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "89a2f82e-8d1f-4708-a333-656b51799eec" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9e50bb07-3230-443c-91c1-5ce29a864b7d", - "Content-Length": "280", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c071562d-0373-43f6-823d-3a313fb56de7", - "lastUpdatedDateTime": "2023-04-05T18:40:14Z", - "createdDateTime": "2023-04-05T18:40:13Z", - "expirationDateTime": "2023-04-06T18:40:13Z", - "status": "running", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c071562d-0373-43f6-823d-3a313fb56de7?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e6a1b3a8-1d1b-4a7e-8a20-17dc66037f8a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "68f1acbe-b0f1-4afe-8c40-52bd56398b73", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:40:43 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c071562d-0373-43f6-823d-3a313fb56de7", - "lastUpdatedDateTime": "2023-04-05T18:40:14Z", - "createdDateTime": "2023-04-05T18:40:13Z", - "expirationDateTime": "2023-04-06T18:40:13Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:40:14.5504781Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/c071562d-0373-43f6-823d-3a313fb56de7?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8e5daeec-ff95-45d9-961e-05d0681f9ed1" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2ae7f675-a4af-40e7-8d93-da61664c01fd", - "Content-Length": "1403", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:40:43 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "54", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "c071562d-0373-43f6-823d-3a313fb56de7", - "lastUpdatedDateTime": "2023-04-05T18:40:14Z", - "createdDateTime": "2023-04-05T18:40:13Z", - "expirationDateTime": "2023-04-06T18:40:13Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "ExtractiveSummarizationLROResults", - "lastUpdateDateTime": "2023-04-05T18:40:14.5504781Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "sentences": [ - { - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding.", - "rankScore": 1.0, - "offset": 0, - "length": 160 - }, - { - "text": "Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning.", - "rankScore": 0.79, - "offset": 1015, - "length": 221 - }, - { - "text": "The goal is to have pretrained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today.", - "rankScore": 0.54, - "offset": 856, - "length": 158 - }, - { - "text": "We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages.", - "rankScore": 0.51, - "offset": 721, - "length": 134 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-02-01-preview" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageDuplicateIdInput[1].json deleted file mode 100644 index cb6c3960e843..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageDuplicateIdInput[1].json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "229", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a9a2e1ea-ef16-4b50-9eed-c0f2c60e70d6" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - }, - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "6f61c81d-3269-489f-bba4-f0a62df4d7ff", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyCountryHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyCountryHint[1].json deleted file mode 100644 index a034996e5a0d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyCountryHint[1].json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "176", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6c145cd5-af63-459c-bcdd-885aa39bf75b" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "89b43622-53a2-4679-84c4-91d4ee5fb385", - "Content-Length": "205", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyIdInput[1].json deleted file mode 100644 index 6f19dbdad326..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyIdInput[1].json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "143", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:42:48 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "db26492b-29a7-4c2b-8df0-20b49b3fe524" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "d64a5a96-d0ec-4a23-a2a3-2e142fe360da", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:42:47 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyText[1].json deleted file mode 100644 index 5cc290d3f9e0..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageEmptyText[1].json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "118", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4bd4be50-757f-4970-9246-c74e67198aa0" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b53dfa10-2eb9-4412-83f5-4ce7a2251122", - "Content-Length": "264", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageInvalidCountryHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageInvalidCountryHint[1].json deleted file mode 100644 index 67fbc9bff571..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageInvalidCountryHint[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "178", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "db1de48f-6a49-49da-ab9a-b4d0e120536c" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f571bcf6-c7de-4f0f-8a5e-dfa1fd0d2dd6", - "Content-Length": "325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "3", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Country Hint.", - "innererror": { - "code": "InvalidCountryHint", - "message": "Country hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country code." - } - } - } - ], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageNoneCountryHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageNoneCountryHint[1].json deleted file mode 100644 index 26b920dd0fb3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguageNoneCountryHint[1].json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "180", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "aea44e7e-87a1-4102-8682-2cdd5ec05a5a" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "none" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "95499f00-b59d-4f21-ba8f-6faa408b15d2", - "Content-Length": "205", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchInputShowStatistics[1].json deleted file mode 100644 index f51a27768717..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchInputShowStatistics[1].json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "244", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8997fc81-4584-4d8a-a709-fe5646443948" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b422b309-b4e9-447f-844e-c447e1581388", - "Content-Length": "534", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "statistics": { - "charactersCount": 26, - "transactionsCount": 1 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "statistics": { - "charactersCount": 40, - "transactionsCount": 1 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchInput[1].json deleted file mode 100644 index f119dbfe4d9a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchInput[1].json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "244", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:48:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8f3015d7-066d-4004-8275-4383965ff250" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bfa755a8-bd3b-41ce-b8a8-ddba5435353e", - "Content-Length": "310", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:48:27 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchListCountryHintWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchListCountryHintWithOptions[1].json deleted file mode 100644 index 66c622318656..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchListCountryHintWithOptions[1].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "206", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1448fd7b-db28-49ee-b1f8-39ec2f017848" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "66079cd0-63be-417a-8826-6e7778b271ec", - "Content-Length": "534", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "statistics": { - "charactersCount": 26, - "transactionsCount": 1 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "statistics": { - "charactersCount": 40, - "transactionsCount": 1 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchListCountryHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchListCountryHint[1].json deleted file mode 100644 index e277e6d92c70..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchListCountryHint[1].json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "244", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:22 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "839d58f7-c495-4905-ba8c-11bf3a57dae6" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English", - "countryHint": "US" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol.", - "countryHint": "US" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a8460436-308d-4b2f-a6a8-0ff155cca160", - "Content-Length": "310", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:45:21 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchStringInput[1].json deleted file mode 100644 index 1560abf8282b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectLanguagesBatchStringInput[1].json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "206", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f592143c-3dad-42fb-9af3-18f9aa47c367" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - }, - { - "id": "1", - "text": "Este es un documento escrito en Espa\u00F1ol." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f17a1a09-fe02-4758-84fb-9cf94292ac92", - "Content-Length": "310", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - }, - { - "id": "1", - "detectedLanguage": { - "name": "Spanish", - "iso6391Name": "es", - "confidenceScore": 1.0 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectSingleTextLanguage[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectSingleTextLanguage[1].json deleted file mode 100644 index 8608d0cd2cd7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.detectSingleTextLanguage[1].json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "144", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8925d8af-afeb-40f5-81eb-1bd5ba8300bd" - }, - "RequestBody": { - "kind": "LanguageDetection", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "This is written in English" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bbcde65e-7f46-4f36-a6e5-a73bd225a3b7", - "Content-Length": "206", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.LanguageDetection=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "id": "0", - "detectedLanguage": { - "name": "English", - "iso6391Name": "en", - "confidenceScore": 0.99 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesBatchTooManyDocuments[1].json deleted file mode 100644 index 67733d2b2126..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesBatchTooManyDocuments[1].json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "881", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fdf87c9d-af4d-4d22-a7a0-3cc584585d63" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "c53fb94e-18c8-4ac1-aaf0-e15eab903057", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 10 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesDuplicateIdInput[1].json deleted file mode 100644 index 48ce2d13e85e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesDuplicateIdInput[1].json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "294", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e52135ae-284b-4736-a280-5cf7d8f72ae3" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "8030e8c5-0a6f-4631-b4bd-e101e35991f4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesEmptyIdInput[1].json deleted file mode 100644 index 229f91b39670..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesEmptyIdInput[1].json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "163", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "91f666c7-72e7-4faf-adb4-ad062dcd89f0" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "36901b5c-478b-400f-93ef-ea159851ff22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:51 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchInputShowStatistics[1].json deleted file mode 100644 index d145f807db84..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "211", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:33:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0e48e205-588f-4466-bd33-43a7e172af68" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love." - }, - { - "id": "1", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bf56f49f-2e14-4a70-bc94-a610b1819ef0", - "Content-Length": "442", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:33:27 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "29", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "statistics": { - "charactersCount": 49, - "transactionsCount": 1 - }, - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "statistics": { - "charactersCount": 21, - "transactionsCount": 1 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchInput[1].json deleted file mode 100644 index 6b81e6bb5f57..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchInput[1].json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "211", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "921521a0-e3c0-449d-b101-b5a26e6496cf" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love." - }, - { - "id": "1", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "795ce513-d2cb-485d-b9ee-0332d8b14798", - "Content-Length": "218", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "14", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchStringInput[1].json deleted file mode 100644 index 20c32c40e0e4..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForBatchStringInput[1].json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "211", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "11254115-54c9-4393-9eb4-91b5f4fff9c9" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love." - }, - { - "id": "1", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ef261847-96a2-4e78-8f6f-e989c1c8889a", - "Content-Length": "218", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForEmptyText[1].json deleted file mode 100644 index 58539d867e6d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForEmptyText[1].json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "120", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:34:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b08150f9-9df7-48e6-a072-02173e1136d1" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4ccba378-2c00-4c0e-8fe8-0945d25ed6b7", - "Content-Length": "266", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:33:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForListLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForListLanguageHint[1].json deleted file mode 100644 index 338e139551c1..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForListLanguageHint[1].json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "243", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a32cebee-64fc-452b-899a-b250a0b95b1d" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love.", - "language": "en" - }, - { - "id": "1", - "text": "Bonjour tout le monde", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c5a827f3-b8aa-4e46-95f9-3a6b2595dbdc", - "Content-Length": "218", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForListStringWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForListStringWithOptions[1].json deleted file mode 100644 index 8735839e2b91..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForListStringWithOptions[1].json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "211", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f05a73d3-454e-4e06-bc62-e216c3cb18d3" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Hello world. This is some input text that I love." - }, - { - "id": "1", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "19f85219-00f8-4fe0-83ff-92fc429b2fce", - "Content-Length": "442", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:38:09 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "13", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "keyPhrases": [ - "Hello world", - "input text" - ], - "statistics": { - "charactersCount": 49, - "transactionsCount": 1 - }, - "warnings": [] - }, - { - "id": "1", - "keyPhrases": [ - "monde" - ], - "statistics": { - "charactersCount": 21, - "transactionsCount": 1 - }, - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForTextInput[1].json deleted file mode 100644 index be127a5fb0b2..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.extractKeyPhrasesForTextInput[1].json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "141", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:35:33 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f49a58b8-a66d-4360-a3e0-9090b39f9fec" - }, - "RequestBody": { - "kind": "KeyPhraseExtraction", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Bonjour tout le monde" - } - ] - }, - "parameters": { - "loggingOptOut": false - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1af51724-59a6-4fbb-b1e7-51e78bacf323", - "Content-Length": "151", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.KeyPhraseExtraction=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:35:31 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "15", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "0", - "keyPhrases": [ - "monde" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareLroEmptyInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareLroEmptyInput[1].json deleted file mode 100644 index f721723386d8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareLroEmptyInput[1].json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareLroPagination[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareLroPagination[1].json deleted file mode 100644 index ff8fe9ac8481..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareLroPagination[1].json +++ /dev/null @@ -1,6258 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "1395", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c955894c-6be7-43d8-8be8-97b89eca93a5" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "1", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "2", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "3", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "4", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "5", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "6", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "7", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "8", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "9", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "0541799a-920e-4101-904e-626b6b0f74f6", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/34cb36b9-8dac-40d9-9974-a282b4a1c719?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "449", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/34cb36b9-8dac-40d9-9974-a282b4a1c719?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:38:11 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "5cc33871-36a5-4de0-a002-c19ebd61e8be" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "87e83b44-52a0-4223-8a1d-fe32ab5a6b96", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "34cb36b9-8dac-40d9-9974-a282b4a1c719", - "lastUpdatedDateTime": "2023-04-05T18:38:10Z", - "createdDateTime": "2023-04-05T18:38:10Z", - "expirationDateTime": "2023-04-06T18:38:10Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/34cb36b9-8dac-40d9-9974-a282b4a1c719?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:38:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "bd2b6ad4-b646-4768-842a-e787ad278668" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c57f2f90-fab7-4898-ba24-0e2356dbbdef", - "Content-Length": "31563", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:41 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "267", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "34cb36b9-8dac-40d9-9974-a282b4a1c719", - "lastUpdatedDateTime": "2023-04-05T18:38:14Z", - "createdDateTime": "2023-04-05T18:38:10Z", - "expirationDateTime": "2023-04-06T18:38:10Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:38:14.4798545Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 10, - "validDocumentsCount": 10, - "erroneousDocumentsCount": 0, - "transactionsCount": 10 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/1/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/1/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "2", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/2/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/2/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/2/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/2/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/3/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/3/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/3/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/3/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "4", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/4/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/4/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/4/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/4/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "5", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/5/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/5/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/5/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/5/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "6", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/6/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/6/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/6/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/6/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "7", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/7/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/7/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/7/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/7/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "8", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/8/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/8/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/8/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/8/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "9", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/9/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/9/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/9/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/9/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/34cb36b9-8dac-40d9-9974-a282b4a1c719?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:38:41 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "fbea4633-bc1d-4e53-8f33-3ca05bef7745" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f88143f9-2cfd-4a40-ae3c-fd1009735546", - "Content-Length": "31563", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:38:41 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "236", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "34cb36b9-8dac-40d9-9974-a282b4a1c719", - "lastUpdatedDateTime": "2023-04-05T18:38:14Z", - "createdDateTime": "2023-04-05T18:38:10Z", - "expirationDateTime": "2023-04-06T18:38:10Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:38:14.4798545Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 10, - "validDocumentsCount": 10, - "erroneousDocumentsCount": 0, - "transactionsCount": 10 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/1/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/1/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "2", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/2/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/2/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/2/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/2/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/3/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/3/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/3/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/3/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "4", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/4/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/4/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/4/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/4/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "5", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/5/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/5/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/5/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/5/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "6", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/6/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/6/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/6/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/6/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "7", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/7/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/7/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/7/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/7/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "8", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/8/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/8/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/8/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/8/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "9", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/9/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/9/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/9/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/9/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareMaxOverload[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareMaxOverload[1].json deleted file mode 100644 index 9dc6fc04321c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareMaxOverload[1].json +++ /dev/null @@ -1,1522 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "468", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:39:12 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "bb159e4b-2ebf-474f-8957-df43fe311b46" - }, - "RequestBody": { - "displayName": "operationName", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "1", - "text": "The patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent." - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "6d67d9e0-6857-4d98-8213-16f9ddde713c", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:39:12 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/6d12d411-3586-4009-9fd8-49e3dcaead42?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "271", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/6d12d411-3586-4009-9fd8-49e3dcaead42?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:39:13 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4f60a746-58dd-435f-8c9d-89d6a1a28ebb" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4e6a85d5-3445-4432-b0af-a258ebe89db3", - "Content-Length": "313", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:39:12 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "6d12d411-3586-4009-9fd8-49e3dcaead42", - "lastUpdatedDateTime": "2023-04-05T18:39:12Z", - "createdDateTime": "2023-04-05T18:39:12Z", - "expirationDateTime": "2023-04-06T18:39:12Z", - "status": "notStarted", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/6d12d411-3586-4009-9fd8-49e3dcaead42?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:39:43 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7df5efc9-8ad1-4fd8-a1d5-e83cc1054a5f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "98762cf0-05a5-4270-b910-a57612565099", - "Content-Length": "7430", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:39:42 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "72", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "6d12d411-3586-4009-9fd8-49e3dcaead42", - "lastUpdatedDateTime": "2023-04-05T18:39:14Z", - "createdDateTime": "2023-04-05T18:39:12Z", - "expirationDateTime": "2023-04-06T18:39:12Z", - "status": "succeeded", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:39:14.5168043Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 156, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/6d12d411-3586-4009-9fd8-49e3dcaead42?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:39:43 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e2d2f591-1696-4481-91ea-3ecc429a87a8" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "99142cdb-0d2e-468a-813b-ca52636eddd3", - "Content-Length": "7430", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:39:42 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "78", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "6d12d411-3586-4009-9fd8-49e3dcaead42", - "lastUpdatedDateTime": "2023-04-05T18:39:14Z", - "createdDateTime": "2023-04-05T18:39:12Z", - "expirationDateTime": "2023-04-06T18:39:12Z", - "status": "succeeded", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:39:14.5168043Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 156, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareStringInputWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareStringInputWithOptions[1].json deleted file mode 100644 index 4b1907ccd7dc..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareStringInputWithOptions[1].json +++ /dev/null @@ -1,3962 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "552", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "175e11d5-8d88-41f4-b01c-e8b2b3a330d5" - }, - "RequestBody": { - "displayName": "operationName", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months.", - "language": "en" - }, - { - "id": "1", - "text": "The patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "fhirVersion": "4.0.1", - "documentType": "ProgressNote", - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "29ddb449-4b0e-48b0-ad87-d5c5889fd93f", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:44:20 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/0e294cde-3147-4cda-b0f6-6c60d6ef70f5?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "158", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/0e294cde-3147-4cda-b0f6-6c60d6ef70f5?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:44:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0fc17d9f-1cfd-47a5-8e86-ce4554283951" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "74cb407a-3b4c-42cb-ae63-7f5916850e3b", - "Content-Length": "313", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:44:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "0e294cde-3147-4cda-b0f6-6c60d6ef70f5", - "lastUpdatedDateTime": "2023-04-05T18:44:20Z", - "createdDateTime": "2023-04-05T18:44:20Z", - "expirationDateTime": "2023-04-06T18:44:20Z", - "status": "notStarted", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/0e294cde-3147-4cda-b0f6-6c60d6ef70f5?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e349f895-359d-4b9b-a6dd-37c3e6b08212" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b4ff3232-618b-408b-bbe5-a745c478878d", - "Content-Length": "26798", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:44:49 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "0e294cde-3147-4cda-b0f6-6c60d6ef70f5", - "lastUpdatedDateTime": "2023-04-05T18:44:23Z", - "createdDateTime": "2023-04-05T18:44:20Z", - "expirationDateTime": "2023-04-06T18:44:20Z", - "status": "succeeded", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:44:23.3557579Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "d1ebbcd8-7ee9-43d2-86dc-a3c63fde2bf1", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:d1ebbcd8-7ee9-43d2-86dc-a3c63fde2bf1" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/5bc1b45b-ab50-4d9d-8ecc-c9cabeded189", - "resource": { - "resourceType": "Composition", - "id": "5bc1b45b-ab50-4d9d-8ecc-c9cabeded189", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11506-3", - "display": "Progress note" - } - ], - "text": "Progress note" - }, - "subject": { - "reference": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/387eec2c-84e1-4b29-bee3-0edf03b443d3", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/f7effd15-ee99-40b6-94d3-8a9d69cbdec0", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Progress note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/f7effd15-ee99-40b6-94d3-8a9d69cbdec0", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient is a 54-year-old gentleman with a history of progressive angina over the past several months.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/408721a9-61ec-4a8e-8ff5-e103f1919017", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "resource": { - "resourceType": "Patient", - "id": "ba9439bb-8ddb-4b59-98ae-0be2445415db", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 29 - }, - { - "url": "REDACTED", - "valueInteger": 9 - } - ], - "url": "REDACTED" - } - ], - "gender": "male" - } - }, - { - "fullUrl": "Encounter/387eec2c-84e1-4b29-bee3-0edf03b443d3", - "resource": { - "resourceType": "Encounter", - "id": "387eec2c-84e1-4b29-bee3-0edf03b443d3", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/408721a9-61ec-4a8e-8ff5-e103f1919017", - "resource": { - "resourceType": "List", - "id": "408721a9-61ec-4a8e-8ff5-e103f1919017", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/387eec2c-84e1-4b29-bee3-0edf03b443d3", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/58a9cb94-3402-48e1-a4f6-ca632c54f971", - "type": "Observation", - "display": "angina" - } - } - ] - } - }, - { - "fullUrl": "Observation/58a9cb94-3402-48e1-a4f6-ca632c54f971", - "resource": { - "resourceType": "Observation", - "id": "58a9cb94-3402-48e1-a4f6-ca632c54f971", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 69 - }, - { - "url": "REDACTED", - "valueInteger": 6 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0002962", - "display": "Angina Pectoris" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000005330" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00047" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017852" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccs", - "code": "7.2.4.1" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000001165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "054" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1393-3407" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ANGINA PECTORIS" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U000113" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0001681" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-am", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-9-cm", - "code": "413" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc", - "code": "K74" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc2eeng", - "code": "K74" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU006338" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "K74001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U000244" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85005022" - }, - { - "system": "http://loinc.org", - "code": "LA14275-4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10002383" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "33215" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "142" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D000787" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mth", - "code": "053" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - }, - { - "system": "http://hl7.org/fhir/sid/mthicpc2eae", - "code": "K74" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E10110" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1710" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "040504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU009903" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/oms", - "code": "29.13" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_02040.07" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "02530" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/qmr", - "code": "Q0300326" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "G33.." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcdae", - "code": "Ua1eH" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-71500" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "D3-12000" - }, - { - "system": "http://snomed.info/sct", - "code": "194828000" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0422" - } - ], - "text": "angina" - }, - "subject": { - "reference": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/387eec2c-84e1-4b29-bee3-0edf03b443d3", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 85 - }, - { - "url": "REDACTED", - "valueInteger": 19 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 1, - "durationUnit": "mo" - }, - "code": { - "text": "past several months" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 57 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "text": "progressive" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/f7effd15-ee99-40b6-94d3-8a9d69cbdec0", - "resource": { - "resourceType": "Practitioner", - "id": "f7effd15-ee99-40b6-94d3-8a9d69cbdec0", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - }, - { - "id": "1", - "statistics": { - "charactersCount": 156, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "27baba3f-3915-4433-96fb-b5dd9b1166aa", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:27baba3f-3915-4433-96fb-b5dd9b1166aa" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/4d584f01-e54b-4798-a5c7-c64a3bba4791", - "resource": { - "resourceType": "Composition", - "id": "4d584f01-e54b-4798-a5c7-c64a3bba4791", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11506-3", - "display": "Progress note" - } - ], - "text": "Progress note" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/522b18c3-820e-49e0-8c65-867a26aa0b5f", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Progress note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/522b18c3-820e-49e0-8c65-867a26aa0b5f", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/d90905fd-af74-47b2-b4f2-21ffa23c1b37", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "resource": { - "resourceType": "Patient", - "id": "f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "language": "en", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "resource": { - "resourceType": "Encounter", - "id": "281f6f53-3780-45b4-8c61-4037ef561a01", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/d90905fd-af74-47b2-b4f2-21ffa23c1b37", - "resource": { - "resourceType": "List", - "id": "d90905fd-af74-47b2-b4f2-21ffa23c1b37", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/c4548ca5-041f-4d99-98b2-cda6afc59ab2", - "type": "Observation", - "display": "ST depressions in the anterior lateral leads" - } - }, - { - "item": { - "reference": "Observation/18fcb007-9863-4cb6-bb98-6a43bce929a5", - "type": "Observation", - "display": "fatigue" - } - }, - { - "item": { - "reference": "Observation/739ae616-6324-483b-928c-7de151e0ddf6", - "type": "Observation", - "display": "wrist pain" - } - }, - { - "item": { - "reference": "Observation/3585bb8f-27a3-4d0f-8957-31a5b73016f5", - "type": "Observation", - "display": "anginal equivalent" - } - } - ] - } - }, - { - "fullUrl": "Observation/c4548ca5-041f-4d99-98b2-cda6afc59ab2", - "resource": { - "resourceType": "Observation", - "id": "c4548ca5-041f-4d99-98b2-cda6afc59ab2", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 46 - }, - { - "url": "REDACTED", - "valueInteger": 44 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "text": "ST depressions in the anterior lateral leads" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 21 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 6, - "durationUnit": "min" - }, - "code": { - "text": "six minutes" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 38 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "text": "minimal" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/18fcb007-9863-4cb6-bb98-6a43bce929a5", - "resource": { - "resourceType": "Observation", - "id": "18fcb007-9863-4cb6-bb98-6a43bce929a5", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 108 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0015672", - "display": "Fatigue" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/air", - "code": "FATIG" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000001768" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccc", - "code": "A01.4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1014729" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000004914" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "298" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cpm", - "code": "65221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1385-2059" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ASTHENIA" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U001451" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0012378" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "R53.83" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icnp", - "code": "10000695" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU080142" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "A04004" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U001739" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85047465" - }, - { - "system": "http://loinc.org", - "code": "MTHU013358" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10016256" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "273174" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "5324" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D005221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "780.79" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nanda-i", - "code": "00742" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cdisc", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E11098" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1849" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000321374" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cadsr", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "121028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU010062" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_00010.03" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000041390" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "19400" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "1682." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-01610" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-01360" - }, - { - "system": "http://snomed.info/sct", - "code": "84229001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0724" - } - ], - "text": "fatigue" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/739ae616-6324-483b-928c-7de151e0ddf6", - "resource": { - "resourceType": "Observation", - "id": "739ae616-6324-483b-928c-7de151e0ddf6", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 120 - }, - { - "url": "REDACTED", - "valueInteger": 10 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0221785", - "display": "Pain in wrist" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1016217" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000021489" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "U000624" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U004491" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0030836" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "M25.53" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU060847" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "L11002" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10048692" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "939" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU016462" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "N094F" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-176A0" - }, - { - "system": "http://snomed.info/sct", - "code": "56608008" - } - ], - "text": "wrist pain" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/3585bb8f-27a3-4d0f-8957-31a5b73016f5", - "resource": { - "resourceType": "Observation", - "id": "3585bb8f-27a3-4d0f-8957-31a5b73016f5", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 137 - }, - { - "url": "REDACTED", - "valueInteger": 18 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0741034", - "display": "Anginal equivalent" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017783" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000047213" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.8" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10076419" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - } - ], - "text": "anginal equivalent" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/522b18c3-820e-49e0-8c65-867a26aa0b5f", - "resource": { - "resourceType": "Practitioner", - "id": "522b18c3-820e-49e0-8c65-867a26aa0b5f", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/0e294cde-3147-4cda-b0f6-6c60d6ef70f5?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "069726d3-9439-44a2-8a54-69459d624850" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "41808081-5022-4a91-bdb1-e3c3d37dce0e", - "Content-Length": "26798", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "212", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "0e294cde-3147-4cda-b0f6-6c60d6ef70f5", - "lastUpdatedDateTime": "2023-04-05T18:44:23Z", - "createdDateTime": "2023-04-05T18:44:20Z", - "expirationDateTime": "2023-04-06T18:44:20Z", - "status": "succeeded", - "errors": [], - "displayName": "operationName", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:44:23.3557579Z", - "status": "succeeded", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 105, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "d1ebbcd8-7ee9-43d2-86dc-a3c63fde2bf1", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:d1ebbcd8-7ee9-43d2-86dc-a3c63fde2bf1" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/5bc1b45b-ab50-4d9d-8ecc-c9cabeded189", - "resource": { - "resourceType": "Composition", - "id": "5bc1b45b-ab50-4d9d-8ecc-c9cabeded189", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11506-3", - "display": "Progress note" - } - ], - "text": "Progress note" - }, - "subject": { - "reference": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/387eec2c-84e1-4b29-bee3-0edf03b443d3", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/f7effd15-ee99-40b6-94d3-8a9d69cbdec0", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Progress note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/f7effd15-ee99-40b6-94d3-8a9d69cbdec0", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient is a 54-year-old gentleman with a history of progressive angina over the past several months.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/408721a9-61ec-4a8e-8ff5-e103f1919017", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "resource": { - "resourceType": "Patient", - "id": "ba9439bb-8ddb-4b59-98ae-0be2445415db", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 29 - }, - { - "url": "REDACTED", - "valueInteger": 9 - } - ], - "url": "REDACTED" - } - ], - "gender": "male" - } - }, - { - "fullUrl": "Encounter/387eec2c-84e1-4b29-bee3-0edf03b443d3", - "resource": { - "resourceType": "Encounter", - "id": "387eec2c-84e1-4b29-bee3-0edf03b443d3", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/408721a9-61ec-4a8e-8ff5-e103f1919017", - "resource": { - "resourceType": "List", - "id": "408721a9-61ec-4a8e-8ff5-e103f1919017", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/387eec2c-84e1-4b29-bee3-0edf03b443d3", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/58a9cb94-3402-48e1-a4f6-ca632c54f971", - "type": "Observation", - "display": "angina" - } - } - ] - } - }, - { - "fullUrl": "Observation/58a9cb94-3402-48e1-a4f6-ca632c54f971", - "resource": { - "resourceType": "Observation", - "id": "58a9cb94-3402-48e1-a4f6-ca632c54f971", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 69 - }, - { - "url": "REDACTED", - "valueInteger": 6 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0002962", - "display": "Angina Pectoris" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000005330" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00047" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017852" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccs", - "code": "7.2.4.1" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000001165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "054" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1393-3407" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ANGINA PECTORIS" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U000113" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0001681" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-am", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.9" - }, - { - "system": "http://hl7.org/fhir/sid/icd-9-cm", - "code": "413" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc", - "code": "K74" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icpc2eeng", - "code": "K74" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU006338" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "K74001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U000244" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85005022" - }, - { - "system": "http://loinc.org", - "code": "LA14275-4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10002383" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "33215" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "142" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D000787" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mth", - "code": "053" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - }, - { - "system": "http://hl7.org/fhir/sid/mthicpc2eae", - "code": "K74" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E10110" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1710" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C51221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "040504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU009903" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/oms", - "code": "29.13" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_02040.07" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "02530" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/qmr", - "code": "Q0300326" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "G33.." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcdae", - "code": "Ua1eH" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-71500" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "D3-12000" - }, - { - "system": "http://snomed.info/sct", - "code": "194828000" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0422" - } - ], - "text": "angina" - }, - "subject": { - "reference": "Patient/ba9439bb-8ddb-4b59-98ae-0be2445415db", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/387eec2c-84e1-4b29-bee3-0edf03b443d3", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 85 - }, - { - "url": "REDACTED", - "valueInteger": 19 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 1, - "durationUnit": "mo" - }, - "code": { - "text": "past several months" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 57 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "text": "progressive" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/f7effd15-ee99-40b6-94d3-8a9d69cbdec0", - "resource": { - "resourceType": "Practitioner", - "id": "f7effd15-ee99-40b6-94d3-8a9d69cbdec0", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - }, - { - "id": "1", - "statistics": { - "charactersCount": 156, - "transactionsCount": 1 - }, - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "27baba3f-3915-4433-96fb-b5dd9b1166aa", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:27baba3f-3915-4433-96fb-b5dd9b1166aa" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/4d584f01-e54b-4798-a5c7-c64a3bba4791", - "resource": { - "resourceType": "Composition", - "id": "4d584f01-e54b-4798-a5c7-c64a3bba4791", - "language": "en", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "11506-3", - "display": "Progress note" - } - ], - "text": "Progress note" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "date": "0001-01-01T00:00:00\u002B00:00", - "author": [ - { - "reference": "Practitioner/522b18c3-820e-49e0-8c65-867a26aa0b5f", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Progress note", - "section": [ - { - "title": "(General)", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "(General)" - }, - "author": [ - { - "reference": "Practitioner/522b18c3-820e-49e0-8c65-867a26aa0b5f", - "type": "Practitioner", - "display": "Unknown" - } - ], - "text": { - "status": "additional", - "div": "\u003Cdiv\u003E\r\n\t\t\t\t\t\t\t\u003Ch1\u003E(General)\u003C/h1\u003E\r\n\t\t\t\t\t\t\t\u003Cp\u003EThe patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent.\u003C/p\u003E\r\n\t\t\t\t\t\u003C/div\u003E" - }, - "entry": [ - { - "reference": "List/d90905fd-af74-47b2-b4f2-21ffa23c1b37", - "type": "List", - "display": "(General)" - } - ] - } - ] - } - }, - { - "fullUrl": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "resource": { - "resourceType": "Patient", - "id": "f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "language": "en", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "resource": { - "resourceType": "Encounter", - "id": "281f6f53-3780-45b4-8c61-4037ef561a01", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - } - } - }, - { - "fullUrl": "List/d90905fd-af74-47b2-b4f2-21ffa23c1b37", - "resource": { - "resourceType": "List", - "id": "d90905fd-af74-47b2-b4f2-21ffa23c1b37", - "status": "current", - "mode": "snapshot", - "title": "(General)", - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "Observation/c4548ca5-041f-4d99-98b2-cda6afc59ab2", - "type": "Observation", - "display": "ST depressions in the anterior lateral leads" - } - }, - { - "item": { - "reference": "Observation/18fcb007-9863-4cb6-bb98-6a43bce929a5", - "type": "Observation", - "display": "fatigue" - } - }, - { - "item": { - "reference": "Observation/739ae616-6324-483b-928c-7de151e0ddf6", - "type": "Observation", - "display": "wrist pain" - } - }, - { - "item": { - "reference": "Observation/3585bb8f-27a3-4d0f-8957-31a5b73016f5", - "type": "Observation", - "display": "anginal equivalent" - } - } - ] - } - }, - { - "fullUrl": "Observation/c4548ca5-041f-4d99-98b2-cda6afc59ab2", - "resource": { - "resourceType": "Observation", - "id": "c4548ca5-041f-4d99-98b2-cda6afc59ab2", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 46 - }, - { - "url": "REDACTED", - "valueInteger": 44 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "text": "ST depressions in the anterior lateral leads" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "effectiveTiming": { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 21 - }, - { - "url": "REDACTED", - "valueInteger": 11 - } - ], - "url": "REDACTED" - } - ], - "repeat": { - "duration": 6, - "durationUnit": "min" - }, - "code": { - "text": "six minutes" - } - }, - "interpretation": [ - { - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 38 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "text": "minimal" - }, - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/18fcb007-9863-4cb6-bb98-6a43bce929a5", - "resource": { - "resourceType": "Observation", - "id": "18fcb007-9863-4cb6-bb98-6a43bce929a5", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 108 - }, - { - "url": "REDACTED", - "valueInteger": 7 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0015672", - "display": "Fatigue" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/air", - "code": "FATIG" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000001768" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccc", - "code": "A01.4" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1014729" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000004914" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "298" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cpm", - "code": "65221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "1385-2059" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/cst", - "code": "ASTHENIA" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U001451" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0012378" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "R53.83" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/icnp", - "code": "10000695" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU080142" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "A04004" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch", - "code": "U001739" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh85047465" - }, - { - "system": "http://loinc.org", - "code": "MTHU013358" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10016256" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "273174" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medlineplus", - "code": "5324" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D005221" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "780.79" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nanda-i", - "code": "00742" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cdisc", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctcae", - "code": "E11098" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "1849" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000321374" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nichd", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_cadsr", - "code": "C3036" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/noc", - "code": "121028" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU010062" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pcds", - "code": "PRB_00010.03" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000041390" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/psy", - "code": "19400" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "1682." - }, - { - "system": "http://www.nlm.nih.gov/research/umls/snm", - "code": "F-01610" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-01360" - }, - { - "system": "http://snomed.info/sct", - "code": "84229001" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/who", - "code": "0724" - } - ], - "text": "fatigue" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/739ae616-6324-483b-928c-7de151e0ddf6", - "resource": { - "resourceType": "Observation", - "id": "739ae616-6324-483b-928c-7de151e0ddf6", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 120 - }, - { - "url": "REDACTED", - "valueInteger": 10 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0221785", - "display": "Pain in wrist" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/bi", - "code": "BI00504" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1016217" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000021489" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/costar", - "code": "U000624" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/dxp", - "code": "U004491" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/hpo", - "code": "HP:0030836" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "M25.53" - }, - { - "system": "http://hl7.org/fhir/sid/icpc2icd10eng", - "code": "MTHU060847" - }, - { - "system": "http://hl7.org/fhir/sid/icpc-2p", - "code": "L11002" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10048692" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "939" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/omim", - "code": "MTHU016462" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "N094F" - }, - { - "system": "http://snomed.info/sct/900000000000207008", - "code": "F-176A0" - }, - { - "system": "http://snomed.info/sct", - "code": "56608008" - } - ], - "text": "wrist pain" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Observation/3585bb8f-27a3-4d0f-8957-31a5b73016f5", - "resource": { - "resourceType": "Observation", - "id": "3585bb8f-27a3-4d0f-8957-31a5b73016f5", - "language": "en", - "extension": [ - { - "extension": [ - { - "url": "REDACTED" - }, - { - "url": "REDACTED", - "valueInteger": 137 - }, - { - "url": "REDACTED", - "valueInteger": 18 - } - ], - "url": "REDACTED" - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "exam", - "display": "Exam" - } - ], - "text": "Exam" - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0741034", - "display": "Anginal equivalent" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "1017783" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000047213" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "code": "I20.8" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mdr", - "code": "10076419" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthicd9", - "code": "413.9" - } - ], - "text": "anginal equivalent" - }, - "subject": { - "reference": "Patient/f90ea4a8-dbff-49b9-95ef-2cc5e54828b8", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/281f6f53-3780-45b4-8c61-4037ef561a01", - "type": "Encounter", - "display": "unknown" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "POS", - "display": "Positive" - } - ], - "text": "Positive" - } - ] - } - }, - { - "fullUrl": "Practitioner/522b18c3-820e-49e0-8c65-867a26aa0b5f", - "resource": { - "resourceType": "Practitioner", - "id": "522b18c3-820e-49e0-8c65-867a26aa0b5f", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareStringInputWithoutOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareStringInputWithoutOptions[1].json deleted file mode 100644 index 084656c3b285..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.healthcareStringInputWithoutOptions[1].json +++ /dev/null @@ -1,1490 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs?api-version=2022-10-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "438", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:34:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2a53497a-10ab-4a22-ad25-5166d56dc400" - }, - "RequestBody": { - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The patient is a 54-year-old gentleman with a history of progressive angina over the past several months." - }, - { - "id": "1", - "text": "The patient went for six minutes with minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent." - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "70b4c123-76c4-46b4-b4e6-a7f5f0d5fec3", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:34:00 GMT", - "operation-location": "https://REDACTED/language/analyze-text/jobs/d8753059-a54a-4544-93a8-22c9b8566ded?api-version=2022-10-01-preview", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "280", - "x-ms-region": "West US 2" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d8753059-a54a-4544-93a8-22c9b8566ded?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:34:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "caad40ba-0aba-4bd3-9471-3dba142dd731" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "562ef36f-3292-4ecd-ad0b-0cf17ae5671b", - "Content-Length": "283", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:34:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d8753059-a54a-4544-93a8-22c9b8566ded", - "lastUpdatedDateTime": "2023-04-05T18:34:00Z", - "createdDateTime": "2023-04-05T18:34:00Z", - "expirationDateTime": "2023-04-06T18:34:00Z", - "status": "notStarted", - "errors": [], - "tasks": { - "completed": 0, - "failed": 0, - "inProgress": 1, - "total": 1, - "items": [] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d8753059-a54a-4544-93a8-22c9b8566ded?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:34:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a49e147f-c107-4746-acc2-f349f4cd8860" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "afc500d4-7603-4cbb-ab14-9c454e26fe43", - "Content-Length": "7174", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:34:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "142", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d8753059-a54a-4544-93a8-22c9b8566ded", - "lastUpdatedDateTime": "2023-04-05T18:34:01Z", - "createdDateTime": "2023-04-05T18:34:00Z", - "expirationDateTime": "2023-04-06T18:34:00Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:01.8950334Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - }, - { - "RequestUri": "https://REDACTED/language/analyze-text/jobs/d8753059-a54a-4544-93a8-22c9b8566ded?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "0", - "Date": "Wed, 05 Apr 2023 18:34:30 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f660b394-c0c7-48bf-83fb-304dd695619a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "87f3d1a9-e5cf-41be-9488-c252af9c6ed6", - "Content-Length": "7174", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:34:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "60", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "jobId": "d8753059-a54a-4544-93a8-22c9b8566ded", - "lastUpdatedDateTime": "2023-04-05T18:34:01Z", - "createdDateTime": "2023-04-05T18:34:00Z", - "expirationDateTime": "2023-04-06T18:34:00Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2023-04-05T18:34:01.8950334Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "offset": 17, - "length": 11, - "text": "54-year-old", - "category": "Age", - "confidenceScore": 1.0 - }, - { - "offset": 29, - "length": 9, - "text": "gentleman", - "category": "Gender", - "confidenceScore": 1.0, - "name": "Male population group", - "links": [ - { - "dataSource": "UMLS", - "id": "C0025266" - }, - { - "dataSource": "AOD", - "id": "0000026918" - }, - { - "dataSource": "CHV", - "id": "0000007919" - }, - { - "dataSource": "LCH", - "id": "U002897" - }, - { - "dataSource": "LCH_NW", - "id": "sh85083510" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "24" - }, - { - "dataSource": "MSH", - "id": "D008571" - }, - { - "dataSource": "NCI", - "id": "C14366" - }, - { - "dataSource": "PSY", - "id": "30625" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "339947000" - } - ] - }, - { - "offset": 57, - "length": 11, - "text": "progressive", - "category": "Course", - "confidenceScore": 0.9 - }, - { - "offset": 69, - "length": 6, - "text": "angina", - "category": "SymptomOrSign", - "confidenceScore": 0.83, - "name": "Angina Pectoris", - "links": [ - { - "dataSource": "UMLS", - "id": "C0002962" - }, - { - "dataSource": "AOD", - "id": "0000005330" - }, - { - "dataSource": "BI", - "id": "BI00047" - }, - { - "dataSource": "CCPSS", - "id": "1017852" - }, - { - "dataSource": "CCS", - "id": "7.2.4.1" - }, - { - "dataSource": "CHV", - "id": "0000001165" - }, - { - "dataSource": "COSTAR", - "id": "054" - }, - { - "dataSource": "CSP", - "id": "1393-3407" - }, - { - "dataSource": "CST", - "id": "ANGINA PECTORIS" - }, - { - "dataSource": "DXP", - "id": "U000113" - }, - { - "dataSource": "HPO", - "id": "HP:0001681" - }, - { - "dataSource": "ICD10", - "id": "I20.9" - }, - { - "dataSource": "ICD10AM", - "id": "I20.9" - }, - { - "dataSource": "ICD10CM", - "id": "I20.9" - }, - { - "dataSource": "ICD9CM", - "id": "413" - }, - { - "dataSource": "ICPC", - "id": "K74" - }, - { - "dataSource": "ICPC2EENG", - "id": "K74" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU006338" - }, - { - "dataSource": "ICPC2P", - "id": "K74001" - }, - { - "dataSource": "LCH", - "id": "U000244" - }, - { - "dataSource": "LCH_NW", - "id": "sh85005022" - }, - { - "dataSource": "LNC", - "id": "LA14275-4" - }, - { - "dataSource": "MDR", - "id": "10002383" - }, - { - "dataSource": "MEDCIN", - "id": "33215" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "142" - }, - { - "dataSource": "MSH", - "id": "D000787" - }, - { - "dataSource": "MTH", - "id": "053" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - }, - { - "dataSource": "MTHICPC2EAE", - "id": "K74" - }, - { - "dataSource": "NCI", - "id": "C51221" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10110" - }, - { - "dataSource": "NCI_FDA", - "id": "1710" - }, - { - "dataSource": "NCI_NICHD", - "id": "C51221" - }, - { - "dataSource": "NOC", - "id": "040504" - }, - { - "dataSource": "OMIM", - "id": "MTHU009903" - }, - { - "dataSource": "OMS", - "id": "29.13" - }, - { - "dataSource": "PCDS", - "id": "PRB_02040.07" - }, - { - "dataSource": "PSY", - "id": "02530" - }, - { - "dataSource": "QMR", - "id": "Q0300326" - }, - { - "dataSource": "RCD", - "id": "G33.." - }, - { - "dataSource": "RCDAE", - "id": "Ua1eH" - }, - { - "dataSource": "SNM", - "id": "F-71500" - }, - { - "dataSource": "SNMI", - "id": "D3-12000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "194828000" - }, - { - "dataSource": "WHO", - "id": "0422" - } - ] - }, - { - "offset": 85, - "length": 19, - "text": "past several months", - "category": "Time", - "confidenceScore": 0.99 - } - ], - "relations": [ - { - "confidenceScore": 0.84, - "relationType": "CourseOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/2", - "role": "Course" - }, - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 0.89, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/0/entities/3", - "role": "Condition" - }, - { - "ref": "#/results/documents/0/entities/4", - "role": "Time" - } - ] - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "offset": 21, - "length": 11, - "text": "six minutes", - "category": "Time", - "confidenceScore": 0.94 - }, - { - "offset": 38, - "length": 7, - "text": "minimal", - "category": "ConditionQualifier", - "confidenceScore": 0.99 - }, - { - "offset": 46, - "length": 44, - "text": "ST depressions in the anterior lateral leads", - "category": "SymptomOrSign", - "confidenceScore": 0.97 - }, - { - "offset": 108, - "length": 7, - "text": "fatigue", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "name": "Fatigue", - "links": [ - { - "dataSource": "UMLS", - "id": "C0015672" - }, - { - "dataSource": "AIR", - "id": "FATIG" - }, - { - "dataSource": "AOD", - "id": "0000001768" - }, - { - "dataSource": "BI", - "id": "BI00028" - }, - { - "dataSource": "CCC", - "id": "A01.4" - }, - { - "dataSource": "CCPSS", - "id": "1014729" - }, - { - "dataSource": "CHV", - "id": "0000004914" - }, - { - "dataSource": "COSTAR", - "id": "298" - }, - { - "dataSource": "CPM", - "id": "65221" - }, - { - "dataSource": "CSP", - "id": "1385-2059" - }, - { - "dataSource": "CST", - "id": "ASTHENIA" - }, - { - "dataSource": "DXP", - "id": "U001451" - }, - { - "dataSource": "HPO", - "id": "HP:0012378" - }, - { - "dataSource": "ICD10CM", - "id": "R53.83" - }, - { - "dataSource": "ICNP", - "id": "10000695" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU080142" - }, - { - "dataSource": "ICPC2P", - "id": "A04004" - }, - { - "dataSource": "LCH", - "id": "U001739" - }, - { - "dataSource": "LCH_NW", - "id": "sh85047465" - }, - { - "dataSource": "LNC", - "id": "MTHU013358" - }, - { - "dataSource": "MDR", - "id": "10016256" - }, - { - "dataSource": "MEDCIN", - "id": "273174" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5324" - }, - { - "dataSource": "MSH", - "id": "D005221" - }, - { - "dataSource": "MTHICD9", - "id": "780.79" - }, - { - "dataSource": "NANDA-I", - "id": "00742" - }, - { - "dataSource": "NCI", - "id": "C3036" - }, - { - "dataSource": "NCI_CDISC", - "id": "C3036" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E11098" - }, - { - "dataSource": "NCI_CTRP", - "id": "C3036" - }, - { - "dataSource": "NCI_FDA", - "id": "1849" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000321374" - }, - { - "dataSource": "NCI_NICHD", - "id": "C3036" - }, - { - "dataSource": "NCI_caDSR", - "id": "C3036" - }, - { - "dataSource": "NOC", - "id": "121028" - }, - { - "dataSource": "OMIM", - "id": "MTHU010062" - }, - { - "dataSource": "PCDS", - "id": "PRB_00010.03" - }, - { - "dataSource": "PDQ", - "id": "CDR0000041390" - }, - { - "dataSource": "PSY", - "id": "19400" - }, - { - "dataSource": "RCD", - "id": "1682." - }, - { - "dataSource": "SNM", - "id": "F-01610" - }, - { - "dataSource": "SNMI", - "id": "F-01360" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84229001" - }, - { - "dataSource": "WHO", - "id": "0724" - } - ] - }, - { - "offset": 120, - "length": 10, - "text": "wrist pain", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Pain in wrist", - "links": [ - { - "dataSource": "UMLS", - "id": "C0221785" - }, - { - "dataSource": "BI", - "id": "BI00504" - }, - { - "dataSource": "CCPSS", - "id": "1016217" - }, - { - "dataSource": "CHV", - "id": "0000021489" - }, - { - "dataSource": "COSTAR", - "id": "U000624" - }, - { - "dataSource": "DXP", - "id": "U004491" - }, - { - "dataSource": "HPO", - "id": "HP:0030836" - }, - { - "dataSource": "ICD10CM", - "id": "M25.53" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU060847" - }, - { - "dataSource": "ICPC2P", - "id": "L11002" - }, - { - "dataSource": "MDR", - "id": "10048692" - }, - { - "dataSource": "MEDCIN", - "id": "939" - }, - { - "dataSource": "OMIM", - "id": "MTHU016462" - }, - { - "dataSource": "RCD", - "id": "N094F" - }, - { - "dataSource": "SNMI", - "id": "F-176A0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "56608008" - } - ] - }, - { - "offset": 137, - "length": 18, - "text": "anginal equivalent", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "name": "Anginal equivalent", - "links": [ - { - "dataSource": "UMLS", - "id": "C0741034" - }, - { - "dataSource": "CCPSS", - "id": "1017783" - }, - { - "dataSource": "CHV", - "id": "0000047213" - }, - { - "dataSource": "ICD10CM", - "id": "I20.8" - }, - { - "dataSource": "MDR", - "id": "10076419" - }, - { - "dataSource": "MTHICD9", - "id": "413.9" - } - ] - } - ], - "relations": [ - { - "confidenceScore": 0.83, - "relationType": "TimeOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/0", - "role": "Time" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "QualifierOfCondition", - "entities": [ - { - "ref": "#/results/documents/1/entities/1", - "role": "Qualifier" - }, - { - "ref": "#/results/documents/1/entities/2", - "role": "Condition" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesBatchInputSingleError[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesBatchInputSingleError[1].json deleted file mode 100644 index 9531ad5448a9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesBatchInputSingleError[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "153", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1764e974-de56-4303-9627-aaa00d9b5229" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "2", - "text": " " - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1d8d363b-ed0e-4f3c-b449-72eb25db4f58", - "Content-Length": "264", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "2", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesBatchTooManyDocuments[1].json deleted file mode 100644 index 2409373be83d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesBatchTooManyDocuments[1].json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "913", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4fd41f43-b5b7-4d50-a66f-d962912b6ba3" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "278114c0-19f8-4394-b753-b390939378ea", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 5 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDiacriticsNfc[1].json deleted file mode 100644 index 8c728697b713..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDiacriticsNfc[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "177", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "79925645-1cde-4ab1-898b-8020c3c47695" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bde656fb-66ee-4756-9100-b42d05bdb97b", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 14, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDiacriticsNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDiacriticsNfd[1].json deleted file mode 100644 index ef0370d43a8c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDiacriticsNfd[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "178", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "e0b65a35-5cd1-4d33-b604-9def50b34945" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "an\u0303o I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "517a0018-6264-4fcb-8af7-d73a4741ef6e", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "29", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 15, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDuplicateIdInput[1].json deleted file mode 100644 index 674616bc08eb..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesDuplicateIdInput[1].json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "326", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:48:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8f425117-87f9-4328-8400-37a6555e9b89" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "33b67b20-520c-4b07-96f0-c19619fecf2e", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:48:27 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiFamilyWIthSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiFamilyWIthSkinToneModifier[1].json deleted file mode 100644 index a347df0f0c11..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiFamilyWIthSkinToneModifier[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "278", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:03 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "21bb0f6c-4cb4-41bd-bf5e-cbf9014180b2" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "19ddf36b-09c8-4358-9da7-f819aaa91ea6", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:36:02 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "25", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 30, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiFamily[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiFamily[1].json deleted file mode 100644 index 800b5381fda4..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiFamily[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "230", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "7ab70783-c4ba-4805-8fa7-8fad3329fa31" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "887cce37-87ec-4e7a-a2d1-509d952698a9", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "21", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 22, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiWithSkinToneModifier[1].json deleted file mode 100644 index a735c867d831..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmojiWithSkinToneModifier[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "197", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "dca632fb-1131-47b5-8fdb-f73c74a9acd6" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2042af87-3922-4b01-a90b-8a99ca1d2f7c", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "24", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 15, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmoji[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmoji[1].json deleted file mode 100644 index a6b57cca99e4..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmoji[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "185", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2dd4aef2-710c-467d-ac95-22f81419c2db" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "043bb379-c025-4b5a-89fa-c30992ec531c", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:30:51 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "31", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 13, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmptyIdInput[1].json deleted file mode 100644 index 1d79237a9dae..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesEmptyIdInput[1].json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f3c6f062-2cc9-4841-ad30-c7d66584de20" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "3e8a66df-6603-45b9-b706-1e4ab892ad90", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchInputShowStatistics[1].json deleted file mode 100644 index 8795f899a17a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "237", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "999d8d87-71d9-46c2-8605-2b3b64d74797" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "db215b82-c4ea-4033-a1a6-ed6cfafd8cc5", - "Content-Length": "795", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "26", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 44, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 20, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchInput[1].json deleted file mode 100644 index b167110727f0..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchInput[1].json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "237", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "13bce438-6530-4f3a-a630-5acf7efcebdc" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "552569df-9ca8-4a1a-b442-c7afbd297c03", - "Content-Length": "571", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:05 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "25", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchStringInput[1].json deleted file mode 100644 index fe2f2be27c7a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForBatchStringInput[1].json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "237", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "161c2929-f4a7-4bfe-b052-5af0b5d60264" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ca520a0d-432e-4f3a-8d50-6f94082c3ba8", - "Content-Length": "571", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:36 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "28", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForEmptyText[1].json deleted file mode 100644 index f203f9e1ba0f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForEmptyText[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "152", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:43:19 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "be66fd76-25d3-4cde-abc1-f05cb191063b" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d75d48b8-319c-4008-8cc3-eb649f0a55af", - "Content-Length": "264", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:43:17 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForListLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForListLanguageHint[1].json deleted file mode 100644 index 815223a42b8b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForListLanguageHint[1].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "269", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:07 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c689b028-daeb-4146-bbec-7c3c6573987a" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week.", - "language": "en" - }, - { - "id": "1", - "text": "I work at Microsoft.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "43f7e0d8-12f2-46fe-bf87-d0af8e729f48", - "Content-Length": "571", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:06 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "32", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForListWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForListWithOptions[1].json deleted file mode 100644 index 4f6d6dde62e9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForListWithOptions[1].json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "237", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "651dd3b3-db1f-4a80-a56a-653a981ee5bf" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1057e775-c7e5-499c-9886-76814d4bac17", - "Content-Length": "795", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "26", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 44, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 20, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 10, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForTextInput[1].json deleted file mode 100644 index f7deadbb5625..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesForTextInput[1].json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "196", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c3044a35-c342-4f9f-805c-558beb6b6297" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c77018c8-5780-4bbb-9a29-4ddaaa48120a", - "Content-Length": "440", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "27", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "trip", - "category": "Event", - "offset": 18, - "length": 4, - "confidenceScore": 0.74 - }, - { - "text": "Seattle", - "category": "Location", - "subcategory": "GPE", - "offset": 26, - "length": 7, - "confidenceScore": 1.0 - }, - { - "text": "last week", - "category": "DateTime", - "subcategory": "DateRange", - "offset": 34, - "length": 9, - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesKoreanNfc[1].json deleted file mode 100644 index 16147f4826ac..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesKoreanNfc[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "179", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8e39f680-4c10-465f-b7d7-ccbbbf283270" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "01d37de7-5414-4fac-9a0f-8bbfab028656", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "20", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 13, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesKoreanNfd[1].json deleted file mode 100644 index 9861d2bbbe76..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesKoreanNfd[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "179", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:41:16 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "2e585e42-0105-474c-9408-06ec50124be6" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9eec0c9d-1b73-4086-8ed3-71d7d5f20de2", - "Content-Length": "232", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:41:15 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "23", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 13, - "length": 9, - "confidenceScore": 0.99 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesResolutions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesResolutions[1].json deleted file mode 100644 index cdcfd3fdcfc3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesResolutions[1].json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "231", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:47:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "213c23f3-7870-427a-ad8c-034db13031c7" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "The cat is 1 year old and weighs 10 pounds." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "modelVersion": "2022-10-01-preview", - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6c35d84b-436e-42f0-921c-352710aeb368", - "Content-Length": "531", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:47:25 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "40", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "1 year old", - "category": "Quantity", - "subcategory": "Age", - "offset": 11, - "length": 10, - "confidenceScore": 0.99, - "resolutions": [ - { - "resolutionKind": "AgeResolution", - "unit": "Year", - "value": 1.0 - } - ] - }, - { - "text": "10 pounds", - "category": "Quantity", - "subcategory": "Dimension", - "offset": 33, - "length": 9, - "confidenceScore": 0.8, - "resolutions": [ - { - "resolutionKind": "WeightResolution", - "unit": "Pound", - "value": 10.0 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-10-01-preview" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesZalgoText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesZalgoText[1].json deleted file mode 100644 index 2b22a179e2de..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeEntitiesZalgoText[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "400", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b578094b-684c-42de-bd1f-b3041af513d9" - }, - "RequestBody": { - "kind": "EntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "33802d30-2d5e-48ea-a126-92b1f0b1ceb8", - "Content-Length": "233", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.NER=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:37:36 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "60", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 126, - "length": 9, - "confidenceScore": 0.98 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesBatchTooManyDocuments[1].json deleted file mode 100644 index 47025a866cd6..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesBatchTooManyDocuments[1].json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "909", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:34:31 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0de69b23-3bff-4ee2-b4e5-cf31eedf8a02" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "1a0eb18e-3928-4b45-99a5-f1034fc828cf", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:34:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "6", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 5 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDiacriticsNfc[1].json deleted file mode 100644 index 38e9c3fa95a1..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDiacriticsNfc[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "173", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:48:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "ba3be777-2d6c-4ed7-9810-fec1c8dd3b99" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "08e3b55c-02e4-4da9-b3f8-67898f272e3c", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:48:27 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "20", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 14, - "length": 9, - "confidenceScore": 0.24 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDiacriticsNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDiacriticsNfd[1].json deleted file mode 100644 index b46b06ac76cb..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDiacriticsNfd[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "174", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:48:28 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "76b7f4e3-f17e-4ef1-97d7-67f65cceaa20" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "an\u0303o I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cb0131af-b7f9-43e8-ad72-3713f83303b6", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:48:27 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 15, - "length": 9, - "confidenceScore": 0.24 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDuplicateIdInput[1].json deleted file mode 100644 index 63e8f4447954..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesDuplicateIdInput[1].json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "322", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:37 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "b406121f-52b2-4b1b-bb6c-4038eec3a232" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "ea35334e-05fa-47c5-b2dc-3f5e3efd7880", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:36 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier[1].json deleted file mode 100644 index 1ba1fdb743c3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "274", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "98d9c3b6-315f-4a48-93cd-e46781e5a8c8" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4919c74d-74ee-493f-81a0-84d7e210861e", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "15", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 30, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiFamily[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiFamily[1].json deleted file mode 100644 index e6349fe9f178..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiFamily[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "226", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:39:43 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1ad43d96-8abe-48bf-9a35-2eaf81c721ba" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "36d377ca-38a3-4d68-8711-6175f84954cb", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:39:42 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "13", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 22, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiWithSkinToneModifier[1].json deleted file mode 100644 index 3d5e63807670..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmojiWithSkinToneModifier[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "193", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "3d1e6e68-c4e5-4516-8ef3-d821dabb7033" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8036fc3c-51ed-48bc-8037-811a04acaa97", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:30:51 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "25", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 15, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmoji[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmoji[1].json deleted file mode 100644 index b92e2d1e69fe..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmoji[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "181", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:34:00 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6408852f-b3e9-465c-8a68-72e9283c47e9" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "770633fa-0bec-43b8-b5aa-d4ffe7f06bbb", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:33:59 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 13, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmptyIdInput[1].json deleted file mode 100644 index 4b1a84614169..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesEmptyIdInput[1].json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "191", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f56f4b27-9011-42a2-8d0d-3a38b9db1a40" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "ba632091-99ce-4dcc-85fd-760ca5217b66", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:45: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-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchInputShowStatistics[1].json deleted file mode 100644 index 83b999a5be87..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "233", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "c0ad7f46-e2d7-4493-bf93-369f72eeb9c7" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "868264d6-a563-4a04-8333-72a3d7281cd6", - "Content-Length": "837", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 44, - "transactionsCount": 1 - }, - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 20, - "transactionsCount": 1 - }, - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchInput[1].json deleted file mode 100644 index d7d4753bd824..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchInput[1].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "233", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "40d80026-6fed-4cdd-847c-62382622da64" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "99361773-5879-46be-a2eb-39fa3f904a0c", - "Content-Length": "613", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchStringInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchStringInput[1].json deleted file mode 100644 index 3827ca1cd3b0..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForBatchStringInput[1].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "233", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "4202eca7-27a2-4d21-9803-70e0257f38fa" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "980ae43e-9e83-4f6a-a407-ef1851595eb1", - "Content-Length": "613", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:30:51 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "17", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForEmptyText[1].json deleted file mode 100644 index 3e003e54e9ad..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForEmptyText[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "148", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f9633d74-f5fa-4304-845d-f1764ce22f4b" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b0291190-fcd7-4dca-a0fa-77feef4e2979", - "Content-Length": "260", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForListLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForListLanguageHint[1].json deleted file mode 100644 index 951ad196bea9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForListLanguageHint[1].json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "265", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "9c33d2d0-5b9b-4282-87ba-c19fe75f6778" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week.", - "language": "en" - }, - { - "id": "1", - "text": "I work at Microsoft.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f3670b57-cf29-442f-843c-aee3d0bd75e3", - "Content-Length": "613", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:30:20 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "12", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForListStringWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForListStringWithOptions[1].json deleted file mode 100644 index 78e29427afc2..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForListStringWithOptions[1].json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "233", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "800123a8-ec6d-4960-acb5-b2cc2ff9bc65" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "907d36b5-f84e-40d4-b2e0-a036bd92dada", - "Content-Length": "837", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "id": "0", - "statistics": { - "charactersCount": 44, - "transactionsCount": 1 - }, - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - }, - { - "id": "1", - "statistics": { - "charactersCount": 20, - "transactionsCount": 1 - }, - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 10, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForTextInput[1].json deleted file mode 100644 index ff3a9d981ab7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesForTextInput[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "192", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:32:58 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "60b11cb5-831f-4d54-871e-81cf9225b103" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a51fa355-4bbb-4684-bcf1-e8a399c692d1", - "Content-Length": "352", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:32:57 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "5fbba6b8-85e1-4d41-9444-d9055436e473", - "name": "Seattle", - "matches": [ - { - "text": "Seattle", - "offset": 26, - "length": 7, - "confidenceScore": 0.19 - } - ], - "language": "en", - "id": "Seattle", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesKoreanNfc[1].json deleted file mode 100644 index 6a99feb62d5f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesKoreanNfc[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "175", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "21477e0f-7bba-4712-9db2-ca448afd2ff4" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b16598d7-36ef-43fe-a545-ba63bee5adcb", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 13, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesKoreanNfd[1].json deleted file mode 100644 index 0628eee8358a..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesKoreanNfd[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "175", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:30:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "17b25fb3-aba4-48d9-9db7-6eaefff4f060" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a2500c8f-8f67-461c-8680-56901aeb0c1e", - "Content-Length": "358", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:30:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 13, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesZalgoText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesZalgoText[1].json deleted file mode 100644 index 043dd01b6efb..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeLinkedEntitiesZalgoText[1].json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "396", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:54 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "502fe795-6ef2-4966-959c-ecb635771570" - }, - "RequestBody": { - "kind": "EntityLinking", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E I work at Microsoft." - } - ] - }, - "parameters": { - "loggingOptOut": false, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "57f7de1f-a888-4d8e-80d2-7bca1d53edca", - "Content-Length": "359", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.EntityLinking=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "25", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "id": "0", - "entities": [ - { - "bingId": "a093e9b9-90f5-a3d5-c4b8-5855e1b01f85", - "name": "Microsoft", - "matches": [ - { - "text": "Microsoft", - "offset": 126, - "length": 9, - "confidenceScore": 0.25 - } - ], - "language": "en", - "id": "Microsoft", - "url": "REDACTED", - "dataSource": "Wikipedia" - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesBatchInputSingleError[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesBatchInputSingleError[1].json deleted file mode 100644 index 5df4effc8bd9..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesBatchInputSingleError[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "155", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:33:29 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "385bb8a0-f07a-4281-9f16-a20c7cf5abfb" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "2", - "text": " " - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a97ce305-ae70-4619-b049-02f2ebb572c0", - "Content-Length": "267", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:33:27 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "3", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "2", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesBatchTooManyDocuments[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesBatchTooManyDocuments[1].json deleted file mode 100644 index d4192b0f6318..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesBatchTooManyDocuments[1].json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "915", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:40:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "18c7970a-1535-4d28-ac35-15505bb6ce83" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "1", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "3", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "4", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "5", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "6", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "7", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "8", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "9", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "10", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "11", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "6296b874-7bbb-4df1-9eaa-94b04ca17d9e", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocumentBatch", - "message": "Batch request contains too many records. Max 5 records are permitted." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDiacriticsNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDiacriticsNfc[1].json deleted file mode 100644 index 883f84562e8c..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDiacriticsNfc[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "175", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "46d79611-ce5c-483d-9528-eea609a0b845" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "a\u00F1o SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ce26a7cd-5de6-414a-8b54-735943abd3d1", - "Content-Length": "286", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "31", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "a\u00F1o SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 9, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDiacriticsNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDiacriticsNfd[1].json deleted file mode 100644 index 75d02aac1adf..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDiacriticsNfd[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "176", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:31:25 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "db8ef69b-b8e0-4631-a442-cbaca507bbb4" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "an\u0303o SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f81ff704-bd92-444c-b71e-afd6fb840f5e", - "Content-Length": "288", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:31:24 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "38", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "an\u0303o SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 10, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDuplicateIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDuplicateIdInput[1].json deleted file mode 100644 index be7f89493a33..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesDuplicateIdInput[1].json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "328", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "09cbe877-df67-4230-a420-10b8b31c7b89" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "0", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "76d06b8a-3901-472c-a537-5633f72e712f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Request contains duplicated Ids. Make sure each document has a unique Id." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier[1].json deleted file mode 100644 index 62db4d973ece..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "276", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:45:53 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "25781aa8-1684-4422-9015-e40298729994" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "03cadd69-daca-413a-b8e4-463a48ff1362", - "Content-Length": "324", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:45:52 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "32", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uD83D\uDC69\uD83C\uDFFB\u200D\uD83D\uDC69\uD83C\uDFFD\u200D\uD83D\uDC67\uD83C\uDFFE\u200D\uD83D\uDC66\uD83C\uDFFF SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 25, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiFamily[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiFamily[1].json deleted file mode 100644 index baef1a959a9e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiFamily[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "228", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:40:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "24349f8c-2e5b-4240-926e-aa21a5f4eb04" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "91d800bc-e38e-4a08-a5ad-09cf88bea899", - "Content-Length": "308", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "32", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67 SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 17, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiWithSkinToneModifier[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiWithSkinToneModifier[1].json deleted file mode 100644 index 55c4c75f8bde..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmojiWithSkinToneModifier[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "195", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:39 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "56ba8343-4467-4cba-975b-b4c4373bc919" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69\uD83C\uDFFB SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e963eba8-3767-463a-9595-34df522d7248", - "Content-Length": "291", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "27", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uD83D\uDC69\uD83C\uDFFB SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 10, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmoji[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmoji[1].json deleted file mode 100644 index d1ec188fcaf1..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmoji[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "183", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:47:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "6ed7592a-c8d1-4fb8-b0e1-0f5d5aaaaea6" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uD83D\uDC69 SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6bce32a4-5974-486d-8cd8-7ce1377f76b2", - "Content-Length": "286", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:47:25 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "35", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uD83D\uDC69 SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 8, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmptyIdInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmptyIdInput[1].json deleted file mode 100644 index 6c1ab0dac716..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesEmptyIdInput[1].json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "197", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "18f32d9c-5c45-46a8-a552-20f4212154af" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "", - "text": "I had a wonderful trip to Seattle last week." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 400, - "ResponseHeaders": { - "apim-request-id": "f4504534-7fc0-45ec-b728-ec69f60116cf", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:37:36 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "5", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "error": { - "code": "InvalidRequest", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "At least one input is missing an Id attribute." - } - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputForCategoriesFilter[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputForCategoriesFilter[1].json deleted file mode 100644 index fd28074cec4d..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputForCategoriesFilter[1].json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "441", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:42:48 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "bd0e1e86-a4ef-43a0-a02c-8324f9b7cc9e" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "piiCategories": [ - "USSocialSecurityNumber", - "ABARoutingNumber" - ], - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "13af9a88-f287-496d-a4de-81a44a765fdb", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:42:47 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "58", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputForDomainFilter[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputForDomainFilter[1].json deleted file mode 100644 index ba8de047a9d2..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputForDomainFilter[1].json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "362", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:32:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "08bba2d0-e24b-416b-bc20-cefbdf7ca916" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "domain": "PHI", - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "700f46ee-6c19-4d08-9115-76c7df13e367", - "Content-Length": "876", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:32:25 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "40", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputShowStatistics[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputShowStatistics[1].json deleted file mode 100644 index 42051d9ad49e..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputShowStatistics[1].json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "347", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:32:27 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "548bbf8a-744e-484d-b56f-9c8e2f9f3cb2" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "41a5915b-c51c-49a7-86fc-aacb676060f2", - "Content-Length": "1191", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:32:25 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "33", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputStringForDomainFilter[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputStringForDomainFilter[1].json deleted file mode 100644 index a895d873e314..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInputStringForDomainFilter[1].json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "394", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "04f2dc2e-f6a1-4d8d-8776-a1a07351fbe1" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "domain": "PHI", - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f9b5293c-06ca-43ae-a87d-b34996f2c506", - "Content-Length": "876", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "33", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInput[1].json deleted file mode 100644 index 5a4a1580c45f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForBatchInput[1].json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "347", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:40:14 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f7b978a7-9c09-4e52-bc41-5507728fb824" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b682352e-4903-42bf-a9f1-85365fcb358a", - "Content-Length": "966", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:40:13 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "30", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForDomainFilter[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForDomainFilter[1].json deleted file mode 100644 index 8573770f6cfa..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForDomainFilter[1].json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "252", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:32:26 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "0d849ac4-b6a7-4b65-987a-00eae876ee7c" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "language": "en" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "domain": "PHI", - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3ef5c8c4-5ae9-435b-ac15-c1b46e96fe02", - "Content-Length": "425", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:32:25 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "29", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForEmptyText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForEmptyText[1].json deleted file mode 100644 index 9ab0553df76b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForEmptyText[1].json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "154", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "8382ceb7-f60d-4ef5-b865-7b8c782a0926" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "47f87e50-3ff1-4e48-9e54-1e0024dd8f77", - "Content-Length": "267", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 05 Apr 2023 18:40:44 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "2", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [], - "errors": [ - { - "id": "0", - "error": { - "code": "InvalidArgument", - "message": "Invalid Document in request.", - "innererror": { - "code": "InvalidDocument", - "message": "Document text is empty." - } - } - } - ], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForListLanguageHint[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForListLanguageHint[1].json deleted file mode 100644 index 40b760f626d7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForListLanguageHint[1].json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "379", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:36:35 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "a5d0eb7b-f57a-4199-aa04-31704a3e9248" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "50c6f18a-3f0c-457a-8634-01f9062bc47b", - "Content-Length": "966", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:36:34 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "44", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForListStringWithOptions[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForListStringWithOptions[1].json deleted file mode 100644 index a619066f4066..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForListStringWithOptions[1].json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=true", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "347", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:20 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "028b9321-f2c9-429d-8d0d-33799750bbbc" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - }, - { - "id": "1", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0679a147-cbfe-43a0-ae19-379f7614ba00", - "Content-Length": "1191", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:44:19 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "50", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "statistics": { - "documentsCount": 2, - "validDocumentsCount": 2, - "erroneousDocumentsCount": 0, - "transactionsCount": 2 - }, - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "statistics": { - "charactersCount": 67, - "transactionsCount": 1 - }, - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForTextInput[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForTextInput[1].json deleted file mode 100644 index cb6bb8dae300..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesForTextInput[1].json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "221", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "05b8f87f-17c6-4809-a4fa-2a8b2a3751eb" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s." - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "76a29e13-01ea-4f2a-a630-29e416e2fcf2", - "Content-Length": "515", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "33", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "********* ******** with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "Microsoft", - "category": "Organization", - "offset": 0, - "length": 9, - "confidenceScore": 0.94 - }, - { - "text": "employee", - "category": "PersonType", - "offset": 10, - "length": 8, - "confidenceScore": 0.95 - }, - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesKoreanNfc[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesKoreanNfc[1].json deleted file mode 100644 index 86fc1f1f3083..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesKoreanNfc[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "177", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:41:46 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d2bb65b0-f6dd-4b40-9342-d7b60f1fe260" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b9f9f00d-f255-492f-a90d-c2dc601fb179", - "Content-Length": "288", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:41:45 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "23", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uC544\uAC00 SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 8, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesKoreanNfd[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesKoreanNfd[1].json deleted file mode 100644 index 315604356064..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesKoreanNfd[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "177", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:41:46 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "d76d2f00-d911-40bc-9ac7-d12e26736ccb" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "\uC544\uAC00 SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bcfd2c53-5ca6-40fc-a611-e59fa0211682", - "Content-Length": "288", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:41:45 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "30", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "\uC544\uAC00 SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 8, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesZalgoText[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesZalgoText[1].json deleted file mode 100644 index e51ef41f8921..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntitiesZalgoText[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "398", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:37:38 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "72268ac8-d2c2-46c0-a5f0-ff196a9cbb78" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E SSN: 859-98-0987" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "679e54c4-13db-4fcb-970b-0806c2c630f0", - "Content-Length": "511", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=1,CognitiveServices.TextAnalytics.TextRecords=1", - "Date": "Wed, 05 Apr 2023 18:37:36 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "65", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E SSN: ***********", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 121, - "length": 11, - "confidenceScore": 0.65 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntityWithCategoriesFilterFromOtherResult[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntityWithCategoriesFilterFromOtherResult[1].json deleted file mode 100644 index 177dbac69f28..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizePiiEntityWithCategoriesFilterFromOtherResult[1].json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "441", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "f3bde7ac-253d-4ea0-8621-efb7a944117b" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "piiCategories": [ - "USSocialSecurityNumber", - "ABARoutingNumber" - ], - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4c9beba0-afbf-449f-b949-43e5a3f8d9bb", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "35", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - }, - { - "RequestUri": "https://REDACTED/language/:analyze-text?api-version=2022-10-01-preview\u0026showStats=false", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "441", - "Content-Type": "application/json", - "Date": "Wed, 05 Apr 2023 18:44:51 GMT", - "Ocp-Apim-Subscription-Key": "REDACTED", - "User-Agent": "azsdk-java-azure-ai-textanalytics/5.3.0-beta.3 (11.0.10; Windows 10; 10.0)", - "x-ms-client-request-id": "1ce85a2f-3f8c-4e39-b920-3e666e07b04b" - }, - "RequestBody": { - "kind": "PiiEntityRecognition", - "analysisInput": { - "documents": [ - { - "id": "0", - "text": "Microsoft employee with ssn 859-98-0987 is using our awesome API\u0027s.", - "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" - } - ] - }, - "parameters": { - "loggingOptOut": true, - "piiCategories": [ - "USSocialSecurityNumber", - "ABARoutingNumber" - ], - "stringIndexType": "Utf16CodeUnit" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "77865312-d4eb-494d-a09a-0c67181835d7", - "Content-Length": "591", - "Content-Type": "application/json; charset=utf-8", - "csp-billing-usage": "CognitiveServices.TextAnalytics.Language.Text.PII=2,CognitiveServices.TextAnalytics.TextRecords=2", - "Date": "Wed, 05 Apr 2023 18:44:50 GMT", - "Set-Cookie": ".AspNetCore.Mvc.CookieTempDataProvider=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax; httponly", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "45", - "x-ms-region": "West US 2" - }, - "ResponseBody": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "redactedText": "Microsoft employee with ssn *********** is using our awesome API\u0027s.", - "id": "0", - "entities": [ - { - "text": "859-98-0987", - "category": "USSocialSecurityNumber", - "offset": 28, - "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", - "entities": [ - { - "text": "111000025", - "category": "ABARoutingNumber", - "offset": 18, - "length": 9, - "confidenceScore": 0.75 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - ], - "Variables": {} -}