Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.39 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.39 KB

Enhancing Cross-lingual Prompting with Dual Prompt Augmentation

This is a PyTorch implementation of our paper at ACL 2023 Findings: "Enhancing Cross-lingual Prompting with Dual Prompt Augmentation".

Shell Scripts

  • dpa-{xnli,pawsx}.sh: shell scripts to run DPA training, different strategies can be played around by modifying parameters
  • {xnli,paws-x}.sh shell scripts to run finetuning as a baseline

Python Codes

Dependencies

  • transformers==4.10.3
  • datasets==1.12.1
  • torch==1.7.1

Citation

If you find our code useful, please cite the following, thank you!

```bibtxt
@inproceedings{acl23/DPA,
  author    = {Meng Zhou and
               Xin Li and
               Yue Jiang and
               Lidong Bing},
  title     = {Enhancing Cross-lingual Prompting with Dual Prompt Augmentation},
  booktitle = {Findings of the 2023 ACL},
  year      = {2023},
  url       = {},
}
```