Skip to content

Commit

Permalink
Merge pull request Azure#7 from josuhazure/josuh_aspect
Browse files Browse the repository at this point in the history
Reverting 3.0-preview change + resolving comments for aspect
  • Loading branch information
laramume authored Mar 11, 2020
2 parents b324a5e + 5bef0e7 commit f026b1e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
"required": [
"id",
"sentiment",
"confidenceScores",
"documentScores",
"sentences"
],
"properties": {
Expand All @@ -590,7 +590,7 @@
"statistics": {
"$ref": "#/definitions/DocumentStatistics"
},
"confidenceScores": {
"documentScores": {
"description": "Document level sentiment confidence scores between 0 and 1 for each sentiment class.",
"$ref": "#/definitions/SentimentConfidenceScorePerLabel"
},
Expand Down Expand Up @@ -681,17 +681,12 @@
"SentenceSentiment": {
"type": "object",
"required": [
"text",
"sentiment",
"confidenceScores",
"sentenceScores",
"offset",
"length"
],
"properties": {
"text": {
"type": "string",
"description": "The sentence text."
},
"sentiment": {
"type": "string",
"description": "The predicted Sentiment for the sentence.",
Expand All @@ -705,7 +700,7 @@
"modelAsString": false
}
},
"confidenceScores": {
"sentenceScores": {
"description": "The sentiment confidence score between 0 and 1 for the sentence for all classes.",
"$ref": "#/definitions/SentimentConfidenceScorePerLabel"
},
Expand Down Expand Up @@ -1124,4 +1119,4 @@
"x-ms-skip-url-encoding": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
},
"sentences": [
{
"text": "Hello world.",
"sentiment": "neutral",
"sentenceScores": {
"positive": 0.070910170674324,
Expand All @@ -48,7 +47,6 @@
"length": 12
},
{
"text": "This is some input text that I love.",
"sentiment": "positive",
"sentenceScores": {
"positive": 0.998519241809845,
Expand All @@ -70,7 +68,6 @@
},
"sentences": [
{
"text": "It's incredibly sunny outside!",
"sentiment": "neutral",
"sentenceScores": {
"positive": 0.0499138832092285,
Expand All @@ -81,7 +78,6 @@
"length": 30
},
{
"text": "I'm so happy.",
"sentiment": "positive",
"sentenceScores": {
"positive": 0.9954571723937988,
Expand All @@ -103,7 +99,6 @@
},
"sentences": [
{
"text": "Pike place market is my favorite Seattle attraction.",
"sentiment": "positive",
"sentenceScores": {
"positive": 0.9965128302574158,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
"/sentiment": {
"post": {
"summary": "Sentiment",
"description": "The API returns a sentiment prediction, as well as sentiment scores for each sentiment class (Positive, Negative, and Neutral) for the document and each sentence within it. See the <a href=\"https://aka.ms/talangs\">Supported languages in Text Analytics API</a> for the list of enabled languages.",
"description": "The API returns a detailed sentiment analysis for the input text. The analysis is done in multiple levels of granularity, start from the a document level, down to sentence and key terms (aspects) and opinions.",
"operationId": "Sentiment",
"consumes": [
"application/json",
Expand Down Expand Up @@ -513,7 +513,7 @@
},
"targetRef": {
"type": "string",
"description": "The JSON pointer indicating the linked object."
"description": "A JSON pointer reference indicating the target object."
}
}
},
Expand Down Expand Up @@ -762,7 +762,7 @@
"length": {
"type": "integer",
"format": "int32",
"description": "The length of the sentence by Unicode standard."
"description": "The length of the sentence."
},
"aspects": {
"type": "array",
Expand Down Expand Up @@ -812,7 +812,7 @@
"length": {
"type": "integer",
"format": "int32",
"description": "The length of the aspect by Unicode standard."
"description": "The length of the aspect."
},
"text": {
"type": "string",
Expand Down Expand Up @@ -859,7 +859,7 @@
"length": {
"type": "integer",
"format": "int32",
"description": "The length of the opinion by Unicode standard."
"description": "The length of the opinion."
},
"text": {
"type": "string",
Expand Down Expand Up @@ -1003,12 +1003,12 @@
"offset": {
"type": "integer",
"format": "int32",
"description": "Start position (in Unicode characters) for the entity text."
"description": "Start position for the entity text."
},
"length": {
"type": "integer",
"format": "int32",
"description": "Length (in Unicode characters) for the entity text."
"description": "Length for the entity text."
},
"confidenceScore": {
"type": "number",
Expand Down Expand Up @@ -1140,12 +1140,12 @@
"offset": {
"type": "integer",
"format": "int32",
"description": "Start position (in Unicode characters) for the entity match text."
"description": "Start position for the entity match text."
},
"length": {
"type": "integer",
"format": "int32",
"description": "Length (in Unicode characters) for the entity match text."
"description": "Length for the entity match text."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
{
"sentiment": "positive",
"confidenceScores": {
"positive": 1,
"negative": 0
"positive": 1.0,
"negative": 0.0
},
"offset": 6,
"length": 10,
Expand All @@ -63,8 +63,8 @@
{
"sentiment": "positive",
"confidenceScores": {
"positive": 1,
"negative": 0
"positive": 1.0,
"negative": 0.0
},
"offset": 0,
"length": 5,
Expand Down Expand Up @@ -145,8 +145,8 @@
{
"sentiment": "positive",
"confidenceScores": {
"positive": 1,
"negative": 0
"positive": 1.0,
"negative": 0.0
},
"offset": 71,
"length": 5,
Expand All @@ -163,8 +163,8 @@
{
"sentiment": "positive",
"confidenceScores": {
"positive": 1,
"negative": 0
"positive": 1.0,
"negative": 0.0
},
"offset": 81,
"length": 8,
Expand Down Expand Up @@ -285,8 +285,8 @@
{
"sentiment": "negative",
"confidenceScores": {
"positive": 0,
"negative": 1
"positive": 0.0,
"negative": 1.0
},
"offset": 73,
"length": 5,
Expand All @@ -303,8 +303,8 @@
{
"sentiment": "negative",
"confidenceScores": {
"positive": 0,
"negative": 1
"positive": 0.0,
"negative": 1.0
},
"offset": 87,
"length": 8,
Expand Down

0 comments on commit f026b1e

Please sign in to comment.