This repository is used for Pre-training Intent-Aware Encoders (PIE) and evaluating on four intent classification datasets (BANKING77, HWU64, Liu54, and CLINC150).
image_name=pie
code_path=/path/to/intent-aware-encoder
docker build -t $image_name .
nvidia-docker run -it -v ${code_path}:/code $image_name
cd code
conda create -n pie python=3.8
conda activate pie
pip install -r requirements.txt
python -m spacy download en_core_web_md
See the readme in the pretraining
directory.
cd pretraining
See the readme in the downstream
directory.
cd downstream
Parts of the code are modified from mirror-bert, IDML, and ProtAugment. We appreciate the authors for open sourcing their projects.
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.
Please cite the following paper if using the code or data from this project in your work:
@misc{sung2023pretraining,
title={Pre-training Intent-Aware Encoders for Zero- and Few-Shot Intent Classification},
author={Mujeen Sung and James Gung and Elman Mansimov and Nikolaos Pappas and Raphael Shu and Salvatore Romeo and Yi Zhang and Vittorio Castelli},
year={2023},
eprint={2305.14827},
archivePrefix={arXiv},
primaryClass={cs.CL}
}