File size: 4,487 Bytes
d3e4409 1c9657a d3e4409 fc97eea d3e4409 41ca605 fc97eea d3e4409 41ca605 fc97eea d3e4409 1c9657a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
---
language:
- en
multilinguality:
- monolingual
size_categories:
- 100K<n<1M
task_categories:
- feature-extraction
- sentence-similarity
pretty_name: Stack Exchange Duplicates
tags:
- sentence-transformers
dataset_info:
- config_name: body-body-pair
features:
- name: body1
dtype: string
- name: body2
dtype: string
splits:
- name: train
num_bytes: 305549013
num_examples: 250460
download_size: 181363161
dataset_size: 305549013
- config_name: post-post-pair
features:
- name: post1
dtype: string
- name: post2
dtype: string
splits:
- name: train
num_bytes: 333790087
num_examples: 250519
download_size: 194620191
dataset_size: 333790087
- config_name: title-title-pair
features:
- name: title1
dtype: string
- name: title2
dtype: string
splits:
- name: train
num_bytes: 35778522
num_examples: 304525
download_size: 25068596
dataset_size: 35778522
configs:
- config_name: body-body-pair
data_files:
- split: train
path: body-body-pair/train-*
- config_name: post-post-pair
data_files:
- split: train
path: post-post-pair/train-*
- config_name: title-title-pair
data_files:
- split: train
path: title-title-pair/train-*
---
# Dataset Card for Stack Exchange Duplicates
This dataset contains the Stack Exchange Duplicates dataset in three formats that are easily used with Sentence Transformers to train embedding models. The data was originally extracted using the [Stack Exchange API](https://data.stackexchange.com/apple/query/fork/1456963) and taken from [embedding-training-data](https://huggingface.co/datasets/sentence-transformers/embedding-training-data).
Each pair contains data from two Stack Exchange posts that were marked as duplicates. `title-title-pair` only has the titles, `body-body-pair` only the bodies, and `post-post-pair` has both.
## Dataset Subsets
### `title-title-pair` subset
* Columns: "title1", "title2"
* Column types: `str`, `str`
* Examples:
```python
{
'title1': 'what is the advantage of using the GPU rendering options in Android?',
'title2': 'Can anyone explain all these Developer Options?',
}
```
* Collection strategy: Reading the Stack Exchange Duplicates (title, title) dataset from [embedding-training-data](https://huggingface.co/datasets/sentence-transformers/embedding-training-data).
* Deduplified: No
### `body-body-pair` subset
* Columns: "body1", "body2"
* Column types: `str`, `str`
* Examples:
```python
{
'body1': "I've been wondering about this for years. It seems like a pretty obvious question, so I'm surprised not to have found it addressed among the other Tolkien minutiae on this site. Hopefully I haven't missed it, but anyway, here goes... In Tolkien's Middle-Earth writings, Evil cannot create things, only twist and warp what already exists. Thus, Orcs are twisted Elves, Trolls are twisted Ents, etc. So then, what's the original source for Dragons? They look pretty original to me! The only template that seems even remotely possible is the Eagles, as they're both powerful fliers, but the connection seems very remote indeed. Also, as twisted copies Orcs and Trolls are markedly inferior to Elves and Ents respectively, but I'm not aware of any text describing Dragons as inferior to Eagles.",
'body2': 'All that I know of Smaug is that he (she?) came out of nowhere to attack and conquer Erebor. Where exactly did he come from? In fact, what are the origins of dragons? Did Ilúvatar create them or did they come from somewhere else?',
}
```
* Collection strategy: Reading the Stack Exchange Duplicates (body, body) dataset from [embedding-training-data](https://huggingface.co/datasets/sentence-transformers/embedding-training-data).
* Deduplified: No
### `post-post-pair` subset
* Columns: "post1", "post2"
* Column types: `str`, `str`
* Examples:
```python
{
'post1': 'Hyperdrive vs Warp drive. Which is fastest? In Star Trek Warp Factor 36 is the highest FTL speed while in star wars I think the fastest canon was 0.4. So which is faster?',
'post2': "Is a warp drive faster than a hyperdrive? What's faster: a warp drive from Star Trek, or a hyperdrive from Star Wars?",
}
```
* Collection strategy: Reading the Stack Exchange Duplicates (title+body, title+body) dataset from [embedding-training-data](https://huggingface.co/datasets/sentence-transformers/embedding-training-data).
* Deduplified: No |