Technology moves fast! ⚡ Don't get left behind.🚶 Subscribe to our mailing list to keep up with latest and greatest in open source projects! 🏆


Subscribe to our mailing list

tone-analyzer-nodejs

Sample Node.js Application for the IBM Tone Analyzer Service

Subscribe to updates I use tone-analyzer-nodejs


Statistics on tone-analyzer-nodejs

Number of watchers on Github 355
Number of open issues 3
Average time to close an issue 7 days
Main language CSS
Average time to merge a PR 3 days
Open pull requests 16+
Closed pull requests 7+
Last commit over 1 year ago
Repo Created about 4 years ago
Repo Last Updated over 1 year ago
Size 873 KB
Homepage https://tone-anal...
Organization / Authorwatson-developer-cloud
Latest ReleaseV2
Contributors4
Page Updated
Do you use tone-analyzer-nodejs? Leave a review!
View open issues (3)
View tone-analyzer-nodejs activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating tone-analyzer-nodejs for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Tone Analyzer Starter Application Build Status

The IBM Watson Tone Analyzer service is a cognitive linguistic analysis service that detects 7 tones which are most commonly used to detect the tone of written text. These are: anger, fear, joy, sadness, confident, analytical, and tentative.

Deploy to IBM Cloud

Getting started

  1. You need an IBM Cloud account. If you don't have one, sign up. Experimental Watson Services are free to use.

  2. Download and install the Cloud-foundry CLI tool if you haven't already.

  3. Edit the manifest.yml file and change <application-name> to something unique. The name you use determines the URL of your application. For example, <application-name>.mybluemix.net.

  applications:
  - services:
    - my-service-instance
    name: <application-name>
    command: npm start
    path: .
    memory: 512M
  1. Connect to IBM Cloud with the command line tool.
  cf api https://api.ng.bluemix.net
  cf login
  1. Create and retrieve service keys to access the Tone Analyzer service:
  cf create-service tone_analyzer lite my-tone-analyzer-service
  cf create-service-key my-tone-analyzer-service myKey
  cf service-key my-tone-analyzer-service myKey
  1. Create a .env file in the root directory by copying the sample .env.example file using the following command:
  cp .env.example .env

You will update the .env with the information you retrieved in steps 5.

  1. Install the dependencies you application need:
  npm install
  1. Start the application locally:
  npm start
  1. Point your browser to http://localhost:3000.

  2. Optional: Push the application to IBM Cloud:

  cf push

After completing the steps above, you are ready to test your application. Start a browser and enter the URL of your application.

        <your application name>.mybluemix.net

For more details about developing applications that use Watson Developer Cloud services in IBM Cloud, see Getting started with Watson Developer Cloud and IBM Cloud.

Troubleshooting

  • The main source of troubleshooting and recovery information is the IBM Cloud log. To view the log, run the following command:
  cf logs <application-name> --recent
  • For more details about the service, see the documentation for the Tone Analyzer.

License

This sample code is licensed under Apache 2.0. Full license text is available in LICENSE.

Contributing

See CONTRIBUTING.

Open Source @ IBM

Find more open source projects on the IBM Github Page

Privacy Notice

This node sample web application includes code to track deployments to IBM Cloud and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (application_uris)

This data is collected from the VCAP_APPLICATION environment variable in IBM Cloud and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Cloud. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

Disabling Deployment Tracking

Deployment tracking can be disabled by removing require('cf-deployment-tracker-client').track(); from the beginning of the server.js file at the root of this repo.

tone-analyzer-nodejs open issues Ask a question     (View All Issues)
  • about 3 years Document-level inline help for graphs headers only
  • about 3 years Document level tone tool tip changes for scores only
tone-analyzer-nodejs open pull requests (View All Pulls)
  • express@4.13.4 untested ⚠️
  • Update watson-developer-cloud to version 1.2.1 ?
  • errorhandler@1.4.3 untested ⚠️
  • Update watson-developer-cloud to version 1.2.0 ?
  • Update watson-developer-cloud to version 1.1.3 ?
  • Update watson-developer-cloud to version 1.1.2 ?
  • Update watson-developer-cloud to version 1.1.1 ?
  • body-parser@1.14.2 untested ⚠️
  • Update watson-developer-cloud to version 1.1.0 ?
  • watson-developer-cloud@1.2.5 untested ⚠️
  • [PENDING - DON'T MERGE] UI updates
  • Add Content Security Policy header, fixed known security flaws
  • added feedback form
  • added text changes
  • Implement simple D2BM Button
  • use published npm package
tone-analyzer-nodejs list of languages used
tone-analyzer-nodejs latest release notes
V2 V2

Tone Analyzer V2 uses synonyms and scorecards to calculate the tone of an email

Other projects in CSS