cspocketindia
first commit
01f65eb
raw
history blame
No virus
412 Bytes
import json
class Utility:
def read_emotion_list(self):
with open('./emotion_mapping_finalized.json') as emo_mapping_file:
finalized_emotions = json.load(emo_mapping_file)
emotions_mapping = {}
for key, values in finalized_emotions.items():
for emotion in values:
emotions_mapping[emotion] = key
return list(finalized_emotions.keys())