PRAGAS/
├── FCRE/ # Few-Shot Continual Relation Extraction
│ ├── CPL/ # Contrastive Prompt Learning
│ └── SIRUS/ # Similar Relation Clusters
└── CED/ # Continual Event Detection
└── SharpSeq/ # Sharp Sequence Learning
cd FCRE
pip install -r requirements.txt
With BERT encoder:
cd CPL
bash bash/bash.sh
With Large Language Models (LLM):
cd CPL
bash bash/bash_llm.sh
With BERT encoder:
cd SIRUS/BERT
bash bash/fewrel_5shot.sh # For FewRel dataset
bash bash/tacred_5shot.sh # For TACRED dataset
With Large Language Models (LLM):
cd SIRUS/LLM
bash bash/fewrel_5shot.sh # For FewRel dataset
bash bash/tacred_5shot.sh # For TACRED dataset
cd CED
pip install -r requirements.txt
SharpSeq on MAVEN dataset:
bash sh/maven.sh
If you use this code in your research, please cite:
@article{pragas2025,
title={PRAGAS: Enhancing Few-Shot Continual Relation Extraction via Pairwise Augmentation and Guided Sharpness-Aware Optimization},
author={Dat, Hoang Thanh and Anh, Nguyen Hoang and Hai, Nam Le and Van, Linh Ngo and Dinh, Sang},
journal={Artificial Intelligence},
year={2025},
note={Manuscript Number: ARTINT-D-25-01408}
}
26 commits
Python
98.8%
PRAGAS/
├── FCRE/ # Few-Shot Continual Relation Extraction
│ ├── CPL/ # Contrastive Prompt Learning
│ └── SIRUS/ # Similar Relation Clusters
└── CED/ # Continual Event Detection
└── SharpSeq/ # Sharp Sequence Learning
cd FCRE
pip install -r requirements.txt
With BERT encoder:
cd CPL
bash bash/bash.sh
With Large Language Models (LLM):
cd CPL
bash bash/bash_llm.sh
With BERT encoder:
cd SIRUS/BERT
bash bash/fewrel_5shot.sh # For FewRel dataset
bash bash/tacred_5shot.sh # For TACRED dataset
With Large Language Models (LLM):
cd SIRUS/LLM
bash bash/fewrel_5shot.sh # For FewRel dataset
bash bash/tacred_5shot.sh # For TACRED dataset
cd CED
pip install -r requirements.txt
SharpSeq on MAVEN dataset:
bash sh/maven.sh
If you use this code in your research, please cite:
@article{pragas2025,
title={PRAGAS: Enhancing Few-Shot Continual Relation Extraction via Pairwise Augmentation and Guided Sharpness-Aware Optimization},
author={Dat, Hoang Thanh and Anh, Nguyen Hoang and Hai, Nam Le and Van, Linh Ngo and Dinh, Sang},
journal={Artificial Intelligence},
year={2025},
note={Manuscript Number: ARTINT-D-25-01408}
}
26 commits
Python
98.8%