Update the-vault-function.py
Browse files- the-vault-function.py +2 -4
the-vault-function.py
CHANGED
|
@@ -3,9 +3,7 @@ import os
|
|
| 3 |
import pyarrow as pa
|
| 4 |
import pyarrow.parquet as pq
|
| 5 |
import datasets
|
| 6 |
-
|
| 7 |
-
logger = logging.getLogger('the-vault')
|
| 8 |
-
logger.setLevel(logging.WARNING)
|
| 9 |
|
| 10 |
# Meta infomation
|
| 11 |
_REPO_NAME = 'Fsoft-AIC/the-vault-function'
|
|
@@ -132,7 +130,7 @@ class TheVaultFunctionConfig(datasets.BuilderConfig):
|
|
| 132 |
if "all" in split_set:
|
| 133 |
assert len(split_set)==1, f"Passed 'all' together with other split sets. {split_set}"
|
| 134 |
if "train" in split_set and "train/full" in split_set:
|
| 135 |
-
|
| 136 |
split_set.remove("train")
|
| 137 |
if "train" in split_set or "train/full" in split_set:
|
| 138 |
for split in split_set:
|
|
|
|
| 3 |
import pyarrow as pa
|
| 4 |
import pyarrow.parquet as pq
|
| 5 |
import datasets
|
| 6 |
+
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Meta infomation
|
| 9 |
_REPO_NAME = 'Fsoft-AIC/the-vault-function'
|
|
|
|
| 130 |
if "all" in split_set:
|
| 131 |
assert len(split_set)==1, f"Passed 'all' together with other split sets. {split_set}"
|
| 132 |
if "train" in split_set and "train/full" in split_set:
|
| 133 |
+
print("WARNING - Split set 'train' and 'train/full' are similar. Force to only train/full.")
|
| 134 |
split_set.remove("train")
|
| 135 |
if "train" in split_set or "train/full" in split_set:
|
| 136 |
for split in split_set:
|