Skip to content

Commit

Permalink
update credentials, update watson-developer-cloud npm, move descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
JAMES ZHANG committed May 18, 2016
1 parent 4025e10 commit d8e609d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ require('./config/express')(app);
// Create the service wrapper
var toneAnalyzer = watson.tone_analyzer({
url: 'https://gateway.watsonplatform.net/tone-analyzer-beta/api/',
username: '9048d9c1-2e11-4fba-a0f7-b7f13ce15f24',
password: 'neDUB7VGk6Fy',
version_date: '2016-11-02',
version: 'v3-beta'
username: '<username>',
password: '<password>',
version_date: '2016-05-19',
version: 'v3'
});

app.get('/', function(req, res) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"express-rate-limit": "^2.1.0",
"express-secure-only": "^0.2.1",
"helmet": "^1.3.0",
"watson-developer-cloud": "^1.2.5"
"watson-developer-cloud": "https://github.com/watson-developer-cloud/node-sdk.git"
},
"devDependencies": {
"codecov": "^1.0.1",
Expand Down
16 changes: 8 additions & 8 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,6 @@
<h2 class="base--h2">Output</h2>
<p class="base--p output--document-description">The Tone Analyzer Service analyzes text at the document level and the sentence level. Use the document level analysis to get a sense of the overall tone of the document, and use the sentence level analysis to identify specific areas of your content where tones are the strongest.</p>
<h3 class="base--h3 output--document-title">Document-level</h3>
<div class="summary--row">
<div class="summary--emotion-description">
<p class="base--p">The Emotion graph represents the likelihood that an emotion tone is present in the text. <a class="base--a" target="_blank" href="http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/tone-analyzer/understanding-tone.shtml#emotional">Learn more</a>.</p>
</div>
<div class="summary--writing-and-social-description">
<p class="base--p">The Language Style and Social Tendencies graphs represent the amount of a language or social tone present in the text. <a class="base--a" target="_blank" href="http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/tone-analyzer/understanding-tone.shtml#social">Learn more</a>.</p>
</div>
</div>
<div class="summary--row">
<div class="summary--emotion">
<h5 class="base--h5 summary--header">Emotion</h5>
Expand All @@ -141,6 +133,14 @@
<div class="summary-social-graph bar-graph"></div>
</div>
</div>
<div class="summary--row">
<div class="summary--emotion-description">
<p class="base--p">The Emotion graph represents the likelihood that an emotion tone is present in the text. <a class="base--a" target="_blank" href="http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/tone-analyzer/understanding-tone.shtml#emotional">Learn more</a>.</p>
</div>
<div class="summary--writing-and-social-description">
<p class="base--p">The Language Style and Social Tendencies graphs represent the amount of a language or social tone present in the text. <a class="base--a" target="_blank" href="http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/tone-analyzer/understanding-tone.shtml#social">Learn more</a>.</p>
</div>
</div>
<div class="summary-row">
<span class="icon-hyperlink summary-view-code-button">
<img class="icon icon-code" src="images/icons/code.svg" />
Expand Down

0 comments on commit d8e609d

Please sign in to comment.