-
Prepare sib200: refer to https://github.com/dadelani/sib-200.
-
Conduct 1-shot in-context learning:
icl/get_signal.py
-
Train retriever:
train_retriever.py
-
Get retrieved results:
internal_retriever.py
-
Conduct in-context learning:
icl/eval.py
@misc{lin2024xampler,
title={XAMPLER: Learning to Retrieve Cross-Lingual In-Context Examples},
author={Peiqin Lin and André F. T. Martins and Hinrich Schütze},
year={2024},
eprint={2405.05116},
archivePrefix={arXiv},
primaryClass={cs.CL}
}