COSINE
[NAACL 2021] This is the code for our paper `Fine-Tuning Pre-trained Language Model with Weak Supervision: A Contrastive-Regularized Self-Training Approach'.
File Explorer
Download Latest Version (.zip)- dev_data.json
- test_data.json
- train_data.json
- unlabeled_data.json
- chemprot_rules.py
- dev_data.json
- Readme.md
- rule_analysis.png
- test_data.json
- train_data.json
- unlabeled_data.json
- dev_data.json
- test_data.json
- train_data.json
- unlabeled_data.json
- dev_data.json
- readme.md
- rules.py
- test_data.json
- train_data.json
- unlabeled_data.json
- dev_data.json
- test_data.json
- train_data.json
- unlabeled_data.json
- dev_data.json
- test_data.json
- train_data.json
- train_unlabeled_data.json
- dev_data.json
- test_data.json
- train_data.json
- unlabeled_data.json
- .txt
- COSINE.png
- data_loader_new.py
- LICENSE.txt
- main.py
- model.py
- modeling_roberta.py
- README.md
- requirements.txt
- run_agnews.sh
- trainer.py
- utils.py
# Installation Guide
1. Get the code
git clone https://github.com/yueyu1030/COSINE
Downloads the entire project code from GitHub to your computer.
cd COSINE
Moves into the project folder you just downloaded.
2. Python
Easy RecommendedPrerequisites
pip install -r requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python main.py
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
