Ziyuan111 commited on
Commit
85198a4
·
verified ·
1 Parent(s): 47a0e6d

Update sarcasm.py

Browse files
Files changed (1) hide show
  1. sarcasm.py +1 -2
sarcasm.py CHANGED
@@ -40,8 +40,7 @@ class Sarcasm(GeneratorBasedBuilder):
40
  )
41
 
42
  def _split_generators(self, dl_manager):
43
- downloaded_files = dl_manager.download_and_extract(_URLS)
44
- data_file_path = downloaded_files["combined_data.csv"]
45
 
46
  num_examples = pd.read_csv(data_file_path).shape[0]
47
  train_size = int(0.6 * num_examples)
 
40
  )
41
 
42
  def _split_generators(self, dl_manager):
43
+ data_file_path = dl_manager.download(_URLS["combined_data.csv"])
 
44
 
45
  num_examples = pd.read_csv(data_file_path).shape[0]
46
  train_size = int(0.6 * num_examples)