joemaatouk commited on
Commit
529fd57
·
1 Parent(s): 8f54f7b

Update EZPass-Dataset.py

Browse files
Files changed (1) hide show
  1. EZPass-Dataset.py +8 -3
EZPass-Dataset.py CHANGED
@@ -57,7 +57,13 @@ descriptions = [
57
  ]
58
 
59
  """
60
- descriptions = ["test","test2","test3","test4","test5","test6"]
 
 
 
 
 
 
61
 
62
  class EZPassTargz(datasets.GeneratorBasedBuilder):
63
  """SQUAD: The Stanford Question Answering Dataset. Version 1.1."""
@@ -69,7 +75,6 @@ class EZPassTargz(datasets.GeneratorBasedBuilder):
69
  {
70
  "text": datasets.Value("string"),
71
  "image": datasets.Image(),
72
-
73
  }
74
  ),
75
  # No default supervised_keys (as we have to pass both question
@@ -99,4 +104,4 @@ class EZPassTargz(datasets.GeneratorBasedBuilder):
99
  "image":{"path": filepath,"bytes":image.read()},
100
  "text": descriptions[idx],
101
  }
102
- idx+=1
 
57
  ]
58
 
59
  """
60
+ descriptions = ['Test1',
61
+ 'test2',
62
+ 'test3',
63
+ 'test4',
64
+ 'test5',
65
+ 'test6'
66
+ ]
67
 
68
  class EZPassTargz(datasets.GeneratorBasedBuilder):
69
  """SQUAD: The Stanford Question Answering Dataset. Version 1.1."""
 
75
  {
76
  "text": datasets.Value("string"),
77
  "image": datasets.Image(),
 
78
  }
79
  ),
80
  # No default supervised_keys (as we have to pass both question
 
104
  "image":{"path": filepath,"bytes":image.read()},
105
  "text": descriptions[idx],
106
  }
107
+ idx += 1