yonatanbitton commited on
Commit
88bcc00
1 Parent(s): b329556

Update winogavil.py

Browse files
Files changed (1) hide show
  1. winogavil.py +1 -11
winogavil.py CHANGED
@@ -20,8 +20,6 @@ import pandas as pd
20
  import datasets
21
  from huggingface_hub import hf_hub_url
22
 
23
- print('winogavil.py')
24
-
25
  # Find for instance the citation on arxiv or on the dataset repo/website
26
  _CITATION = """\
27
  @article{bitton2022winogavil,
@@ -55,11 +53,7 @@ class Winogavil(datasets.GeneratorBasedBuilder):
55
  datasets.BuilderConfig(name="TEST", version=VERSION, description="winogavil dataset"),
56
  ]
57
 
58
- print('winogavil.py BUILDER')
59
-
60
  def _info(self):
61
- print('winogavil.py INFO')
62
-
63
  features = datasets.Features(
64
  {
65
  "candidates": datasets.Value("string"),
@@ -90,8 +84,6 @@ class Winogavil(datasets.GeneratorBasedBuilder):
90
  )
91
 
92
  def _split_generators(self, dl_manager):
93
- print('winogavil.py _split_generators')
94
-
95
  # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
96
 
97
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
@@ -104,11 +96,9 @@ class Winogavil(datasets.GeneratorBasedBuilder):
104
 
105
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
106
  def _generate_examples(self, examples_csv):
107
- print('winogavil.py _generate_examples')
108
-
109
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
110
 
111
- df = pd.read_csv(filepath)
112
 
113
  columns_to_serialize = ['candidates', 'associations']
114
  for c in columns_to_serialize:
 
20
  import datasets
21
  from huggingface_hub import hf_hub_url
22
 
 
 
23
  # Find for instance the citation on arxiv or on the dataset repo/website
24
  _CITATION = """\
25
  @article{bitton2022winogavil,
 
53
  datasets.BuilderConfig(name="TEST", version=VERSION, description="winogavil dataset"),
54
  ]
55
 
 
 
56
  def _info(self):
 
 
57
  features = datasets.Features(
58
  {
59
  "candidates": datasets.Value("string"),
 
84
  )
85
 
86
  def _split_generators(self, dl_manager):
 
 
87
  # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
88
 
89
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
 
96
 
97
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
98
  def _generate_examples(self, examples_csv):
 
 
99
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
100
 
101
+ df = pd.read_csv(examples_csv)
102
 
103
  columns_to_serialize = ['candidates', 'associations']
104
  for c in columns_to_serialize: