Commit 888d3035 authored by haileyschoelkopf's avatar haileyschoelkopf
Browse files

fix warning for delimiter having no whitespace

parent 06e69149
......@@ -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