Datasets:
Tasks:
Multiple Choice
Modalities:
Text
Formats:
parquet
Sub-tasks:
multiple-choice-qa
Size:
1K - 10K
License:
Hugo van Kemenade
commited on
Commit
·
ac85087
1
Parent(s):
c9c314b
Replace deprecated logging.warn with logging.warning (#4539)
Browse filesCommit from https://github.com/huggingface/datasets/commit/90b3a98065556fc66380cafd780af9b1814b9426
qa4mre.py
CHANGED
@@ -140,7 +140,7 @@ class Qa4mreConfig(datasets.BuilderConfig):
|
|
140 |
raise ValueError("Incorrect track. Track should be one of the following: ", PATHS[year]["_TRACKS"])
|
141 |
|
142 |
if track.lower() != "main" and language.upper() != "EN":
|
143 |
-
logger.
|
144 |
language = "EN"
|
145 |
|
146 |
if track.lower() == "main" and language.upper() not in PATHS[year]["_LANGUAGES_MAIN"]:
|
|
|
140 |
raise ValueError("Incorrect track. Track should be one of the following: ", PATHS[year]["_TRACKS"])
|
141 |
|
142 |
if track.lower() != "main" and language.upper() != "EN":
|
143 |
+
logger.warning("Only English documents available for pilot " "tracks. Setting English by default.")
|
144 |
language = "EN"
|
145 |
|
146 |
if track.lower() == "main" and language.upper() not in PATHS[year]["_LANGUAGES_MAIN"]:
|