spacemanidol
commited on
Commit
•
fd80797
1
Parent(s):
ce9059f
updates
Browse files- ESCI-product-dataset-corpus-us.py +7 -6
- dev-strict.qrels +0 -0
- dev.qrels +0 -0
- metrics-strict.txt +14 -0
- metrics.txt +14 -0
ESCI-product-dataset-corpus-us.py
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
# limitations under the License.
|
15 |
|
16 |
# Lint as: python3
|
17 |
-
"""Improving Product Search dataset
|
18 |
|
19 |
import json
|
20 |
|
@@ -31,26 +31,27 @@ and Arnab Biswas and Anlu Xing and Karthik Subbian},
|
|
31 |
}
|
32 |
"""
|
33 |
|
34 |
-
_DESCRIPTION = "dataset load script for Improve Product Search
|
35 |
|
36 |
_DATASET_URLS = {
|
37 |
-
'train':
|
|
|
38 |
}
|
39 |
|
40 |
|
41 |
-
class
|
42 |
VERSION = datasets.Version("0.0.1")
|
43 |
|
44 |
BUILDER_CONFIGS = [
|
45 |
datasets.BuilderConfig(version=VERSION,
|
46 |
-
description="Product Search
|
47 |
]
|
48 |
def _info(self):
|
49 |
features = datasets.Features(
|
50 |
{'docid': datasets.Value('string'), 'text': datasets.Value('string'),
|
51 |
'title': datasets.Value('string'), 'bullet_points': datasets.Value('string'),
|
52 |
'brand': datasets.Value('string'), 'color': datasets.Value('string'),
|
53 |
-
'locale': datasets.Value('string')
|
54 |
},
|
55 |
)
|
56 |
return datasets.DatasetInfo(
|
|
|
14 |
# limitations under the License.
|
15 |
|
16 |
# Lint as: python3
|
17 |
+
"""Improving Product Search dataset ."""
|
18 |
|
19 |
import json
|
20 |
|
|
|
31 |
}
|
32 |
"""
|
33 |
|
34 |
+
_DESCRIPTION = "dataset load script for Improve Product Search Dataset"
|
35 |
|
36 |
_DATASET_URLS = {
|
37 |
+
'train':
|
38 |
+
"https://huggingface.co/datasets/spacemanidol/ESCI-product-dataset-corpus-us/resolve/main/collection.jsonl.gz"
|
39 |
}
|
40 |
|
41 |
|
42 |
+
class ProductSearchCorpus(datasets.GeneratorBasedBuilder):
|
43 |
VERSION = datasets.Version("0.0.1")
|
44 |
|
45 |
BUILDER_CONFIGS = [
|
46 |
datasets.BuilderConfig(version=VERSION,
|
47 |
+
description="Product Search Dataset 100-word splits"),
|
48 |
]
|
49 |
def _info(self):
|
50 |
features = datasets.Features(
|
51 |
{'docid': datasets.Value('string'), 'text': datasets.Value('string'),
|
52 |
'title': datasets.Value('string'), 'bullet_points': datasets.Value('string'),
|
53 |
'brand': datasets.Value('string'), 'color': datasets.Value('string'),
|
54 |
+
'locale': datasets.Value('string'), 'contents': datasets.value('string')
|
55 |
},
|
56 |
)
|
57 |
return datasets.DatasetInfo(
|
dev-strict.qrels
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dev.qrels
ADDED
The diff for this file is too large to render.
See raw diff
|
|
metrics-strict.txt
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
P@10 0.0038
|
2 |
+
P(rel=2)@5 0.0000
|
3 |
+
nDCG@15 0.0072
|
4 |
+
Judged@10 0.0023
|
5 |
+
NumQ 3142.0000
|
6 |
+
NumRel 17320.0000
|
7 |
+
NumRet 3027445.0000
|
8 |
+
NumRet(rel=1) 6781.0000
|
9 |
+
R@100 0.0533
|
10 |
+
R@20 0.0133
|
11 |
+
R@40 0.0234
|
12 |
+
R@200 0.0972
|
13 |
+
RR@10 0.0040
|
14 |
+
RR@20 0.0047
|
metrics.txt
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
P@10 0.0055
|
2 |
+
P(rel=2)@5 0.0038
|
3 |
+
nDCG@15 0.0082
|
4 |
+
Judged@10 0.0033
|
5 |
+
NumQ 3407.0000
|
6 |
+
NumRel 33032.0000
|
7 |
+
NumRet 3280843.0000
|
8 |
+
NumRet(rel=1) 11969.0000
|
9 |
+
R@100 0.0524
|
10 |
+
R@20 0.0132
|
11 |
+
R@40 0.0240
|
12 |
+
R@200 0.0962
|
13 |
+
RR@10 0.0053
|
14 |
+
RR@20 0.0063
|