Update the-vault-function.py
Browse files- the-vault-function.py +4 -2
the-vault-function.py
CHANGED
@@ -3,7 +3,9 @@ import os
|
|
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,7 +132,7 @@ class TheVaultFunctionConfig(datasets.BuilderConfig):
|
|
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 |
-
|
134 |
split_set.remove("train")
|
135 |
if "train" in split_set or "train/full" in split_set:
|
136 |
for split in split_set:
|
|
|
3 |
import pyarrow as pa
|
4 |
import pyarrow.parquet as pq
|
5 |
import datasets
|
6 |
+
import logging
|
7 |
+
logger = logging.getLogger('the-vault')
|
8 |
+
logger.setLevel(logging.WARNING)
|
9 |
|
10 |
# Meta infomation
|
11 |
_REPO_NAME = 'Fsoft-AIC/the-vault-function'
|
|
|
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 |
+
logger.warning("Split set 'train' and 'train/full' are similar. Force to only train/full.")
|
136 |
split_set.remove("train")
|
137 |
if "train" in split_set or "train/full" in split_set:
|
138 |
for split in split_set:
|