Code for the following paper:
FiRo: Finite-context Indexing of Restricted Output Space for NLP Models Facing Noisy Input
To setup the required environment
- Install miniconda
- Run
conda env create -n firo -f environment.yml
The examples are in the scripts
folder.
To train FiRo, refer to scripts/firo
folder.
- To evaluate baseline BERT performance on noisy input, refer to
scripts/0_base
folder. - To evaluate advesarially-finetuned BERT on noisy input, refer to
scripts/1_adv
folder. - To evaluate FiRo-assisted BERT on noisy input, refer to
scripts/2_firo
folder.
- Refer to
scripts/3_ner
folder.
If you find this code useful, please cite:
@inproceedings{nguyen2023firo,
title={{FiRo: Finite-context Indexing of Restricted Output Space for NLP Models Facing Noisy Input}},
author={Nguyen, Minh and Chen, Nancy F.},
booktitle={Proceedings of AACL},
year={2023}
}