3v324v23 commited on
Commit
fc5aae3
1 Parent(s): 3ebbdc1
Files changed (2) hide show
  1. ESCI-product-dataset.py +1 -26
  2. train.jsonl +0 -0
ESCI-product-dataset.py CHANGED
@@ -17,9 +17,7 @@
17
  """ESCI-product-dataset dataset."""
18
 
19
  import json
20
-
21
  import datasets
22
-
23
  _CITATION = """
24
  @misc{reddy2022shopping,
25
  title={Shopping Queries Dataset: A Large-Scale {ESCI} Benchmark for Improving Product Search},
@@ -29,53 +27,30 @@ Arnab Biswas and Anlu Xing and Karthik Subbian},
29
  eprint={2206.06588},
30
  archivePrefix={arXiv}
31
  }
32
-
33
-
34
- }
35
  """
36
-
37
  _DESCRIPTION = "dataset load script for ESCI-product-dataset recall"
38
-
39
  _DATASET_URLS = {
40
  'train': "https://huggingface.co/datasets/spacemanidol/ESCI-product-dataset/resolve/main/train.jsonl",
41
  }
42
 
43
-
44
  class ESCIproduct(datasets.GeneratorBasedBuilder):
45
  VERSION = datasets.Version("0.0.1")
46
-
47
  BUILDER_CONFIGS = [
48
  datasets.BuilderConfig(version=VERSION,
49
- description="Wikipedia NQ train/dev/test datasets"),
50
  ]
51
 
52
  def _info(self):
53
  features = datasets.Features({
54
  'query_id': datasets.Value('string'),
55
  'query': datasets.Value('string'),
56
- 'query-inject-det': datasets.Value('string'),
57
- 'query-stem': datasets.Value('string'),
58
- 'query-synonym': datasets.Value('string'),
59
- 'query-random-char-swap': datasets.Value('string'),
60
- 'query-char-keyboard': datasets.Value('string'),
61
- 'query-paraphrase': datasets.Value('string'),
62
- 'query-reorder-words': datasets.Value('string'),
63
- 'query-backtranslation': datasets.Value('string'),
64
- 'query-char-delete': datasets.Value('string'),
65
- 'query-lemmatize': datasets.Value('string')
66
  })
67
-
68
  return datasets.DatasetInfo(
69
- # This is the description that will appear on the datasets page.
70
  description=_DESCRIPTION,
71
- # This defines the different columns of the dataset and their types
72
  features=features, # Here we define them above because they are different between the two configurations
73
  supervised_keys=None,
74
- # Homepage of the dataset for documentation
75
  homepage="",
76
- # License for the dataset if available
77
  license="",
78
- # Citation for the dataset
79
  citation=_CITATION,
80
  )
81
 
 
17
  """ESCI-product-dataset dataset."""
18
 
19
  import json
 
20
  import datasets
 
21
  _CITATION = """
22
  @misc{reddy2022shopping,
23
  title={Shopping Queries Dataset: A Large-Scale {ESCI} Benchmark for Improving Product Search},
 
27
  eprint={2206.06588},
28
  archivePrefix={arXiv}
29
  }
 
 
 
30
  """
 
31
  _DESCRIPTION = "dataset load script for ESCI-product-dataset recall"
 
32
  _DATASET_URLS = {
33
  'train': "https://huggingface.co/datasets/spacemanidol/ESCI-product-dataset/resolve/main/train.jsonl",
34
  }
35
 
 
36
  class ESCIproduct(datasets.GeneratorBasedBuilder):
37
  VERSION = datasets.Version("0.0.1")
 
38
  BUILDER_CONFIGS = [
39
  datasets.BuilderConfig(version=VERSION,
40
+ description="ESCI Produce Search train/dev/test datasets"),
41
  ]
42
 
43
  def _info(self):
44
  features = datasets.Features({
45
  'query_id': datasets.Value('string'),
46
  'query': datasets.Value('string'),
 
 
 
 
 
 
 
 
 
 
47
  })
 
48
  return datasets.DatasetInfo(
 
49
  description=_DESCRIPTION,
 
50
  features=features, # Here we define them above because they are different between the two configurations
51
  supervised_keys=None,
 
52
  homepage="",
 
53
  license="",
 
54
  citation=_CITATION,
55
  )
56
 
train.jsonl CHANGED
The diff for this file is too large to render. See raw diff