Use this program to analyze the tone of a .txt file.
You'll need to have node.js installed on your machine.
Change directory to the path of this application
Run:
npm install
Done!
Create a free Tone Analyzer service by signing into your IBM Cloud account. You can use this quick link which will redirect you to the Tone Analyzer service or IBM Cloud signup if you do not have an account.
Add your service credentials of your newly created instance to line 15 and 16 on the tone.js file.
This utility consumes .txt files only. Save the .txt file you wish to analyze to the same folder as this application. The folder structure must be flat (no nested directories).
Open terminal (mac) or command line (PC) and type the following:
node tone.js -f sample.txt -o outputName
Where sample.txt is the txt file name that you wish to analyze and outputName is the name of the json file that the utility saves.
If you do not include the -o
flag, the utility will name the output file the same as the file name input, appending .json.