Skip to content

Commit

Permalink
[CLU] release updates + fix tests (Azure#24963)
Browse files Browse the repository at this point in the history
* some release updates wip

* get live tests passing

* remove print

* update shared reqs for isodate
  • Loading branch information
kristapratico authored Jun 23, 2022
1 parent 28ab809 commit 41807f0
Show file tree
Hide file tree
Showing 22 changed files with 166 additions and 215 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
# PRLabel: %Cognitive - Translator
/sdk/translation/ @kristapratico @mohamedshabanofficial

# PRLabel: %Cognitive - Language
/sdk/cognitivelanguage/ @kristapratico @mohamedshabanofficial

# PRLabel: %Tables
/sdk/tables/ @annatisch @YalinLi0312

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ result = client.analyze_conversation(..., logging_enable=True)

## Next steps

### More sample code

See the [Sample README][conversationallanguage_samples] for several code snippets illustrating common patterns used in the CLU Python API.

## Contributing

See the [CONTRIBUTING.md][contributing] for details on building, testing, and contributing to this library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
install_requires=[
"azure-core<2.0.0,>=1.24.0",
"isodate>=0.6.0",
"isodate<1.0.0,>=0.6.1",
],
project_urls={
'Bug Reports': 'https://github.com/Azure/azure-sdk-for-python/issues',
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,40 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '325'
- '324'
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-language-conversations/1.0GA Python/3.10.1 (Windows-10-10.0.19044-SP0)
- azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0)
method: POST
uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01
response:
body:
string: '{"kind":"ConversationResult","result":{"query":"Send an email to Carol
about the tomorrow''s demo","prediction":{"topIntent":"Setup","projectKind":"Conversation","intents":[{"category":"Setup","confidenceScore":0.6254007},{"category":"Play","confidenceScore":0.20336723},{"category":"Send","confidenceScore":0.13618475},{"category":"Read","confidenceScore":0.01904324},{"category":"Call","confidenceScore":0.00859508},{"category":"Set","confidenceScore":0.0033787973},{"category":"Find","confidenceScore":0.0028723886},{"category":"Open","confidenceScore":0.0010411387},{"category":"None","confidenceScore":0.00011662581}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-06-01","value":"2022-06-01"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}'
about the tomorrow''s demo","prediction":{"topIntent":"Send","projectKind":"Conversation","intents":[{"category":"Send","confidenceScore":0.9053172},{"category":"Read","confidenceScore":0.44011447},{"category":"Setup","confidenceScore":0.41303915},{"category":"Set","confidenceScore":0.21186642},{"category":"None","confidenceScore":0.20198277},{"category":"Find","confidenceScore":0.19216746},{"category":"Call","confidenceScore":0.16446844},{"category":"Play","confidenceScore":0.15655291},{"category":"Open","confidenceScore":0.08699014}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-06-24","value":"2022-06-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}'
headers:
apim-request-id:
- 459be8fa-7f28-43ac-8862-feed979b6077
- b2dc0b20-ddeb-4459-bfd2-20015663862c
cache-control:
- no-store, proxy-revalidate, no-cache, max-age=0, private
content-type:
- application/json; charset=utf-8
csp-billing-usage:
- CognitiveServices.TextAnalytics.Language.ConversationalLanguageUnderstanding.Prediction=1
date:
- Tue, 31 May 2022 14:25:16 GMT
- Thu, 23 Jun 2022 21:02:40 GMT
pragma:
- no-cache
request-id:
- 459be8fa-7f28-43ac-8862-feed979b6077
- b2dc0b20-ddeb-4459-bfd2-20015663862c
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '130'
- '192'
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
interactions:
- request:
body: '{"kind": "Conversation", "analysisInput": {"conversationItem": {"participantId":
"1", "id": "1", "modality": "text", "language": "en", "text": "Send an email
to Carol about the tomorrow''s demo"}, "isLoggingEnabled": false}, "parameters":
{"projectName": "conv_test", "deploymentName": "dep_test", "verbose": true}}'
headers:
Accept:
- application/json
Content-Length:
- '324'
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-language-conversations/1.0.0 Python/3.10.0 (Windows-10-10.0.22000-SP0)
method: POST
uri: https://test-resource.api.cognitive.microsoft.com/language/:analyze-conversations?api-version=2022-05-01
response:
body:
string: '{"kind":"ConversationResult","result":{"query":"Send an email to Carol
about the tomorrow''s demo","prediction":{"topIntent":"Send","projectKind":"Conversation","intents":[{"category":"Send","confidenceScore":0.9053172},{"category":"Read","confidenceScore":0.44011447},{"category":"Setup","confidenceScore":0.41303915},{"category":"Set","confidenceScore":0.21186642},{"category":"None","confidenceScore":0.20198277},{"category":"Find","confidenceScore":0.19216746},{"category":"Call","confidenceScore":0.16446844},{"category":"Play","confidenceScore":0.15655291},{"category":"Open","confidenceScore":0.08699014}],"entities":[{"category":"Contact","text":"Carol","offset":17,"length":5,"confidenceScore":1,"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"person.name"}]},{"category":"MeetingDate","text":"tomorrow","offset":33,"length":8,"confidenceScore":1,"resolutions":[{"resolutionKind":"DateTimeResolution","dateTimeSubKind":"Date","timex":"2022-06-24","value":"2022-06-24"}],"extraInformation":[{"extraInformationKind":"EntitySubtype","value":"datetime.date"}]}]}}}'
headers:
apim-request-id: c048ea3a-d8e6-4594-8268-18a213a79471
cache-control: no-store, proxy-revalidate, no-cache, max-age=0, private
content-type: application/json; charset=utf-8
csp-billing-usage: CognitiveServices.TextAnalytics.Language.ConversationalLanguageUnderstanding.Prediction=1
date: Thu, 23 Jun 2022 21:02:41 GMT
pragma: no-cache
request-id: c048ea3a-d8e6-4594-8268-18a213a79471
strict-transport-security: max-age=31536000; includeSubDomains; preload
transfer-encoding: chunked
x-content-type-options: nosniff
x-envoy-upstream-service-time: '217'
status:
code: 200
message: OK
url: https://languagesdkresource.cognitiveservices.azure.com//language/:analyze-conversations?api-version=2022-05-01
version: 1
Loading

0 comments on commit 41807f0

Please sign in to comment.