Coder Social home page Coder Social logo

the-naughtyformer's Introduction

The Naughtyformer: A Transformer Understands Offensive Humor

Jokes are intentionally written to be funny, but not all jokes are created the same. Some jokes may be fit for a classroom of kindergarteners, but others are best reserved for a more mature audience. While recent work has shown impressive results on humor detection in text, here we instead investigate the more nuanced task of detecting humor subtypes, especially of the less innocent variety. To that end, we introduce a novel jokes dataset filtered from Reddit and solve the subtype classification task using a finetuned Transformer dubbed the Naughtyformer. Moreover, we show that our model is significantly better at detecting offensiveness in jokes compared to state-of-the-art methods.

Dataset

To train the Naughtyformer, we introduce a dataset of 92,153 total jokes across categories of 1) Clean Jokes, 2) Dark Jokes, and 3) Dirty Jokes. We also include a fourth category, News, representing a non-joke.

The cleaned and post-processed data is found in cleaned_data.csv. The original Reddit is found in raw_data/.

Model Checkpoint

Our DeBERTa checkpoint for the Naughtyformer can be found here.

Citation

If you find this useful in your research, please consider citing:

@article{tang2022naughtyformer,
  title={The Naughtyformer: A Transformer Understands Offensive Humor},
  author={Tang, Leonard and Cai, Alexander and Li, Steve and Wang, Jason},
  journal={arXiv preprint arXiv:2211.14369},
  year={2022}
}

the-naughtyformer's People

Contributors

leonardtang avatar

Stargazers

 avatar Christos Ziakas avatar Christopher Jung avatar Alexander Cai avatar Nick Doiron avatar

Watchers

 avatar Christopher Jung avatar

the-naughtyformer's Issues

The model files are not correct

The optimizer and pytorch_mode.bin are both 22M where the original microsoft/deberta-base is 559M. I think this didnt get fully loaded.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.