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.
Instructions to use TextToKids/CamemBERT-base-EmoTextToKids with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TextToKids/CamemBERT-base-EmoTextToKids with Transformers:
# 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") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files5 unmodified lines67891011121314155 unmodified linesClassification model for- input: a sentence + the previous and following sentences- output: 19 labels- is emotional- mode of expression- type of emotion(s) (basic, complex)- category of emotion(s)Will be uploaded pretty soon.5 unmodified lines6789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585 unmodified linesClassification 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 formatThe prompt template is:```before:{previous_sentence}</s>current: {target_sentence}</s>after:{next_sentence}</s>```## Output formatLabels are returned in the following order:0. sentence is emotional1. mode is behavioral2. mode is labeled3. mode is displayed4. mode is suggested5. type is basic6. type is complex7. category is admiration8. category is other9. category is anger10. category is guilt11. category is disgust12. category is embarassement13. category is pride14. category is jealousy15. category is fear16. category is joy17. categoy is fear18. category is surprise19. category is sadnessoKids-sentences)[https://huggingface.co/datasets/TextToKids/EmoTextToKids-sentences]See the (original paper)[https://arxiv.org/pdf/2405.14385] for details about training.## Citation information```bibtex@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}}```
README.md+45-2