Batch processing

Analyse a text file with one text per line in your browser and download the emotions, dimensions and roles as a table.

Runs in your browser

Choose a plain text file (UTF-8) with one text per line, up to 10,000 lines. The file is analysed in your browser: it is not uploaded, and nothing is stored.

Model (each about 570 MB, downloaded only when you start)
The three models
No perspective model‡Perspective model‡30-corpora model‡
Whose emotionnot distinguished; use it if you do not know the perspectiveyou choose: the writer's, that of a person in the text, or the reader'snot distinguished
Training data27 corpora, only labels made by people30 corpora, including automatically labelled ones
Emotion categoriesyes (9)yes (9)yes (9)
Valence and arousalyesyesno
Emotion componentsyes (5)yes (5)no
Appraisalsyes (16), only for texts that describe an eventyes (16), only for texts that describe an eventno
Licensenon-commercial usenon-commercial usenon-commercial research only
Use

Emotion roles (who feels an emotion, what causes it, which words show it) come from a separate tagger, which you can add to any of the three models.

The table

One row per line of your file: the predicted emotions with their probabilities, valence and arousal, whether the text describes an event, the emotion components, the appraisals (only for texts that describe an event) and, if switched on, the emotion roles.

All columns
  • line: line number in your file; text: the line (tabs and line breaks become spaces).
  • model: no perspective, perspective or 30 corpora; model_id: the exact model, as on the general models page; perspective: the chosen perspective (writer, experiencer, reader or not-specified), empty for the other two models.
  • emotions: the predicted emotions, comma-separated (if none is above its threshold, the most probable one).
  • For each of anger, disgust, fear, joy, sadness, surprise, shame_guilt, trust and none: <emotion>_prob (probability, from 0 to 1) and <emotion> (1 if above the threshold tuned on validation data, else 0).
  • The 30-corpora model predicts emotion categories only, so its table ends here (apart from roles, if switched on). The other two models also give:
  • valence, arousal: from 0 to 1.
  • event_prob, event: whether the text describes an event (1 or 0). The probabilities are very small; the threshold is set so that 95% of event texts pass.
  • For each emotion component (cognitive, neurophysiological, motivational, motor_expression, subjective_feeling): <component>_prob and <component> (1 or 0).
  • appraisal_<dimension>: the 16 appraisal dimensions from 0 to 1, empty if the model finds no event.
  • With roles: role_experiencer, role_stimulus_target, role_cue: the marked text spans, separated by " | ".

What the models are

The same three models as in the demo: half-precision (fp16) versions of the no perspective model‡, the perspective model‡ (both non-commercial use only) and the 30-corpora model‡ (non-commercial research only), three of our general models. All three are on Hugging Face.

More about the models

Empty lines are skipped. The chosen model (about 570 MB) is downloaded once, unless your browser has it already from the demo. On a laptop, expect about 10 lines per second, about 2 with emotion roles; the page shows the time left, and you can stop and still download the lines analysed so far.

Texts longer than about 200 words are cut off, as in the demo. For more than 10,000 texts, use a downloaded model with Python; the general models page has the code.