eduvedras commited on
Commit
b5a0e17
·
1 Parent(s): c4e15f8
Files changed (1) hide show
  1. VQG.py +6 -11
VQG.py CHANGED
@@ -45,15 +45,10 @@ _DESCRIPTION = """\
45
  Visual questions for data science
46
  """
47
 
48
- _URL = "https://huggingface.co/datasets/eduvedras/VQG/resolve/main/images.tar.gz"
49
 
50
- _METADATA_URLS = {
51
- "train": "https://huggingface.co/datasets/eduvedras/VQG/resolve/main/metadata_train.csv",
52
- "validation": "https://huggingface.co/datasets/eduvedras/VQG/resolve/main/metadata_validation.csv",
53
- "test": "https://huggingface.co/datasets/eduvedras/VQG/resolve/main/metadata_test.csv"
54
- },
55
 
56
- class VQGTargz(datasets.GeneratorBasedBuilder):
57
  """SQUAD: The Stanford Question Answering Dataset. Version 1.1."""
58
 
59
  def _info(self):
@@ -70,7 +65,7 @@ class VQGTargz(datasets.GeneratorBasedBuilder):
70
  # No default supervised_keys (as we have to pass both question
71
  # and context as input).
72
  supervised_keys=None,
73
- homepage="https://huggingface.co/datasets/eduvedras/VQG",
74
  citation=_CITATION,
75
  task_templates=[
76
  QuestionAnsweringExtractive(
@@ -83,9 +78,9 @@ class VQGTargz(datasets.GeneratorBasedBuilder):
83
  path = dl_manager.download(_URL)
84
  image_iters = dl_manager.iter_archive(path)
85
  #split_metadata_path = dl_manager.download(_METADATA_URLS)
86
- metadata_train_path = "https://huggingface.co/datasets/eduvedras/VQG/resolve/main/metadata_train.csv"
87
- metadata_validation_path = "https://huggingface.co/datasets/eduvedras/VQG/resolve/main/metadata_validation.csv"
88
- metadata_test_path = "https://huggingface.co/datasets/eduvedras/VQG/resolve/main/metadata_test.csv"
89
 
90
  return [
91
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"images": image_iters,
 
45
  Visual questions for data science
46
  """
47
 
48
+ _URL = "https://huggingface.co/datasets/eduvedras/VQG-Balanced/resolve/main/images.tar.gz"
49
 
 
 
 
 
 
50
 
51
+ class VQGBalancedTargz(datasets.GeneratorBasedBuilder):
52
  """SQUAD: The Stanford Question Answering Dataset. Version 1.1."""
53
 
54
  def _info(self):
 
65
  # No default supervised_keys (as we have to pass both question
66
  # and context as input).
67
  supervised_keys=None,
68
+ homepage="https://huggingface.co/datasets/eduvedras/VQG-Balanced",
69
  citation=_CITATION,
70
  task_templates=[
71
  QuestionAnsweringExtractive(
 
78
  path = dl_manager.download(_URL)
79
  image_iters = dl_manager.iter_archive(path)
80
  #split_metadata_path = dl_manager.download(_METADATA_URLS)
81
+ metadata_train_path = "https://huggingface.co/datasets/eduvedras/VQG-Balanced/resolve/main/metadata_train.csv"
82
+ metadata_validation_path = "https://huggingface.co/datasets/eduvedras/VQG-Balanced/resolve/main/metadata_validation.csv"
83
+ metadata_test_path = "https://huggingface.co/datasets/eduvedras/VQG-Balanced/resolve/main/metadata_test.csv"
84
 
85
  return [
86
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"images": image_iters,