Skip to content

This is the code for the paper "Exploring Euphemism Detection in Few-Shot and Zero-Shot Settings" at EMNLP FigLang Workshop 2022

Notifications You must be signed in to change notification settings

sedrickkeh/zero-shot-euphemism-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exploring Euphemism Detection in Few-Shot and Zero-Shot Settings

This is the official code for the paper "Exploring Euphemism Detection in Few-Shot and Zero-Shot Settings" accepted at EMNLP FigLang Workshop 2022 under the Euphemism Detection Shared Task.

Dataset

We use the dataset from the Euphemism Detection Shared Task, which is available here. For creating the few-shot and zero-shot datasets, please refer to the details in the paper. We provide sample splits in few and zero.

Training and Evaluation

To train,

python train.py --availability zero --category employment

This will create a saved model for every checkpoint at the specified output path. See train.py for specific arguments.

To evaluate,

python evaluate.py --availability zero --category employment --model_path (checkpoint-path)/pytorch_model.bin

About

This is the code for the paper "Exploring Euphemism Detection in Few-Shot and Zero-Shot Settings" at EMNLP FigLang Workshop 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages