EC2 Default User commited on
Commit
d36ac0a
·
1 Parent(s): 8e0eb4b

update data name

Browse files
Files changed (1) hide show
  1. oas-paired-sequence-data.py +3 -2
oas-paired-sequence-data.py CHANGED
@@ -5,6 +5,7 @@
5
  """Paired sequences from the Observed Antibody Space database"""
6
  import csv
7
  import datasets
 
8
 
9
  _CITATION = """\
10
  @article{Olsen_Boyles_Deane_2022,
@@ -72,12 +73,12 @@ class OasPairedSequenceData(datasets.GeneratorBasedBuilder):
72
 
73
  def _split_generators(self, dl_manager):
74
  urls = _URLS[self.config.name]
75
- data = dl_manager.download_and_extract(urls)
76
  return [
77
  datasets.SplitGenerator(
78
  name=datasets.Split.TRAIN,
79
  gen_kwargs={
80
- "filepath": data,
81
  "split": "train",
82
  },
83
  ),
 
5
  """Paired sequences from the Observed Antibody Space database"""
6
  import csv
7
  import datasets
8
+ import os
9
 
10
  _CITATION = """\
11
  @article{Olsen_Boyles_Deane_2022,
 
73
 
74
  def _split_generators(self, dl_manager):
75
  urls = _URLS[self.config.name]
76
+ data_dir = dl_manager.download_and_extract(urls)
77
  return [
78
  datasets.SplitGenerator(
79
  name=datasets.Split.TRAIN,
80
  gen_kwargs={
81
+ "filepath": os.path.join(data_dir, "train.csv"),
82
  "split": "train",
83
  },
84
  ),