KEMBAR78
Add self training code for text classification by tuvuumass · Pull Request #16738 · huggingface/transformers · GitHub
Skip to content

Conversation

@tuvuumass
Copy link
Contributor

@tuvuumass tuvuumass commented Apr 12, 2022

This is an implementation of the self-training algorithm (without task augmentation) for classification tasks proposed in the EMNLP 2021 paper: STraTA: Self-Training with Task Augmentation for Better Few-shot Learning. For the original codebase, please check out https://github.com/google-research/google-research/tree/master/STraTA. Note that this code can be used as a tool for automatic data labeling.

The pull request includes a README.md file with detailed instructions on how to set up a virtual environment and install necessary packages. It also includes a demo run.sh on how to perform self-training with a BERT Base model on the SciTail science entailment dataset using 8 labeled examples per class.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 12, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks a lot for adding this new example! Just to be sure, the empty strata file is intended? I didn't get why it's there.

@tuvuumass
Copy link
Contributor Author

Very nice, thanks a lot for adding this new example! Just to be sure, the empty strata file is intended? I didn't get why it's there.

Good catch, @sgugger. Just removed the empty strata file. Thanks!

@sgugger sgugger merged commit 34ef029 into huggingface:main Apr 13, 2022
elusenji pushed a commit to elusenji/transformers that referenced this pull request Jun 12, 2022
* Add self-training code for text-classification

* Add self-training code for text-classification

* Add self-training code for text-classification

* Add self-training code for text-classification

* Add self-training code for text-classification

* Delete strata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants