Skip to content

Himabindugssn/Sentiment-classification-using-transformers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Sentiment classification using transformers

Objective:

Fine tuning BERT to classify sentiment of given text into POSITIVE or NEGATIVE.

Dataset used:

Link to the dataset.

Framework used:

Pytorch

Method of fine-tuning

  • Froze the pre-trained BERT model's architecture.
  • Added new layers to the BERT model
  • Considered the class weights while deifing the loss function, stratified data while splitting into train, test and validation to handle the imbalance in the dataset.
  • Used BERT tokenizer to process texts before fine-tuning.

Result

image

References:

About

Fine-tuning BERT to classify the sentiment of a given text (using Pytorch framework).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors