Upload date-data.py with huggingface_hub
Browse files- date-data.py +1 -1
date-data.py
CHANGED
|
@@ -72,7 +72,6 @@ class DateDate(datasets.GeneratorBasedBuilder):
|
|
| 72 |
dl_manager: datasets.DownloadManager,
|
| 73 |
) -> List[datasets.SplitGenerator]:
|
| 74 |
config_names = _CONFIGS[1:] if self.config.name == 'all' else [self.config.name]
|
| 75 |
-
print("_split_generators ", config_names[:3])
|
| 76 |
|
| 77 |
data_dirs = dl_manager.download_and_extract(
|
| 78 |
[_URL.format(filename=zipfile) for zipfile in config_names]
|
|
@@ -94,6 +93,7 @@ class DateDate(datasets.GeneratorBasedBuilder):
|
|
| 94 |
for i, data_dir in enumerate(data_dirs):
|
| 95 |
sample = self._extract_datetime("Wed Oct 16 11:08:00 +07 2024")
|
| 96 |
sample.update((('id','123'),('file_path',"null")))
|
|
|
|
| 97 |
yield i, sample
|
| 98 |
|
| 99 |
def _read_txt(
|
|
|
|
| 72 |
dl_manager: datasets.DownloadManager,
|
| 73 |
) -> List[datasets.SplitGenerator]:
|
| 74 |
config_names = _CONFIGS[1:] if self.config.name == 'all' else [self.config.name]
|
|
|
|
| 75 |
|
| 76 |
data_dirs = dl_manager.download_and_extract(
|
| 77 |
[_URL.format(filename=zipfile) for zipfile in config_names]
|
|
|
|
| 93 |
for i, data_dir in enumerate(data_dirs):
|
| 94 |
sample = self._extract_datetime("Wed Oct 16 11:08:00 +07 2024")
|
| 95 |
sample.update((('id','123'),('file_path',"null")))
|
| 96 |
+
print(data_dir)
|
| 97 |
yield i, sample
|
| 98 |
|
| 99 |
def _read_txt(
|