Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
6414d55b
Commit
6414d55b
authored
Sep 13, 2023
by
lintangsutawika
Browse files
fixed warning
parent
993baaa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/api/task.py
lm_eval/api/task.py
+2
-2
No files found.
lm_eval/api/task.py
View file @
6414d55b
...
...
@@ -671,9 +671,9 @@ class ConfigurableTask(Task):
check_choices
=
[
test_target
]
for
choice
in
check_choices
:
choice_has_whitespace
=
True
if
" "
in
choice
else
False
choice_has_whitespace
=
True
if
choice
.
startswith
(
" "
)
or
choice
.
endswith
(
" "
)
else
False
delimiter_has_whitespace
=
(
True
if
" "
in
self
.
_config
.
target_delimiter
else
False
True
if
(
self
.
_config
.
target_delimiter
.
startswith
(
" "
)
or
self
.
_config
.
target_delimiter
.
endswith
(
" "
))
else
False
)
if
delimiter_has_whitespace
and
choice_has_whitespace
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment