@@ -14,7 +14,6 @@ APIs and SDKs that use cognitive computing to solve complex problems. |
14 | 14 | * [Usage](#usage) |
15 | 15 | * [Getting the Service Credentials](#getting-the-service-credentials) |
16 | 16 | * [Questions](#questions) |
17 | | - * [Examples](#examples) |
18 | 17 | * [IBM Watson Services](#ibm-watson-services) |
19 | 18 | * [Alchemy Language](#alchemy-language) |
20 | 19 | * [Alchemy Vision](#alchemy-vision) |
@@ -23,9 +22,7 @@ APIs and SDKs that use cognitive computing to solve complex problems. |
23 | 22 | * [Concept Insights](#concept-insights) |
24 | 23 | * [Dialog](#dialog) |
25 | 24 | * [Document Conversion](#document-conversion) |
26 | | - * [Language Identification](#language-identification) |
27 | 25 | * [Language Translation](#language-translation) |
28 | | - * [Machine Translation](#machine-translation) |
29 | 26 | * [Natural Language Classifier](#natural-language-classifier) |
30 | 27 | * [Personality Insights](#personality-insights) |
31 | 28 | * [Relationship Extraction](#relationship-extraction) |
@@ -38,9 +35,7 @@ APIs and SDKs that use cognitive computing to solve complex problems. |
38 | 35 | * [Visual Recognition](#visual-recognition) |
39 | 36 | * [Android](#android) |
40 | 37 | * [Running in Bluemix](#running-in-bluemix) |
41 | | - * [Build + Test](#build--test) |
42 | 38 | * [Eclipse and Intellij](#working-with-eclipse-and-intellij-idea) |
43 | | - * [Open Source @ IBM](#open-source--ibm) |
44 | 39 | * [License](#license) |
45 | 40 | * [Contributing](#contributing) |
46 | 41 |
|
@@ -365,9 +360,10 @@ System.out.println(voices); |
365 | 360 | Use the [Tone Analyzer][tone_analyzer] service to get the tone of your email. |
366 | 361 |
|
367 | 362 | ```java |
368 | | -ToneAnalyzer service = new ToneAnalyzer(); |
| 363 | +ToneAnalyzer service = new ToneAnalyzer(ToneAnalyzer.VERSION_DATE_2016_02_11); |
369 | 364 | service.setUsernameAndPassword("<username>", "<password>"); |
370 | 365 |
|
| 366 | + |
371 | 367 | String text = "I know the times are difficult! Our sales have been " |
372 | 368 | + "disappointing for the past three quarters for our data analytics " |
373 | 369 | + "product suite. We have a competitive data analytics product " |
@@ -377,6 +373,10 @@ String text = "I know the times are difficult! Our sales have been " |
377 | 373 | // Call the service and get the tone |
378 | 374 | Tone tone = service.getTone(text, Scorecard.EMAIL); |
379 | 375 | System.out.println(tone); |
| 376 | + |
| 377 | + |
| 378 | +ToneAnalysis tone = service.getTone(text); |
| 379 | +System.out.println(tone); |
380 | 380 | ``` |
381 | 381 |
|
382 | 382 |
|
|