You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'])
The text was updated successfully, but these errors were encountered:
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'])
The text was updated successfully, but these errors were encountered: