Datasets:
Tasks:
Sentence Similarity
Modalities:
Text
Formats:
json
Languages:
English
Size:
10K - 100K
Tags:
text
License:
Commit
·
7a145aa
0
Parent(s):
initial commit
Browse files- .gitattributes +1 -0
- README.md +91 -0
- data/test/test.jsonl.zst +3 -0
- data/train/train-00.jsonl.zst +3 -0
- data/train/train-01.jsonl.zst +3 -0
- data/train/train-02.jsonl.zst +3 -0
- data/train/train-03.jsonl.zst +3 -0
- data/train/train-04.jsonl.zst +3 -0
- data/train/train-05.jsonl.zst +3 -0
- data/train/train-06.jsonl.zst +3 -0
- data/train/train-07.jsonl.zst +3 -0
.gitattributes
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- text
|
7 |
+
pretty_name: Amazon ESCI Hard Negatives
|
8 |
+
size_categories:
|
9 |
+
- "100K<n<1M"
|
10 |
+
source_datasets:
|
11 |
+
- Amazon ESCI
|
12 |
+
task_categories:
|
13 |
+
- sentence-similarity
|
14 |
+
dataset_info:
|
15 |
+
config_name: default
|
16 |
+
splits:
|
17 |
+
- name: train
|
18 |
+
num_bytes: 1
|
19 |
+
num_examples: 1
|
20 |
+
- name: test
|
21 |
+
num_bytes: 1
|
22 |
+
num_examples: 1
|
23 |
+
train-eval-index:
|
24 |
+
- config: default
|
25 |
+
task: sentence-similarity
|
26 |
+
splits:
|
27 |
+
train_split: train
|
28 |
+
eval_split: test
|
29 |
+
configs:
|
30 |
+
- config_name: default
|
31 |
+
data_files:
|
32 |
+
- split: train
|
33 |
+
path: "data/train/*"
|
34 |
+
- split: test
|
35 |
+
path: "data/test/*"
|
36 |
+
---
|
37 |
+
|
38 |
+
# Amazon ESCI hard-negatives dataset
|
39 |
+
|
40 |
+
A dataset in a [nixietune](https://github.com/nixiesearch/nixietune) compatible format:
|
41 |
+
|
42 |
+
```json
|
43 |
+
{
|
44 |
+
"query": "black cotton fabric by the yard",
|
45 |
+
"pos": [
|
46 |
+
{
|
47 |
+
"doc": "Black 100% Cotton Material Prepackaged by The Yard",
|
48 |
+
"bm25": 0.0,
|
49 |
+
"cosE5": 0.9253104
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"doc": "Zen Creative Designs Cotton Fabric, Solid Black, 60\" Wide by 1 Yard/Easy to Sew/Great for Lining/Mask Making/Apparel/Quilting Projects and Hobbies (1 Yard)",
|
53 |
+
"bm25": 7.026509,
|
54 |
+
"cosE5": 0.9030106
|
55 |
+
}
|
56 |
+
],
|
57 |
+
"neg": [
|
58 |
+
{
|
59 |
+
"doc": "PLAZALA 7PCS Cotton Craft Fabric Bundle Squares Patchwork DIY Sewing Scrapbooking Quilting 9.8\"x9.8\" (Black)",
|
60 |
+
"bm25": 0.0,
|
61 |
+
"cosE5": 0.87003165
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"doc": "Connecting Threads Print Collection Precut Cotton Quilting Fabric Bundle Fat Quarters (Monochrome)",
|
65 |
+
"bm25": 0.0,
|
66 |
+
"cosE5": 0.86396176
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"doc": "Dekoth -Cotton Fabric 100% Cotton Poplin Printed Woven Bundles Voile for DIY Crafting Patchwork Sewing, Full Width 1 Piece cuttable 39 x 56 inches (100x142cm) (Black with Grey Floral)",
|
70 |
+
"bm25": 0.0,
|
71 |
+
"cosE5": 0.8673507
|
72 |
+
}
|
73 |
+
]
|
74 |
+
```
|
75 |
+
|
76 |
+
This is the expanded version of the [Amazon ESCI small-en](todo) dataset with the following additions:
|
77 |
+
* for all queries, extra 32 negatives were genererated
|
78 |
+
* negative generation was done with a [RRF](todo)-based hybrid search, mixing the BM25 score with cosine-similarity based on [intfloat/e5-base-v2] emnbedding model.
|
79 |
+
* can be loaded with [HF datasets](todo) directly.
|
80 |
+
|
81 |
+
## Usage
|
82 |
+
|
83 |
+
```python
|
84 |
+
from datasets import load_dataset
|
85 |
+
|
86 |
+
data = load_dataset('nixiesearch/amazon-esci-hardnegatives', split="train")
|
87 |
+
```
|
88 |
+
|
89 |
+
## License
|
90 |
+
|
91 |
+
Apache 2.0
|
data/test/test.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9f9b0acf3099efaeceb8a944a17c5a5a39535e8d8d1c8b8c9690c66b1543726
|
3 |
+
size 39997399
|
data/train/train-00.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c0a5db73d65c01a7c62cf0a09ce5cc97baabb7ac47dd4931b0ce68e9ba53db4
|
3 |
+
size 20549408
|
data/train/train-01.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a90a38277f12605a17a0a0713a86ed67c6b42763a4e5e7f099b839673721fc3
|
3 |
+
size 20743147
|
data/train/train-02.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9e602b1406e9e94cd4568d77d215f528106eece3eee926579c1d49414869c0c
|
3 |
+
size 20678139
|
data/train/train-03.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bbb0ee438f5d15b13e78e79051407ff44bbd889ebde3909602c4b50e838f6e33
|
3 |
+
size 20583877
|
data/train/train-04.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39a76b90b23bed7c46cefdad396fa34e734a2ebda5c58bf2a645e8e2f0a8cc84
|
3 |
+
size 20588530
|
data/train/train-05.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e159d9b590b8a46d82890101257032173dca3dcb4f82db71ea240fd45391fea
|
3 |
+
size 20557724
|
data/train/train-06.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:df8e64b97894e521f07ecf96e6ed85f0eba106f1e15c6919a5de89160a63a980
|
3 |
+
size 20657110
|
data/train/train-07.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d525cfeb354c0ce50e1ab123e260e08db5dd514ead4231dc0d3cdb55aba70ad2
|
3 |
+
size 15556253
|