/CBPM

Code for paper "Few-shot relation classification using clustering-based prototype modification"

Primary LanguagePython

CBPM

Code for paper "Few-shot relation classification using clustering-based prototype modification"

Link

paper

Getting Started

To get started with this code, you'll need to have Python 3 installed on your system. You'll also need to install the required packages by running:

pip install -r requirements.txt

Once you have the dependencies installed, you can run the training script by executing:

python train.py

Dataset

The dataset used for this project is stored in the data folder. Please make sure to place your dataset in this folder before running the code.

Cite

If you use the code, please cite this paper:

@article{wen2023few,
  title={Few-shot relation classification using clustering-based prototype modification},
  author={Wen, Mingtong and Xia, Tingyu and Liao, Bowen and Tian, Yuan},
  journal={Knowledge-Based Systems},
  volume={268},
  pages={110477},
  year={2023},
  publisher={Elsevier}
}