Initial commit
Browse files- docbank.py +1 -0
docbank.py
CHANGED
|
@@ -170,6 +170,7 @@ class Docbank(datasets.GeneratorBasedBuilder):
|
|
| 170 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
| 171 |
urls = _URLS[self.config.name]
|
| 172 |
data_dir = dl_manager.download_and_extract(urls)
|
|
|
|
| 173 |
train_txts = glob(data_dir + '/train/txt/*.csv')
|
| 174 |
train_data = [(txt, data_dir + '/train/img/' + os.path.basename(txt)[:-4] + '.jpg') for txt in train_txts]
|
| 175 |
test_txts = glob(data_dir + '/test/txt/*.csv')
|
|
|
|
| 170 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
| 171 |
urls = _URLS[self.config.name]
|
| 172 |
data_dir = dl_manager.download_and_extract(urls)
|
| 173 |
+
print(data_dir)
|
| 174 |
train_txts = glob(data_dir + '/train/txt/*.csv')
|
| 175 |
train_data = [(txt, data_dir + '/train/img/' + os.path.basename(txt)[:-4] + '.jpg') for txt in train_txts]
|
| 176 |
test_txts = glob(data_dir + '/test/txt/*.csv')
|