The Expression Measurement API is being sunset.
The emotional language model measures 53 dimensions of emotional expression from the meaning and tone of text. It
supports 5 additional expressions beyond the other models: Annoyance, Disapproval, Enthusiasm, Gratitude, and Sarcasm.
Recommended input filetypes: .txt, .mp3, .wav, .mp4.
You can optionally enable sentiment analysis and toxicity detection alongside emotion scores. The NER model can also be run alongside emotional language to identify named entities in text.
Each prediction includes:
begin and end character indicesThe granularity parameter controls how text is segmented before predictions are generated.
When sentiment is enabled, each prediction includes a probability distribution over a 9-point scale, where 1
represents the most negative sentiment and 9 represents the most positive.
When toxicity is enabled, each prediction includes scores for the following categories:
When processing audio or video with the language model, Hume transcribes speech to text before analysis. Transcription settings are configured separately from models.
The NER model identifies people, places, organizations, and other entities in text. It can be run alongside the emotional language model.
NER accepts one job configuration parameter:
The emotional language model measures the following 53 expressions. The 5 expressions marked with * are unique to the language model and not available in the face, prosody, or vocal burst models.