from transformers import pipeline
classifier = pipeline("text-classification",model='bhadresh-savani/electra-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.0006792712374590337}, {'label': 'joy', 'score': 0.9959300756454468}, {'label': 'love', 'score': 0.0009452480007894337}, {'label': 'anger', 'score': 0.0018055217806249857}, {'label': 'fear', 'score': 0.00041110432357527316}, {'label': 'surprise', 'score': 0.0002288572577526793}]]"""
electra-base-emotion huggingface.co is an AI model on huggingface.co that provides electra-base-emotion's model effect (), which can be used instantly with this bhadresh-savani electra-base-emotion model. huggingface.co supports a free trial of the electra-base-emotion model, and also provides paid use of the electra-base-emotion. Support call electra-base-emotion model through api, including Node.js, Python, http.
electra-base-emotion huggingface.co is an online trial and call api platform, which integrates electra-base-emotion's modeling effects, including api services, and provides a free online trial of electra-base-emotion, you can try electra-base-emotion online for free by clicking the link below.
bhadresh-savani electra-base-emotion online free url in huggingface.co:
electra-base-emotion is an open source model from GitHub that offers a free installation service, and any user can find electra-base-emotion on GitHub to install. At the same time, huggingface.co provides the effect of electra-base-emotion install, users can directly use electra-base-emotion installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
electra-base-emotion install url in huggingface.co: