-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[textanalytics] rerecord tests (#20045)
* rerecord everything but healthcare * linting * rerecord healthcare tests
- Loading branch information
1 parent
3729b53
commit efdaf7e
Showing
570 changed files
with
5,649 additions
and
9,905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
179 changes: 179 additions & 0 deletions
179
...ests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
interactions: | ||
- request: | ||
body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], | ||
"keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": | ||
[], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", | ||
"loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": | ||
3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "1", "text": | ||
"The government of British Prime Minster Theresa May has been plunged into turmoil | ||
with the resignation of two senior Cabinet ministers in a deep split over her | ||
Brexit strategy. The Foreign Secretary Boris Johnson, quit on Monday, hours | ||
after the resignation late on Sunday night of the minister in charge of Brexit | ||
negotiations, David Davis. Their decision to leave the government came three | ||
days after May appeared to have agreed a deal with herfractured Cabinet on the | ||
UK''s post Brexit relationship with the EU. That plan is now in tatters and | ||
her political future appears uncertain. May appeared in Parliament on Monday | ||
afternoon to defend her plan, minutes after Downing Street confirmed the departure | ||
of Johnson. May acknowledged the splits in her statement to MPs, saying of the | ||
ministers who quit: We do not agree about the best way of delivering our shared | ||
commitment to honoring the result of the referendum. The Prime Minister''s latest | ||
plitical drama began late on Sunday night when Davis quit, declaring he could | ||
not support May''s Brexit plan. He said it involved too close a relationship | ||
with the EU and gave only an illusion of control being returned to the UK after | ||
it left the EU. It seems to me we''re giving too much away, too easily, and | ||
that''s a dangerous strategy at this time, Davis said in a BBC radio interview | ||
Monday morning. Johnson''s resignation came Monday afternoon local time, just | ||
before the Prime Minister was due to make a scheduled statement in Parliament. | ||
This afternoon, the Prime Minister accepted the resignation of Boris Johnson | ||
as Foreign Secretary, a statement from Downing Street said.", "language": "en"}, | ||
{"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", "language": | ||
"es"}]}}' | ||
headers: | ||
Accept: | ||
- application/json, text/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '2138' | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) | ||
method: POST | ||
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
apim-request-id: | ||
- 9b8cecd9-2fcf-4ed5-a163-687ce277cfe4 | ||
date: | ||
- Mon, 02 Aug 2021 21:28:42 GMT | ||
operation-location: | ||
- https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/3272e64e-64b0-4a07-97aa-e91c225d05a2 | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains; preload | ||
transfer-encoding: | ||
- chunked | ||
x-content-type-options: | ||
- nosniff | ||
x-envoy-upstream-service-time: | ||
- '1408' | ||
status: | ||
code: 202 | ||
message: Accepted | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) | ||
method: GET | ||
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/3272e64e-64b0-4a07-97aa-e91c225d05a2?showStats=True | ||
response: | ||
body: | ||
string: '{"jobId":"3272e64e-64b0-4a07-97aa-e91c225d05a2","lastUpdateDateTime":"2021-08-02T21:28:44Z","createdDateTime":"2021-08-02T21:28:42Z","expirationDateTime":"2021-08-03T21:28:42Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' | ||
headers: | ||
apim-request-id: | ||
- 9d6fb934-5c44-4f32-be3e-37d47e3dcbdb | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Mon, 02 Aug 2021 21:28:49 GMT | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains; preload | ||
transfer-encoding: | ||
- chunked | ||
x-content-type-options: | ||
- nosniff | ||
x-envoy-upstream-service-time: | ||
- '655' | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) | ||
method: GET | ||
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/3272e64e-64b0-4a07-97aa-e91c225d05a2?showStats=True | ||
response: | ||
body: | ||
string: '{"jobId":"3272e64e-64b0-4a07-97aa-e91c225d05a2","lastUpdateDateTime":"2021-08-02T21:28:44Z","createdDateTime":"2021-08-02T21:28:42Z","expirationDateTime":"2021-08-03T21:28:42Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' | ||
headers: | ||
apim-request-id: | ||
- 86933a07-0e1a-4624-a96f-5d467504d7b1 | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Mon, 02 Aug 2021 21:28:54 GMT | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains; preload | ||
transfer-encoding: | ||
- chunked | ||
x-content-type-options: | ||
- nosniff | ||
x-envoy-upstream-service-time: | ||
- '82' | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
User-Agent: | ||
- azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) | ||
method: GET | ||
uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/3272e64e-64b0-4a07-97aa-e91c225d05a2?showStats=True | ||
response: | ||
body: | ||
string: '{"jobId":"3272e64e-64b0-4a07-97aa-e91c225d05a2","lastUpdateDateTime":"2021-08-02T21:28:56Z","createdDateTime":"2021-08-02T21:28:42Z","expirationDateTime":"2021-08-03T21:28:42Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:28:56.8777397Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The | ||
government of British Prime Minster Theresa May has been plunged into turmoil | ||
with the resignation of two senior Cabinet ministers in a deep split over | ||
her Brexit strategy.","rankScore":1.0,"offset":0,"length":176},{"text":"The | ||
Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation | ||
late on Sunday night of the minister in charge of Brexit negotiations, David | ||
Davis.","rankScore":0.9711179434493907,"offset":177,"length":164},{"text":"Their | ||
decision to leave the government came three days after May appeared to have | ||
agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship | ||
with the EU.","rankScore":0.9103508917712292,"offset":342,"length":171}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"sentences":[{"text":"Microsoft | ||
fue fundado por Bill Gates y Paul Allen","rankScore":1.0,"offset":0,"length":49}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' | ||
headers: | ||
apim-request-id: | ||
- 557d8a8f-47e5-4e06-8e0c-fe1fc99ec680 | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Mon, 02 Aug 2021 21:29:00 GMT | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains; preload | ||
transfer-encoding: | ||
- chunked | ||
x-content-type-options: | ||
- nosniff | ||
x-envoy-upstream-service-time: | ||
- '165' | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.