Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,16 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
dataset_info:
|
3 |
- config_name: triplet-5
|
4 |
features:
|
@@ -46,3 +58,41 @@ configs:
|
|
46 |
- split: train
|
47 |
path: triplet-all/train-*
|
48 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
multilinguality:
|
5 |
+
- monolingual
|
6 |
+
size_categories:
|
7 |
+
- 100K<n<1M
|
8 |
+
task_categories:
|
9 |
+
- feature-extraction
|
10 |
+
- sentence-similarity
|
11 |
+
pretty_name: Natural Questions with mined hard negatives
|
12 |
+
tags:
|
13 |
+
- sentence-transformers
|
14 |
dataset_info:
|
15 |
- config_name: triplet-5
|
16 |
features:
|
|
|
58 |
- split: train
|
59 |
path: triplet-all/train-*
|
60 |
---
|
61 |
+
|
62 |
+
# Dataset Card for Natural Questions with mined hard negatives
|
63 |
+
|
64 |
+
This dataset is a collection of question-answer-negative triplets and question-answer-negative_1...-negative_5 tuples from the Natural Questions dataset. See [Natural Questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) for additional information.
|
65 |
+
This dataset can be used directly with Sentence Transformers to train embedding models.
|
66 |
+
|
67 |
+
The negative samples have been automatically mined with [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) and:
|
68 |
+
* `range_min`: 10, i.e. we skip the 10 most similar samples
|
69 |
+
* `range_max`: 20, i.e. we only look at the top 20 most similar samples
|
70 |
+
* `margin`: 0, i.e. we require negative similarity + margin < positive similarity, so negative samples can't be more similar than the known true answer
|
71 |
+
* `sampling_strategy`: "random", i.e. we randomly sample from the candidate negatives rather than taking the "top" negatives
|
72 |
+
* `num_negatives`: 5, i.e. we mine 5 negatives per question-answer pair
|
73 |
+
|
74 |
+
## Dataset Subsets
|
75 |
+
|
76 |
+
### `triplet` subset
|
77 |
+
|
78 |
+
* Columns: "question", "answer", "negative"
|
79 |
+
* Column types: `str`, `str`, `str`
|
80 |
+
* Examples:
|
81 |
+
```python
|
82 |
+
{
|
83 |
+
}
|
84 |
+
```
|
85 |
+
* Collection strategy: Reading the natural questions dataset from [sentence-transformers/natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) and performing hard negative mining with `as_triplets=True`.
|
86 |
+
* Deduplified: No
|
87 |
+
|
88 |
+
### `triplet-5` subset
|
89 |
+
|
90 |
+
* Columns: "question", "answer", "negative_1", "negative_2", "negative_3", "negative_4", "negative_5"
|
91 |
+
* Column types: `str`, `str`, `str`, `str`, `str`, `str`, `str`
|
92 |
+
* Examples:
|
93 |
+
```python
|
94 |
+
{
|
95 |
+
}
|
96 |
+
```
|
97 |
+
* Collection strategy: Reading the natural questions dataset from [sentence-transformers/natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) and performing hard negative mining with `as_triplets=False`.
|
98 |
+
* Deduplified: No
|