Code for "Efficient Nearest Neighbor based Uncertainty Estimation for Natural Language Processing Tasks" in Findings of NAACL 2025.
.
├── classification/ # classification tasks (sentiment analysis and natural language inference)
└── ner/ # named entity recognition
We used Singularity environment.
module load singularity
singularity build --fakeroot research-dev.sif research-dev.def
Please see data/README.md
.
cd classification
sbatch batch_run_custom_classification.sh
cd ner
sbatch batch_run_custom_ner.sh