Skip to content

Commit 48415ea

Browse files
committed
resolved review comments
1 parent e87451d commit 48415ea

File tree

1 file changed

+4
-4
lines changed
  • articles/cognitive-services/text-analytics/includes/quickstarts

1 file changed

+4
-4
lines changed

articles/cognitive-services/text-analytics/includes/quickstarts/java-sdk.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ static void sentimentAnalysisExample(TextAnalyticsClient client)
116116

117117
DocumentSentiment documentSentiment = client.analyzeSentiment(text);
118118
System.out.printf(
119-
"Recognized TextSentiment: %s, Positive Score: %.2f, Neutral Score: %.2f, Negative Score: %.2f.%n",
119+
"Recognized document sentiment: %s, Positive Score: %.2f, Neutral Score: %.2f, Negative Score: %.2f.%n",
120120
documentSentiment.getSentiment(),
121121
documentSentiment.getSentimentScores().getPositive(),
122122
documentSentiment.getSentimentScores().getNeutral(),
123123
documentSentiment.getSentimentScores().getNegative());
124124

125125
for (SentenceSentiment sentenceSentiment : documentSentiment.getSentences()) {
126126
System.out.printf(
127-
"Recognized sentence sentiment: %s, positive score: %s, neutral score: %s, negative score: %.2f.%n",
127+
"Recognized sentence sentiment: %s, positive score: %.2f, neutral score: %.2f, negative score: %.2f.%n",
128128
sentenceSentiment.getSentiment(),
129129
sentenceSentiment.getSentimentScores().getPositive(),
130130
sentenceSentiment.getSentimentScores().getNeutral(),
@@ -136,8 +136,8 @@ static void sentimentAnalysisExample(TextAnalyticsClient client)
136136
### Output
137137

138138
```console
139-
Recognized TextSentiment: positive, Positive Score: 1.00, Neutral Score: 0.00, Negative Score: 0.00.
140-
Recognized sentence sentiment: positive, positive score: 1.0, neutral score: 0.0, negative score: 0.0.
139+
Recognized document sentiment: positive, Positive Score: 1.00, Neutral Score: 0.00, Negative Score: 0.00.
140+
Recognized sentence sentiment: positive, positive score: 1.00, neutral score: 0.00, negative score: 0.00.
141141
Recognized sentence sentiment: neutral, positive score: 0.21, neutral score: 0.77, negative score: 0.02.
142142
```
143143
## Language detection

0 commit comments

Comments
 (0)