set proper split size, add python example
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ dataset_info:
|
|
| 20 |
dtype: string
|
| 21 |
splits:
|
| 22 |
- name: train
|
| 23 |
-
num_bytes:
|
| 24 |
num_examples: 147753
|
| 25 |
train-eval-index:
|
| 26 |
- config: default
|
|
@@ -46,6 +46,16 @@ The actual extract of all top-level posts on `/r/DadJokes` can be found in the `
|
|
| 46 |
* Removed too short and too long posts. Also removed all punchlines being emojis or URLs.
|
| 47 |
* There are a lot of duplicate submissions present, so we used the `intfloat/e5-base-v2` model for semantic deduplication.
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
## Stats
|
| 50 |
|
| 51 |
147753 jokes split to `intro` and `punchline` parts. Jokes are from 2014 till 2022.
|
|
|
|
| 20 |
dtype: string
|
| 21 |
splits:
|
| 22 |
- name: train
|
| 23 |
+
num_bytes: 19203073
|
| 24 |
num_examples: 147753
|
| 25 |
train-eval-index:
|
| 26 |
- config: default
|
|
|
|
| 46 |
* Removed too short and too long posts. Also removed all punchlines being emojis or URLs.
|
| 47 |
* There are a lot of duplicate submissions present, so we used the `intfloat/e5-base-v2` model for semantic deduplication.
|
| 48 |
|
| 49 |
+
## Usage
|
| 50 |
+
|
| 51 |
+
Dataset has all the metadata to be used with the [HF Datasets] library:
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
from datasets import load_dataset
|
| 55 |
+
|
| 56 |
+
data = load_dataset('shuttie/reddit-dadjokes', split='train')
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
## Stats
|
| 60 |
|
| 61 |
147753 jokes split to `intro` and `punchline` parts. Jokes are from 2014 till 2022.
|