Skip to content

Commit 1ad841a

Browse files
Update README.md
[tone-analyzer] Update example fixes #216
1 parent b88f8c3 commit 1ad841a

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -363,20 +363,21 @@ Use the [Tone Analyzer][tone_analyzer] service to get the tone of your email.
363363
ToneAnalyzer service = new ToneAnalyzer(ToneAnalyzer.VERSION_DATE_2016_02_11);
364364
service.setUsernameAndPassword("<username>", "<password>");
365365

366-
367-
String text = "I know the times are difficult! Our sales have been "
368-
+ "disappointing for the past three quarters for our data analytics "
369-
+ "product suite. We have a competitive data analytics product "
370-
+ "suite in the industry. But we need to do our job selling it! "
371-
+ "We need to acknowledge and fix our sales challenges.";
366+
String text =
367+
"I know the times are difficult! Our sales have been "
368+
+ "disappointing for the past three quarters for our data analytics "
369+
+ "product suite. We have a competitive data analytics product "
370+
+ "suite in the industry. But we need to do our job selling it! "
371+
+ "We need to acknowledge and fix our sales challenges. "
372+
+ "We can’t blame the economy for our lack of execution! "
373+
+ "We are missing critical sales opportunities. "
374+
+ "Our product is in no way inferior to the competitor products. "
375+
+ "Our clients are hungry for analytical tools to improve their "
376+
+ "business outcomes. Economy has nothing to do with it.";
372377

373378
// Call the service and get the tone
374-
Tone tone = service.getTone(text, Scorecard.EMAIL);
375-
System.out.println(tone);
376-
377-
378379
ToneAnalysis tone = service.getTone(text);
379-
System.out.println(tone);
380+
System.out.println(tone);
380381
```
381382

382383

0 commit comments

Comments
 (0)