EmotionPredictor

scoring.EmotionPredictor.make_emotion_data(emotion: str, dict_to_use: dict = None, ck=True)

Make emotion data for classifiers

Parameters:
  • emotion – Emotion to classify
  • dict_to_use – Location of stored dict
  • ck – If ck dict exists
scoring.EmotionPredictor.use_classifier(out_q, emotion: str, classifier)

Train an emotion classifier

Parameters:
  • out_q – Queue to put classification report in (for multiprocessing)
  • emotion – emotion to classify
  • classifier – classifier to train and dump