Skip to content

Commit d2e2d6d

Browse files
committed
updated score to confidence score
1 parent e9b1af9 commit d2e2d6d

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@
980980
"type",
981981
"offset",
982982
"length",
983-
"score"
983+
"confidenceScore"
984984
],
985985
"properties": {
986986
"text": {
@@ -1005,7 +1005,7 @@
10051005
"format": "int32",
10061006
"description": "Length (in Unicode characters) for the entity text."
10071007
},
1008-
"score": {
1008+
"confidenceScore": {
10091009
"type": "number",
10101010
"format": "double",
10111011
"description": "Confidence score between 0 and 1 of the extracted entity."
@@ -1117,13 +1117,13 @@
11171117
"Match": {
11181118
"type": "object",
11191119
"required": [
1120-
"score",
1120+
"confidenceScore",
11211121
"text",
11221122
"offset",
11231123
"length"
11241124
],
11251125
"properties": {
1126-
"score": {
1126+
"confidenceScore": {
11271127
"type": "number",
11281128
"format": "double",
11291129
"description": "If a well-known item is recognized, a decimal number denoting the confidence level between 0 and 1 will be returned."

specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/examples/SuccessfulEntitiesRequest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
"category": "Location",
3636
"offset": 26,
3737
"length": 7,
38-
"score": 0.8062429428100586
38+
"confidenceScore": 0.80
3939
},
4040
{
4141
"text": "last week",
4242
"category": "DateTime",
4343
"subcategory": "DateRange",
4444
"offset": 34,
4545
"length": 9,
46-
"score": 0.8
46+
"confidenceScore": 0.8
4747
}
4848
],
4949
"warnings": []
@@ -56,7 +56,7 @@
5656
"category": "Organization",
5757
"offset": 10,
5858
"length": 9,
59-
"score": 0.9998359680175781
59+
"confidenceScore": 0.99
6060
}
6161
],
6262
"warnings": []
@@ -69,15 +69,15 @@
6969
"category": "Organization",
7070
"offset": 10,
7171
"length": 12,
72-
"score": 0.7599651217460632
72+
"confidenceScore": 0.75
7373
},
7474
{
7575
"text": "2",
7676
"category": "Quantity",
7777
"subcategory": "Number",
7878
"offset": 23,
7979
"length": 1,
80-
"score": 0.8
80+
"confidenceScore": 0.8
8181
}
8282
],
8383
"warnings": []

specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/examples/SuccessfulEntityLinkingRequest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"text": "Seattle",
3838
"offset": 26,
3939
"length": 7,
40-
"score": 0.15046201222847677
40+
"confidenceScore": 0.15
4141
}
4242
],
4343
"language": "en",
@@ -58,7 +58,7 @@
5858
"text": "Microsoft",
5959
"offset": 10,
6060
"length": 9,
61-
"score": 0.1869365971673207
61+
"confidenceScore": 0.18
6262
}
6363
],
6464
"language": "en",
@@ -79,7 +79,7 @@
7979
"text": "Space Needle",
8080
"offset": 10,
8181
"length": 12,
82-
"score": 0.155903620065595
82+
"confidenceScore": 0.15
8383
}
8484
],
8585
"language": "en",

specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/examples/SuccessfulEntityPIIRequest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"subcategory": "",
3737
"offset": 28,
3838
"length": 11,
39-
"score": 0.65
39+
"confidenceScore": 0.65
4040
}
4141
],
4242
"warnings": []
@@ -50,7 +50,7 @@
5050
"subcategory": "",
5151
"offset": 18,
5252
"length": 9,
53-
"score": 0.75
53+
"confidenceScore": 0.75
5454
}
5555
],
5656
"warnings": []
@@ -64,7 +64,7 @@
6464
"subcategory": "",
6565
"offset": 3,
6666
"length": 14,
67-
"score": 0.85
67+
"confidenceScore": 0.85
6868
}
6969
],
7070
"warnings": []

specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/examples/SuccessfulSentimentRequest.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
{
2626
"id": "1",
2727
"sentiment": "positive",
28-
"documentScores": {
28+
"confidenceScores": {
2929
"positive": 1.0,
3030
"neutral": 0.0,
3131
"negative": 0.0
3232
},
3333
"sentences": [
3434
{
3535
"sentiment": "positive",
36-
"sentenceScores": {
36+
"confidenceScores": {
3737
"positive": 1.0,
3838
"neutral": 0.0,
3939
"negative": 0.0
@@ -74,7 +74,7 @@
7474
},
7575
{
7676
"sentiment": "neutral",
77-
"sentenceScores": {
77+
"confidenceScores": {
7878
"positive": 0.13,
7979
"neutral": 0.86,
8080
"negative": 0.01
@@ -131,7 +131,7 @@
131131
},
132132
{
133133
"sentiment": "positive",
134-
"sentenceScores": {
134+
"confidenceScores": {
135135
"positive": 1.0,
136136
"neutral": 0.0,
137137
"negative": 0.0
@@ -176,15 +176,15 @@
176176
{
177177
"id": "2",
178178
"sentiment": "negative",
179-
"documentScores": {
179+
"confidenceScores": {
180180
"positive": 0.01,
181181
"neutral": 0.14,
182182
"negative": 0.85
183183
},
184184
"sentences": [
185185
{
186186
"sentiment": "negative",
187-
"sentenceScores": {
187+
"confidenceScores": {
188188
"positive": 0.0,
189189
"neutral": 0.0,
190190
"negative": 1.0
@@ -226,7 +226,7 @@
226226
},
227227
{
228228
"sentiment": "negative",
229-
"sentenceScores": {
229+
"confidenceScores": {
230230
"positive": 0.02,
231231
"neutral": 0.44,
232232
"negative": 0.54
@@ -268,7 +268,7 @@
268268
},
269269
{
270270
"sentiment": "negative",
271-
"sentenceScores": {
271+
"confidenceScores": {
272272
"positive": 0.0,
273273
"neutral": 0.0,
274274
"negative": 1.0

0 commit comments

Comments
 (0)