Skip to content

woaksths/Classic-Self-Training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classic-Self-Training-for-Few-Shot-Text-Classification

This repo re-implemented the general self-training mechanism by applying a pretrained language model, BERT.

In this, we train the teacher model(BERT) on labeled data to generate pseudo-labels on unlabeled data, train the student model(BERT) on pseudo-labeled and augmented data, and repeat the teacher-student training untill convergence.

Install

$pip install -r requirements.txt

Usage

#Before running this command, recommend to check the argument option through $python train.py --help
$python train.py --train_path $TRAIN_PATH --test_path $TEST_PATH --save_path $CHECKPOINT --do_augment True

About

Classic Self-Training for Few Shot Text Classification

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages