Text Classification
Transformers
PyTorch
English
roberta
humor-detection
humor-classification
joke-detection
humor-vs-non-humor
binary-classification
english
nlp
computational-humor
Instructions to use Humor-Research/humor-detection-comb-23 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Humor-Research/humor-detection-comb-23 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Humor-Research/humor-detection-comb-23")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Humor-Research/humor-detection-comb-23") model = AutoModelForSequenceClassification.from_pretrained("Humor-Research/humor-detection-comb-23") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
library_name: transformers
|
| 5 |
+
pipeline_tag: text-classification
|
| 6 |
+
tags:
|
| 7 |
+
- humor-detection
|
| 8 |
+
- humor-classification
|
| 9 |
+
- joke-detection
|
| 10 |
+
- humor-vs-non-humor
|
| 11 |
+
- binary-classification
|
| 12 |
+
- text-classification
|
| 13 |
+
- english
|
| 14 |
+
- nlp
|
| 15 |
+
- computational-humor
|
| 16 |
+
- roberta
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# English Humor Detection Model
|
| 20 |
+
|
| 21 |
+
This model is part of the **Humor Research** collection of models for **English humor detection**, **humor classification**, and **joke detection**. It can be used for binary text classification tasks such as identifying whether an English text is humorous or non-humorous.
|
| 22 |
+
|
| 23 |
+
## Model name
|
| 24 |
+
|
| 25 |
+
The model name indicates the dataset from the paper on which the model was trained. The numbers in the model name correspond to the random seed used for model initialization.
|
| 26 |
+
|
| 27 |
+
## Recommended model for humor detection
|
| 28 |
+
|
| 29 |
+
If you need a single recommended model for English humor vs. non-humor classification, please refer to the best model from the project:
|
| 30 |
+
|
| 31 |
+
[Humor-Research/humor-detection-comb-23](https://huggingface.co/Humor-Research/humor-detection-comb-23)
|
| 32 |
+
|
| 33 |
+
## Paper
|
| 34 |
+
|
| 35 |
+
This model was released as part of the study:
|
| 36 |
+
|
| 37 |
+
[You Told Me That Joke Twice: A Systematic Investigation of Transferability and Robustness of Humor Detection Models](https://aclanthology.org/2023.emnlp-main.845/)
|
| 38 |
+
|
| 39 |
+
## GitHub repository
|
| 40 |
+
|
| 41 |
+
Code, data processing tools, and additional project information are available here:
|
| 42 |
+
|
| 43 |
+
[Humor-Research/Humor-detection](https://github.com/Humor-Research/Humor-detection)
|
| 44 |
+
|
| 45 |
+
## Citation
|
| 46 |
+
|
| 47 |
+
If you use this model, please cite the following paper:
|
| 48 |
+
|
| 49 |
+
```bibtex
|
| 50 |
+
@inproceedings{baranov-etal-2023-told,
|
| 51 |
+
title = "You Told Me That Joke Twice: A Systematic Investigation of Transferability and Robustness of Humor Detection Models",
|
| 52 |
+
author = "Baranov, Alexander and
|
| 53 |
+
Kniazhevsky, Vladimir and
|
| 54 |
+
Braslavski, Pavel",
|
| 55 |
+
editor = "Bouamor, Houda and
|
| 56 |
+
Pino, Juan and
|
| 57 |
+
Bali, Kalika",
|
| 58 |
+
booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
|
| 59 |
+
month = dec,
|
| 60 |
+
year = "2023",
|
| 61 |
+
address = "Singapore",
|
| 62 |
+
publisher = "Association for Computational Linguistics",
|
| 63 |
+
url = "https://aclanthology.org/2023.emnlp-main.845",
|
| 64 |
+
doi = "10.18653/v1/2023.emnlp-main.845",
|
| 65 |
+
pages = "13701--13715",
|
| 66 |
+
}
|
| 67 |
+
```
|