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