Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages