Improve of the research paper Consistent Representation Learning for Continual Relation Extraction (Findings of ACL 2022)
Memory Replay Architecture
Use anaconda to create python environment:
conda create --name yourname python=3.8
conda activate yourname
Install Pytorch (suggestions>=1.7) and related environmental dependencies:
pip install -r requirements.txt
python run_continual.py --dataname FewRel
Version 1: Using raw prototypes
python run_continual.py --dataname FewRel --protos_raw True
Version 2: Multitask training with pareto in memory
python run_continual.py --dataname FewRel --multitask True
Version 3: Memory augmentation
python run_continual.py --dataname FewRel --multitask False --protoAug True