from transformers import pipeline
classifier = pipeline("text-classification",model='bhadresh-savani/roberta-base-emotion', return_all_scores=True)
prediction = classifier("I love using transformers. The best part is wide range of support and its easy to use", )
print(prediction)
"""Output:[[{'label': 'sadness', 'score': 0.002281982684507966}, {'label': 'joy', 'score': 0.9726489186286926}, {'label': 'love', 'score': 0.021365027874708176}, {'label': 'anger', 'score': 0.0026395076420158148}, {'label': 'fear', 'score': 0.0007162453257478774}, {'label': 'surprise', 'score': 0.0003483477921690792}]]"""
roberta-base-emotion huggingface.co is an AI model on huggingface.co that provides roberta-base-emotion's model effect (), which can be used instantly with this bhadresh-savani roberta-base-emotion model. huggingface.co supports a free trial of the roberta-base-emotion model, and also provides paid use of the roberta-base-emotion. Support call roberta-base-emotion model through api, including Node.js, Python, http.
roberta-base-emotion huggingface.co is an online trial and call api platform, which integrates roberta-base-emotion's modeling effects, including api services, and provides a free online trial of roberta-base-emotion, you can try roberta-base-emotion online for free by clicking the link below.
bhadresh-savani roberta-base-emotion online free url in huggingface.co:
roberta-base-emotion is an open source model from GitHub that offers a free installation service, and any user can find roberta-base-emotion on GitHub to install. At the same time, huggingface.co provides the effect of roberta-base-emotion install, users can directly use roberta-base-emotion installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
roberta-base-emotion install url in huggingface.co: