bhadresh-savani / bert-base-uncased-emotion

huggingface.co
Total runs: 12.1K
24-hour runs: -155
7-day runs: 4.8K
30-day runs: 4.4K
Model's Last Updated: March 22 2023
text-classification

Introduction of bert-base-uncased-emotion

Model Details of bert-base-uncased-emotion

bert-base-uncased-emotion

Model description:

Bert is a Transformer Bidirectional Encoder based Architecture trained on MLM(Mask Language Modeling) objective

bert-base-uncased finetuned on the emotion dataset using HuggingFace Trainer with below training parameters

 learning rate 2e-5, 
 batch size 64,
 num_train_epochs=8,
Model Performance Comparision on Emotion Dataset from Twitter:
Model Accuracy F1 Score Test Sample per Second
Distilbert-base-uncased-emotion 93.8 93.79 398.69
Bert-base-uncased-emotion 94.05 94.06 190.152
Roberta-base-emotion 93.95 93.97 195.639
Albert-base-v2-emotion 93.6 93.65 182.794
How to Use the model:
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}
]]
"""
Dataset:

Twitter-Sentiment-Analysis .

Training procedure

Colab Notebook follow the above notebook by changing the model name from distilbert to bert

Eval results
{
 'test_accuracy': 0.9405,
 'test_f1': 0.9405920712282673,
 'test_loss': 0.15769127011299133,
 'test_runtime': 10.5179,
 'test_samples_per_second': 190.152,
 'test_steps_per_second': 3.042
 }
Reference:

Runs of bhadresh-savani bert-base-uncased-emotion on huggingface.co

12.1K
Total runs
-155
24-hour runs
-608
3-day runs
4.8K
7-day runs
4.4K
30-day runs

More Information About bert-base-uncased-emotion huggingface.co Model

More bert-base-uncased-emotion license Visit here:

https://choosealicense.com/licenses/apache-2.0

bert-base-uncased-emotion huggingface.co

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 Url

https://huggingface.co/bhadresh-savani/bert-base-uncased-emotion

bhadresh-savani bert-base-uncased-emotion online free

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:

https://huggingface.co/bhadresh-savani/bert-base-uncased-emotion

bert-base-uncased-emotion install

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:

https://huggingface.co/bhadresh-savani/bert-base-uncased-emotion

Url of bert-base-uncased-emotion

bert-base-uncased-emotion huggingface.co Url

Provider of bert-base-uncased-emotion huggingface.co

bhadresh-savani
ORGANIZATIONS

Other API from bhadresh-savani