Update
Browse files- test-dataset-debug.py +3 -3
test-dataset-debug.py
CHANGED
@@ -101,7 +101,7 @@ class PatentsConfig(datasets.BuilderConfig):
|
|
101 |
train_filing_end_date: End date for patents in train set
|
102 |
val_filing_start_date: Start date for patents in val set
|
103 |
val_filing_end_date: End date for patents in val set (and train set if random split is used)
|
104 |
-
**kwargs: keyword arguments forwarded to super
|
105 |
"""
|
106 |
super().__init__(**kwargs)
|
107 |
self.metadata_url = metadata_url
|
@@ -166,8 +166,8 @@ class Patents(datasets.GeneratorBasedBuilder):
|
|
166 |
|
167 |
# Download metadata
|
168 |
# NOTE: Metadata is stored as a Pandas DataFrame in Apache Feather format
|
169 |
-
|
170 |
-
metadata_file = Path(
|
171 |
print(f'Using metadata file: {self.config.data_files}')
|
172 |
|
173 |
# Download data
|
|
|
101 |
train_filing_end_date: End date for patents in train set
|
102 |
val_filing_start_date: Start date for patents in val set
|
103 |
val_filing_end_date: End date for patents in val set (and train set if random split is used)
|
104 |
+
**kwargs: keyword arguments forwarded to super
|
105 |
"""
|
106 |
super().__init__(**kwargs)
|
107 |
self.metadata_url = metadata_url
|
|
|
166 |
|
167 |
# Download metadata
|
168 |
# NOTE: Metadata is stored as a Pandas DataFrame in Apache Feather format
|
169 |
+
downloaded_metadata_file = dl_manager.download_and_extract(self.config.metadata_url)
|
170 |
+
metadata_file = Path(downloaded_metadata_file)
|
171 |
print(f'Using metadata file: {self.config.data_files}')
|
172 |
|
173 |
# Download data
|