@@ -66,7 +66,7 @@ curl -i -X POST <your-language-resource-endpoint>/language/:analyze-text?api-ver
66
66
{
67
67
"id":"1",
68
68
"language":"en",
69
- "text": "The customer service here is really good ."
69
+ "text": "The food and service were unacceptable. The concierge was nice, however ."
70
70
}
71
71
]
72
72
}
@@ -82,34 +82,82 @@ curl -i -X POST <your-language-resource-endpoint>/language/:analyze-text?api-ver
82
82
"results" : {
83
83
"documents" : [{
84
84
"id" : " 1" ,
85
- "sentiment" : " positive " ,
85
+ "sentiment" : " mixed " ,
86
86
"confidenceScores" : {
87
- "positive" : 1.0 ,
87
+ "positive" : 0.47 ,
88
88
"neutral" : 0.0 ,
89
- "negative" : 0.0
89
+ "negative" : 0.52
90
90
},
91
91
"sentences" : [{
92
- "sentiment" : " positive " ,
92
+ "sentiment" : " negative " ,
93
93
"confidenceScores" : {
94
- "positive" : 1 .0 ,
94
+ "positive" : 0 .0 ,
95
95
"neutral" : 0.0 ,
96
- "negative" : 0.0
96
+ "negative" : 0.99
97
97
},
98
98
"offset" : 0 ,
99
- "length" : 41 ,
100
- "text" : " The customer service here is really good." ,
99
+ "length" : 40 ,
100
+ "text" : " The food and service were unacceptable. " ,
101
+ "targets" : [{
102
+ "sentiment" : " negative" ,
103
+ "confidenceScores" : {
104
+ "positive" : 0.0 ,
105
+ "negative" : 1.0
106
+ },
107
+ "offset" : 4 ,
108
+ "length" : 4 ,
109
+ "text" : " food" ,
110
+ "relations" : [{
111
+ "relationType" : " assessment" ,
112
+ "ref" : " #/documents/0/sentences/0/assessments/0"
113
+ }]
114
+ }, {
115
+ "sentiment" : " negative" ,
116
+ "confidenceScores" : {
117
+ "positive" : 0.0 ,
118
+ "negative" : 1.0
119
+ },
120
+ "offset" : 13 ,
121
+ "length" : 7 ,
122
+ "text" : " service" ,
123
+ "relations" : [{
124
+ "relationType" : " assessment" ,
125
+ "ref" : " #/documents/0/sentences/0/assessments/0"
126
+ }]
127
+ }],
128
+ "assessments" : [{
129
+ "sentiment" : " negative" ,
130
+ "confidenceScores" : {
131
+ "positive" : 0.0 ,
132
+ "negative" : 1.0
133
+ },
134
+ "offset" : 26 ,
135
+ "length" : 12 ,
136
+ "text" : " unacceptable" ,
137
+ "isNegated" : false
138
+ }]
139
+ }, {
140
+ "sentiment" : " positive" ,
141
+ "confidenceScores" : {
142
+ "positive" : 0.94 ,
143
+ "neutral" : 0.01 ,
144
+ "negative" : 0.05
145
+ },
146
+ "offset" : 40 ,
147
+ "length" : 32 ,
148
+ "text" : " The concierge was nice, however." ,
101
149
"targets" : [{
102
150
"sentiment" : " positive" ,
103
151
"confidenceScores" : {
104
152
"positive" : 1.0 ,
105
153
"negative" : 0.0
106
154
},
107
- "offset" : 4 ,
108
- "length" : 16 ,
109
- "text" : " customer service " ,
155
+ "offset" : 44 ,
156
+ "length" : 9 ,
157
+ "text" : " concierge " ,
110
158
"relations" : [{
111
159
"relationType" : " assessment" ,
112
- "ref" : " #/documents/0/sentences/0 /assessments/0"
160
+ "ref" : " #/documents/0/sentences/1 /assessments/0"
113
161
}]
114
162
}],
115
163
"assessments" : [{
@@ -118,16 +166,16 @@ curl -i -X POST <your-language-resource-endpoint>/language/:analyze-text?api-ver
118
166
"positive" : 1.0 ,
119
167
"negative" : 0.0
120
168
},
121
- "offset" : 36 ,
169
+ "offset" : 58 ,
122
170
"length" : 4 ,
123
- "text" : " good " ,
171
+ "text" : " nice " ,
124
172
"isNegated" : false
125
173
}]
126
174
}],
127
175
"warnings" : []
128
176
}],
129
177
"errors" : [],
130
- "modelVersion" : " 2021-10 -01"
178
+ "modelVersion" : " 2022-06 -01"
131
179
}
132
180
}
133
181
```
0 commit comments