Instructions to use hplisiecki/word2affect_english with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hplisiecki/word2affect_english with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hplisiecki/word2affect_english")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hplisiecki/word2affect_english") model = AutoModel.from_pretrained("hplisiecki/word2affect_english") - Notebooks
- Google Colab
- Kaggle
How to get the Dominance score?
#1
by truongnguyenxuanvinh - opened
Hi
I am using this
pip = pipeline("text-classification", model="hplisiecki/word2affect_english", return_all_scores=True)
to get the valence and arousal scores.
But, how can we get the dominance score as well?
Cheers.
I am pretty sure you can't just plug this model into the huggingface pipelines. Use it as per the model card if you want to. Otherwise I can't help you.
If you have any issues with the instruction already present in the model card let me know.