@@ -14,7 +14,6 @@ APIs and SDKs that use cognitive computing to solve complex problems.
1414 * [ Usage] ( #usage )
1515 * [ Getting the Service Credentials] ( #getting-the-service-credentials )
1616 * [ Questions] ( #questions )
17- * [ Examples] ( #examples )
1817 * [ IBM Watson Services] ( #ibm-watson-services )
1918 * [ Alchemy Language] ( #alchemy-language )
2019 * [ Alchemy Vision] ( #alchemy-vision )
@@ -23,9 +22,7 @@ APIs and SDKs that use cognitive computing to solve complex problems.
2322 * [ Concept Insights] ( #concept-insights )
2423 * [ Dialog] ( #dialog )
2524 * [ Document Conversion] ( #document-conversion )
26- * [ Language Identification] ( #language-identification )
2725 * [ Language Translation] ( #language-translation )
28- * [ Machine Translation] ( #machine-translation )
2926 * [ Natural Language Classifier] ( #natural-language-classifier )
3027 * [ Personality Insights] ( #personality-insights )
3128 * [ Relationship Extraction] ( #relationship-extraction )
@@ -38,9 +35,7 @@ APIs and SDKs that use cognitive computing to solve complex problems.
3835 * [ Visual Recognition] ( #visual-recognition )
3936 * [ Android] ( #android )
4037 * [ Running in Bluemix] ( #running-in-bluemix )
41- * [ Build + Test] ( #build--test )
4238 * [ Eclipse and Intellij] ( #working-with-eclipse-and-intellij-idea )
43- * [ Open Source @ IBM] ( #open-source--ibm )
4439 * [ License] ( #license )
4540 * [ Contributing] ( #contributing )
4641
@@ -365,9 +360,10 @@ System.out.println(voices);
365360Use the [ Tone Analyzer] [ tone_analyzer ] service to get the tone of your email.
366361
367362``` java
368- ToneAnalyzer service = new ToneAnalyzer ();
363+ ToneAnalyzer service = new ToneAnalyzer (ToneAnalyzer . VERSION_DATE_2016_02_11 );
369364service. setUsernameAndPassword(" <username>" , " <password>" );
370365
366+
371367String text = " I know the times are difficult! Our sales have been "
372368 + " disappointing for the past three quarters for our data analytics "
373369 + " 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 "
377373// Call the service and get the tone
378374Tone tone = service. getTone(text, Scorecard . EMAIL );
379375System . out. println(tone);
376+
377+
378+ ToneAnalysis tone = service. getTone(text);
379+ System . out. println(tone);
380380```
381381
382382
0 commit comments