Julia Moska commited on
Commit ·
9f59950
1
Parent(s): 689e0ae
code cleanup, deleted multiple configs
Browse files- airbnb_multicity.py +0 -16
airbnb_multicity.py
CHANGED
|
@@ -17,23 +17,8 @@ class AirbnbDatasetConfig(datasets.BuilderConfig):
|
|
| 17 |
super(AirbnbDatasetConfig, self).__init__(**kwargs)
|
| 18 |
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
class AirbnbDataset(datasets.ArrowBasedBuilder):
|
| 24 |
BUILDER_CONFIG_CLASS = AirbnbDatasetConfig
|
| 25 |
-
# DEFAULT_CONFIG_NAME = "all"
|
| 26 |
-
# BUILDER_CONFIGS = [
|
| 27 |
-
|
| 28 |
-
# AirbnbDatasetConfig(
|
| 29 |
-
# name="airbnb_multicity",
|
| 30 |
-
# description="",
|
| 31 |
-
# data_url="https://huggingface.co/datasets/kraina/airbnb_multicity/resolve/main/data/all_airbnb.parquet"
|
| 32 |
-
|
| 33 |
-
# )
|
| 34 |
-
# ]
|
| 35 |
-
|
| 36 |
-
|
| 37 |
|
| 38 |
def _info(self):
|
| 39 |
return datasets.DatasetInfo(
|
|
@@ -68,7 +53,6 @@ class AirbnbDataset(datasets.ArrowBasedBuilder):
|
|
| 68 |
|
| 69 |
|
| 70 |
def _split_generators(self, dl_manager: datasets.download.DownloadManager):
|
| 71 |
-
# files = _URLS[self.config.name]
|
| 72 |
downloaded_files = dl_manager.download(DATA_URL)
|
| 73 |
return [
|
| 74 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={'filepath': downloaded_files})
|
|
|
|
| 17 |
super(AirbnbDatasetConfig, self).__init__(**kwargs)
|
| 18 |
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
class AirbnbDataset(datasets.ArrowBasedBuilder):
|
| 21 |
BUILDER_CONFIG_CLASS = AirbnbDatasetConfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
def _info(self):
|
| 24 |
return datasets.DatasetInfo(
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
def _split_generators(self, dl_manager: datasets.download.DownloadManager):
|
|
|
|
| 56 |
downloaded_files = dl_manager.download(DATA_URL)
|
| 57 |
return [
|
| 58 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={'filepath': downloaded_files})
|