Skip to content

JunKong5/HAdaBERT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAdaBERT

This is code for Hierarchical BERT with an Adaptive Fine-Tuning Strategy for Document Classification

Requirements

transformers == 3.1.0
torch == 1.2.0
python == 3.6.9
easydict == 1.9

usage

  • Datasets
    the Reuters, AAPD,IMDB and Yelp-2013 datasets are available at here

  • Running the model over IMDB dataset
    adabert_encoder:
    python run.py --run train --dataset IMDB --mode adabert_encoder --version fine-tune
    global_encoder:
    python run.py --run train --dataset IMDB --mode gencoder --version global_encoder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published