Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# KoWit-24
|
| 2 |
|
| 3 |
[](https://github.com/Humor-Research/KoWit-24/)
|
|
@@ -19,7 +31,6 @@ We present KoWit-24, a dataset with fine-grained annotation of wordplay in 2,700
|
|
| 19 |
- [Download](#Download)
|
| 20 |
- [Key features](#Key-features)
|
| 21 |
- [How to load and use](#How-to-load-and-use)
|
| 22 |
-
- [Repository structure](#Repository-structure)
|
| 23 |
- [Experiments](#Experiments)
|
| 24 |
- [Wordplay detection](#Wordplay-detection)
|
| 25 |
- [Wordplay interpretation](#Wordplay-interpretation)
|
|
@@ -96,45 +107,18 @@ dataset = load_dataset("Humor-Research/KoWit-24", data_files=data_files)
|
|
| 96 |
|
| 97 |
```
|
| 98 |
|
| 99 |
-
## Repository structure
|
| 100 |
-
The repository is organized into two main parts: data artifacts and experiment notebooks.
|
| 101 |
-
|
| 102 |
-
```text
|
| 103 |
-
KoWit-24/
|
| 104 |
-
├── Data/
|
| 105 |
-
│ ├── openai_batch_task/ # JSON files for OpenAI batch inference runs
|
| 106 |
-
│ ├── dataset/ # Dataset files
|
| 107 |
-
│ ├── predictions/ # Stored model outputs for detection and interpretation experiments
|
| 108 |
-
│ └── processed_data/ # Preprocessed inputs, prompts, and auxiliary annotation files
|
| 109 |
-
├── Notebooks/
|
| 110 |
-
│ ├── Experiments/ # Notebooks for the main experiments
|
| 111 |
-
│ │ ├── wordplay_detection/
|
| 112 |
-
│ │ ├── wordplay_detection_extended_prompt/
|
| 113 |
-
│ │ ├── wordplay_detection_extended_prompt_ria/
|
| 114 |
-
│ │ ├── wordplay_detection_ria/
|
| 115 |
-
│ │ ├── wordplay_interpretation/
|
| 116 |
-
│ │ ├── wordplay_interpretation_extended_prompt/
|
| 117 |
-
│ │ ├── wordplay_interpretation_extended_prompt_ria/
|
| 118 |
-
│ │ └── wordplay_interpretation_ria/
|
| 119 |
-
│ └── Reports and tables/ # Notebooks for evaluation, aggregation, and result tables
|
| 120 |
-
│ ├── automatic_evaluation_interpretations/
|
| 121 |
-
│ └── processing_classification_data/
|
| 122 |
-
└── README.md # Project overview, dataset description, and usage instructions
|
| 123 |
-
```
|
| 124 |
-
|
| 125 |
## Experiments
|
| 126 |
|
| 127 |
For the experiments, we allocated 200 records (100 from each class) for the development set, making sure that all wordplay types were represented. Thus, the test set contains 2,500 headlines (1,290 with and 1,310 without wordplay). We experimented with two tasks – wordplay detection and wordplay interpretation. We employed five LLMs: GPT-4o, Mistral NeMo 12B, YandexGPT4, GigaChat Lite, and GigaChat Max.
|
| 128 |
|
| 129 |
### Wordplay detection
|
| 130 |
|
| 131 |
-
Wordplay detection was conducted across all models on the full dataset. The development set was utilized for providing examples in the prompt. Performance was evaluated based on the *is_wordplay* field. Examples of model predictions and parsing results are available [here](Notebooks/Experiments/wordplay_detection) and [here](Notebooks/Experiments/wordplay_detection_extended_prompt).
|
| 132 |
|
| 133 |
### Wordplay interpretation
|
| 134 |
|
| 135 |
-
Word interpretation was performed on the entire dataset; however, the quality of the interpretations was assessed only for instances labeled as containing wordplay. Additionally, automatic interpretation was enabled when either *reference_string* or *reference_url* was present. The code can be found [here](Notebooks/Experiments/wordplay_interpretation) and [here](Notebooks/Experiments/wordplay_interpretation_extended_prompt).
|
| 136 |
|
| 137 |
-
The aforementioned tasks were also performed on the RIA Novosti dataset. The corresponding code and results are available [here](Notebooks/Experiments/wordplay_detection_extended_prompt_ria) and [here](Notebooks/Experiments/wordplay_interpretation_extended_prompt_ria).
|
| 138 |
|
| 139 |
#### Automatic interpretation evaluation
|
| 140 |
|
|
@@ -144,7 +128,7 @@ To facilitate the evaluation of other large language models (LLMs) and to ensure
|
|
| 144 |
pip install git+https://github.com/Humor-Research/kowit24_evaluation.git
|
| 145 |
```
|
| 146 |
|
| 147 |
-
An example of usage is available [here](Notebooks/Reports
|
| 148 |
|
| 149 |
```python
|
| 150 |
|
|
@@ -246,4 +230,4 @@ for example in dataset["test"]:
|
|
| 246 |
pages = "125--132"
|
| 247 |
}
|
| 248 |
|
| 249 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ru
|
| 4 |
+
tags:
|
| 5 |
+
- humor
|
| 6 |
+
- humor-detection
|
| 7 |
+
- humor-interpretation
|
| 8 |
+
- interpretability
|
| 9 |
+
pretty_name: KoWit-24
|
| 10 |
+
size_categories:
|
| 11 |
+
- 1K<n<10K
|
| 12 |
+
---
|
| 13 |
# KoWit-24
|
| 14 |
|
| 15 |
[](https://github.com/Humor-Research/KoWit-24/)
|
|
|
|
| 31 |
- [Download](#Download)
|
| 32 |
- [Key features](#Key-features)
|
| 33 |
- [How to load and use](#How-to-load-and-use)
|
|
|
|
| 34 |
- [Experiments](#Experiments)
|
| 35 |
- [Wordplay detection](#Wordplay-detection)
|
| 36 |
- [Wordplay interpretation](#Wordplay-interpretation)
|
|
|
|
| 107 |
|
| 108 |
```
|
| 109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
## Experiments
|
| 111 |
|
| 112 |
For the experiments, we allocated 200 records (100 from each class) for the development set, making sure that all wordplay types were represented. Thus, the test set contains 2,500 headlines (1,290 with and 1,310 without wordplay). We experimented with two tasks – wordplay detection and wordplay interpretation. We employed five LLMs: GPT-4o, Mistral NeMo 12B, YandexGPT4, GigaChat Lite, and GigaChat Max.
|
| 113 |
|
| 114 |
### Wordplay detection
|
| 115 |
|
| 116 |
+
Wordplay detection was conducted across all models on the full dataset. The development set was utilized for providing examples in the prompt. Performance was evaluated based on the *is_wordplay* field. Examples of model predictions and parsing results are available [here](https://github.com/Humor-Research/KoWit-24/tree/main/Notebooks/Experiments/wordplay_detection) and [here](https://github.com/Humor-Research/KoWit-24/tree/main/Notebooks/Experiments/wordplay_detection_extended_prompt).
|
| 117 |
|
| 118 |
### Wordplay interpretation
|
| 119 |
|
| 120 |
+
Word interpretation was performed on the entire dataset; however, the quality of the interpretations was assessed only for instances labeled as containing wordplay. Additionally, automatic interpretation was enabled when either *reference_string* or *reference_url* was present. The code can be found [here](https://github.com/Humor-Research/KoWit-24/tree/main/Notebooks/Experiments/wordplay_interpretation) and [here](https://github.com/Humor-Research/KoWit-24/tree/main/Notebooks/Experiments/wordplay_interpretation_extended_prompt).
|
| 121 |
|
|
|
|
| 122 |
|
| 123 |
#### Automatic interpretation evaluation
|
| 124 |
|
|
|
|
| 128 |
pip install git+https://github.com/Humor-Research/kowit24_evaluation.git
|
| 129 |
```
|
| 130 |
|
| 131 |
+
An example of usage is available [here](https://github.com/Humor-Research/KoWit-24/blob/main/Notebooks/Reports%20and%20tables/automatic_evaluation_interpretations/evaluation_extended_prompt_module.ipynb). Alternatively, refer to the example provided below.
|
| 132 |
|
| 133 |
```python
|
| 134 |
|
|
|
|
| 230 |
pages = "125--132"
|
| 231 |
}
|
| 232 |
|
| 233 |
+
```
|