This repository contains the official code for the paper "Structural Entropy Guided Probabilistic Coding".
-
Download the pretrained model into SEPC/ptms/
-
Install dependencies
pip install -r requirements.txt- Run examples
bash scripts/run_offensive.shParameters for other datasets could be found in wandb_script_roberta
-
Define the parameter combinations in wandb_script_roberta
-
Create a sweep controller
wandb sweep wandb_script_roberta/tweeteval_offensive.yaml- Run sweep agent
wandb agent ***The code and datasets in this repository are based on SPC.