ibm-tone-analyzer-python icon indicating copy to clipboard operation
ibm-tone-analyzer-python copied to clipboard

KeyError: 'tone_categories'

Open cschiri opened this issue 6 years ago • 0 comments

Hi Sahir,

When I execute the bunch of code below I get "KeyError: 'tone_categories'". Can you please advise on how I can fix it:

#Traverse the heirarchy of result for i in json_output.result['document_tone']['tone_categories']: for j in i['tones']: #Append the attributes to the data data.set_value(index.result, j['tone_name'], j['score'])

cschiri avatar Dec 20 '18 18:12 cschiri