Skip to content

akshayg08/bert_classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bert_classifier

A BERT based classifier for sentiment classification. The code in this repository contains the script for training the classifier. For training the classifier, the BERT backbone can either be kept frozen or fine-tuned by specifying the appropriate argument.

The model is optimized using the AdamW optimizer implemented in optimizer.py.

For training the classfier, run the following command:

python3 classifier.py --option [freeze/finetune] --epochs NUM_EPOCHS --lr LR --train {train_path} --dev {dev_path} --test {test_path}

About

A BERT based classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages