Skip to content

Commit 143c466

Browse files
omaremadeldinkristapratico
authored andcommitted
[Cognitive Services / Language] Dynamic classification class to classifications (Azure#21550)
* Dynamic classification `class` to `classifications` * Update analyzetext.json * Update analyzetext.json * Update analyzetext.json * update DynamicClassification x-ms-examples Co-authored-by: Krista Pratico <[email protected]>
1 parent c2b2a66 commit 143c466

File tree

4 files changed

+44
-6
lines changed

4 files changed

+44
-6
lines changed

dev/cognitiveservices/data-plane/Language/analyzetext.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,25 @@
768768
"class"
769769
]
770770
},
771+
"DynamicClassificationDocumentResult": {
772+
"type": "object",
773+
"properties": {
774+
"classifications": {
775+
"type": "array",
776+
"items": {
777+
"$ref": "#/definitions/ClassificationResult"
778+
}
779+
}
780+
},
781+
"allOf": [
782+
{
783+
"$ref": "#/definitions/DocumentResult"
784+
}
785+
],
786+
"required": [
787+
"classifications"
788+
]
789+
},
771790
"HealthcareTaskParameters": {
772791
"type": "object",
773792
"description": "Supported parameters for a Healthcare task.",
@@ -3139,7 +3158,7 @@
31393158
"items": {
31403159
"allOf": [
31413160
{
3142-
"$ref": "#/definitions/ClassificationDocumentResult"
3161+
"$ref": "#/definitions/DynamicClassificationDocumentResult"
31433162
}
31443163
]
31453164
}

dev/cognitiveservices/data-plane/Language/examples/text/SuccessfuDynamicClassificationRequest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"documents": [
4141
{
4242
"id": "1",
43-
"class": [
43+
"classifications": [
4444
{
4545
"category": "Health",
4646
"confidenceScore": 0.9
@@ -62,7 +62,7 @@
6262
},
6363
{
6464
"id": "2",
65-
"class": [
65+
"classifications": [
6666
{
6767
"category": "Health",
6868
"confidenceScore": 0.9

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/analyzetext.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,25 @@
768768
"class"
769769
]
770770
},
771+
"DynamicClassificationDocumentResult": {
772+
"type": "object",
773+
"properties": {
774+
"classifications": {
775+
"type": "array",
776+
"items": {
777+
"$ref": "#/definitions/ClassificationResult"
778+
}
779+
}
780+
},
781+
"allOf": [
782+
{
783+
"$ref": "#/definitions/DocumentResult"
784+
}
785+
],
786+
"required": [
787+
"classifications"
788+
]
789+
},
771790
"HealthcareTaskParameters": {
772791
"type": "object",
773792
"description": "Supported parameters for a Healthcare task.",
@@ -3139,7 +3158,7 @@
31393158
"items": {
31403159
"allOf": [
31413160
{
3142-
"$ref": "#/definitions/ClassificationDocumentResult"
3161+
"$ref": "#/definitions/DynamicClassificationDocumentResult"
31433162
}
31443163
]
31453164
}

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/text/SuccessfuDynamicClassificationRequest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"documents": [
4141
{
4242
"id": "1",
43-
"class": [
43+
"classifications": [
4444
{
4545
"category": "Health",
4646
"confidenceScore": 0.9
@@ -62,7 +62,7 @@
6262
},
6363
{
6464
"id": "2",
65-
"class": [
65+
"classifications": [
6666
{
6767
"category": "Health",
6868
"confidenceScore": 0.9

0 commit comments

Comments
 (0)