misikoff commited on
Commit
021d7e3
1 Parent(s): 78c4c36

fix: minor cleanup

Browse files
checker.ipynb → exporter.ipynb RENAMED
File without changes
test-stuff/dataset_infos.json DELETED
@@ -1,94 +0,0 @@
1
- {
2
- "gem_data_split": {
3
- "description": " SQuAD2.0 combines the 100,000 questions in SQuAD1.1 with over 50,000 unanswerable questions written adversarially by crowdworkers\n to look similar to answerable ones. To do well on SQuAD2.0, systems must not only answer questions when possible, but\n also determine when no answer is supported by the paragraph and abstain from answering.\n",
4
- "citation": "@article{2016arXiv160605250R,\n author = {{Rajpurkar}, Pranav and {Zhang}, Jian and {Lopyrev},\n Konstantin and {Liang}, Percy},\n title = \"{SQuAD: 100,000+ Questions for Machine Comprehension of Text}\",\n journal = {arXiv e-prints},\n year = 2016,\n eid = {arXiv:1606.05250},\n pages = {arXiv:1606.05250},\narchivePrefix = {arXiv},\n eprint = {1606.05250},\n}\n",
5
- "homepage": "https://rajpurkar.github.io/SQuAD-explorer/",
6
- "license": "CC BY-SA 4.0",
7
- "features": {
8
- "gem_id": {
9
- "dtype": "string",
10
- "id": null,
11
- "_type": "Value"
12
- },
13
- "id": {
14
- "dtype": "string",
15
- "id": null,
16
- "_type": "Value"
17
- },
18
- "title": {
19
- "dtype": "string",
20
- "id": null,
21
- "_type": "Value"
22
- },
23
- "context": {
24
- "dtype": "string",
25
- "id": null,
26
- "_type": "Value"
27
- },
28
- "question": {
29
- "dtype": "string",
30
- "id": null,
31
- "_type": "Value"
32
- },
33
- "target": {
34
- "dtype": "string",
35
- "id": null,
36
- "_type": "Value"
37
- },
38
- "references": [
39
- {
40
- "dtype": "string",
41
- "id": null,
42
- "_type": "Value"
43
- }
44
- ],
45
- "answers": {
46
- "feature": {
47
- "text": {
48
- "dtype": "string",
49
- "id": null,
50
- "_type": "Value"
51
- },
52
- "answer_start": {
53
- "dtype": "int32",
54
- "id": null,
55
- "_type": "Value"
56
- }
57
- },
58
- "length": -1,
59
- "id": null,
60
- "_type": "Sequence"
61
- }
62
- },
63
- "post_processed": null,
64
- "supervised_keys": null,
65
- "task_templates": null,
66
- "builder_name": "zillow",
67
- "config_name": "sales",
68
- "version": {
69
- "version_str": "1.0.0",
70
- "description": null,
71
- "major": 1,
72
- "minor": 0,
73
- "patch": 0
74
- },
75
- "splits": {
76
- "test": {
77
- "name": "test",
78
- "num_bytes": 14716686,
79
- "num_examples": 13922,
80
- "dataset_name": "squad_v2"
81
- }
82
- },
83
- "download_checksums": {
84
- "./test.json": {
85
- "num_bytes": 15489062,
86
- "checksum": "0491481fa9f87b853325955a723f4f016a1b2c7c36102e0f1a6d719cef2f2fe7"
87
- }
88
- },
89
- "download_size": 159207580,
90
- "post_processing_size": null,
91
- "dataset_size": 150788555,
92
- "size_in_bytes": 309996135
93
- }
94
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
test-stuff/test.json DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0491481fa9f87b853325955a723f4f016a1b2c7c36102e0f1a6d719cef2f2fe7
3
- size 15489062
 
 
 
 
zillow.py CHANGED
@@ -352,10 +352,9 @@ class Zillow(datasets.GeneratorBasedBuilder):
352
  )
353
 
354
  def _split_generators(self, dl_manager):
 
355
  file_path = os.path.join("processed", self.config.name + ".jsonl")
356
  file_train = dl_manager.download(file_path)
357
- # file_test = dl_manager.download(os.path.join(self.config.name, "test.csv"))
358
- # file_eval = dl_manager.download(os.path.join(self.config.name, "valid.csv"))
359
  return [
360
  datasets.SplitGenerator(
361
  name=datasets.Split.TRAIN,
@@ -365,22 +364,6 @@ class Zillow(datasets.GeneratorBasedBuilder):
365
  "split": "train",
366
  },
367
  ),
368
- # datasets.SplitGenerator(
369
- # name=datasets.Split.VALIDATION,
370
- # # These kwargs will be passed to _generate_examples
371
- # gen_kwargs={
372
- # "filepath": file_train, # os.path.join(data_dir, "dev.jsonl"),
373
- # "split": "dev",
374
- # },
375
- # ),
376
- # datasets.SplitGenerator(
377
- # name=datasets.Split.TEST,
378
- # # These kwargs will be passed to _generate_examples
379
- # gen_kwargs={
380
- # "filepath": file_train, # os.path.join(data_dir, "test.jsonl"),
381
- # "split": "test",
382
- # },
383
- # ),
384
  ]
385
 
386
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
 
352
  )
353
 
354
  def _split_generators(self, dl_manager):
355
+ # Each config file is a JSONL file produced by the config's corresponding python script in the `processors` directory.
356
  file_path = os.path.join("processed", self.config.name + ".jsonl")
357
  file_train = dl_manager.download(file_path)
 
 
358
  return [
359
  datasets.SplitGenerator(
360
  name=datasets.Split.TRAIN,
 
364
  "split": "train",
365
  },
366
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  ]
368
 
369
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`