Unverified Commit 12fe236d authored by Lintang Sutawika's avatar Lintang Sutawika Committed by GitHub
Browse files

Merge pull request #949 from EleutherAI/fix-whitespace-warning

parents 06e69149 888d3035
......@@ -691,7 +691,7 @@ class ConfigurableTask(Task):
delimiter_has_whitespace = (
True
if self.config.target_delimiter.rstrip()
== self.config.target_delimiter
!= self.config.target_delimiter
else False
)
......@@ -701,7 +701,7 @@ class ConfigurableTask(Task):
)
elif (not delimiter_has_whitespace) and (not choice_has_whitespace):
eval_logger.warning(
f'Both target_delimiter and target choice: "{choice}" does not have whitespace, ignore if the language you are evaluating on does not require/use whitespace'
f'Both target_delimiter "{self.config.target_delimiter}" and target choice: "{choice}" do not have whitespace, ignore if the language you are evaluating on does not require/use whitespace'
)
def download(self, dataset_kwargs=None) -> None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment