This repository contains the implementation for the paper "Enhancing Discriminative Representation in Similar Relation Clusters for Few-Shot Continual Relation Extraction," NAACL 2025.
pip install transformers==4.40.0 torch==2.3.0 scikit-learn==1.4.2 nltk==3.8.1 retry==0.9.2
cd Bert/bash
bash tacred_5shot.sh
bash fewrel_5shot.sh
pip install llm2vec==0.2.2
pip install flash-attn --no-build-isolation
your_huggingface_token_to_access_model with your actual Hugging Face access token.
huggingface-cli login --token your_huggingface_token_to_access_model
config.ini file.cd LLM/bash
bash tacred_5shot.sh
bash fewrel_5shot.sh
float32 precision.bf16 precision.bf16 to float32.73 commits
Python
99.3%
This repository contains the implementation for the paper "Enhancing Discriminative Representation in Similar Relation Clusters for Few-Shot Continual Relation Extraction," NAACL 2025.
pip install transformers==4.40.0 torch==2.3.0 scikit-learn==1.4.2 nltk==3.8.1 retry==0.9.2
cd Bert/bash
bash tacred_5shot.sh
bash fewrel_5shot.sh
pip install llm2vec==0.2.2
pip install flash-attn --no-build-isolation
your_huggingface_token_to_access_model with your actual Hugging Face access token.
huggingface-cli login --token your_huggingface_token_to_access_model
config.ini file.cd LLM/bash
bash tacred_5shot.sh
bash fewrel_5shot.sh
float32 precision.bf16 precision.bf16 to float32.73 commits
Python
99.3%