Run this model with HF Jobs

Run TextToKids/CamemBERT-base-EmoTextToKids on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/TextToKids/CamemBERT-base-EmoTextToKids. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/TextToKids/CamemBERT-base-EmoTextToKids on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="TextToKids/CamemBERT-base-EmoTextToKids")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("TextToKids/CamemBERT-base-EmoTextToKids")
model = AutoModelForSequenceClassification.from_pretrained("TextToKids/CamemBERT-base-EmoTextToKids", device_map="auto")
Quick Links

CamemBERT-EmoTextToKids

Classification model for

  • input: a sentence + the previous and following sentences
  • output: 20 labels
    • is emotional
    • mode of expression
    • type of emotion(s) (basic, complex)
    • category of emotion(s)

Input format

The prompt template is: before:{previous_sentence}</s>current: {target_sentence}</s>after:{next_sentence}</s>

Output format

Labels are returned in the following order: 0. sentence is emotional

  1. mode is behavioral
  2. mode is labeled
  3. mode is displayed
  4. mode is suggested
  5. type is basic
  6. type is complex
  7. category is admiration
  8. category is other
  9. category is anger
  10. category is guilt
  11. category is disgust
  12. category is embarassement
  13. category is pride
  14. category is jealousy
  15. category is fear
  16. category is joy
  17. categoy is fear
  18. category is surprise
  19. category is sadness

See the original paper for details about training.

Dataset

See EmoTextToKids-sentences

Citation information

@inproceedings{etienne2024emotion,
  title={Emotion Identification for French in Written Texts: Considering Modes of Emotion Expression as a Step Towards Text Complexity Analysis},
  author={{\'E}tienne, Aline and Battistelli, Delphine and Lecorv{\'e}, Gw{\'e}nol{\'e}},
  booktitle={Proceedings of the 14th ACL Workshop on Computational Approaches to Subjectivity, Sentiment & Social Media Analysis (WASSA)},
  year={2024}
}
Downloads last month
43
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Paper for TextToKids/CamemBERT-base-EmoTextToKids