├── README.md ├── __init__.py ├── adapt_switch.py ├── compute_metrics.py ├── data └── Ubuntu_V1_Xu │ ├── README.txt │ ├── create_adaptation_data.py │ ├── create_finetuning_data.py │ └── tokenization.py ├── image ├── Douban_Ecommerce.png └── UbuntuV1_V2.png ├── metrics.py ├── modeling_switch.py ├── optimization.py ├── output └── README.txt ├── scripts ├── adaptation.sh ├── ubuntu_test.sh └── ubuntu_train.sh ├── test.py ├── tokenization.py ├── train.py ├── uncased_L-12_H-768_A-12 └── README.txt └── uncased_L-12_H-768_A-12_adapted └── README.txt /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/__init__.py -------------------------------------------------------------------------------- /adapt_switch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/adapt_switch.py -------------------------------------------------------------------------------- /compute_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/compute_metrics.py -------------------------------------------------------------------------------- /data/Ubuntu_V1_Xu/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/data/Ubuntu_V1_Xu/README.txt -------------------------------------------------------------------------------- /data/Ubuntu_V1_Xu/create_adaptation_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/data/Ubuntu_V1_Xu/create_adaptation_data.py -------------------------------------------------------------------------------- /data/Ubuntu_V1_Xu/create_finetuning_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/data/Ubuntu_V1_Xu/create_finetuning_data.py -------------------------------------------------------------------------------- /data/Ubuntu_V1_Xu/tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/data/Ubuntu_V1_Xu/tokenization.py -------------------------------------------------------------------------------- /image/Douban_Ecommerce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/image/Douban_Ecommerce.png -------------------------------------------------------------------------------- /image/UbuntuV1_V2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/image/UbuntuV1_V2.png -------------------------------------------------------------------------------- /metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/metrics.py -------------------------------------------------------------------------------- /modeling_switch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/modeling_switch.py -------------------------------------------------------------------------------- /optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/optimization.py -------------------------------------------------------------------------------- /output/README.txt: -------------------------------------------------------------------------------- 1 | 2 | Models will be saved here. 3 | -------------------------------------------------------------------------------- /scripts/adaptation.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/scripts/adaptation.sh -------------------------------------------------------------------------------- /scripts/ubuntu_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/scripts/ubuntu_test.sh -------------------------------------------------------------------------------- /scripts/ubuntu_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/scripts/ubuntu_train.sh -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/test.py -------------------------------------------------------------------------------- /tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/tokenization.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/train.py -------------------------------------------------------------------------------- /uncased_L-12_H-768_A-12/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/uncased_L-12_H-768_A-12/README.txt -------------------------------------------------------------------------------- /uncased_L-12_H-768_A-12_adapted/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JasonForJoy/SA-BERT/HEAD/uncased_L-12_H-768_A-12_adapted/README.txt --------------------------------------------------------------------------------