Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 748 Bytes

File metadata and controls

36 lines (25 loc) · 748 Bytes

SEPC

This repository contains the official code for the paper "Structural Entropy Guided Probabilistic Coding".

Quick start

  1. Download the pretrained model into SEPC/ptms/

  2. Install dependencies

pip install -r requirements.txt
  1. Run examples
bash scripts/run_offensive.sh

Parameters for other datasets could be found in wandb_script_roberta

Use wandb to sweep your best parameters

  1. Define the parameter combinations in wandb_script_roberta

  2. Create a sweep controller

wandb sweep wandb_script_roberta/tweeteval_offensive.yaml
  1. Run sweep agent
wandb agent ***

Credits

The code and datasets in this repository are based on SPC.