I am new to python and trying to get Json output from IBM Watson tone analyzer. Here is what I used from Tone analyzer API reference:
import json
from watson_developer_cloud import ToneAnalyzerV3
tone_analyzer = ToneAnalyzerV3(
username='YOUR SERVICE USERNAME',
password='YOUR SERVICE PASSWORD',
version='2016-05-19')
The problem here is when I run the code in python it doesn't seem to find 'watson developer cloud' module (even after I did a pip install
).
All I am trying to do is pass on a few text files through IBM Watson tone analyzer and get the outputs in CSV format.
I would really appreciate any inputs with this.