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
caadcbc9
"tests/vscode:/vscode.git/clone" did not exist on "fce2a1863ed22032a9c552865a72abd2e22d64d8"
Unverified
Commit
caadcbc9
authored
Jul 03, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Jul 03, 2023
Browse files
Update babi.py
parent
9a29afbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/babi.py
lm_eval/tasks/babi.py
+1
-1
No files found.
lm_eval/tasks/babi.py
View file @
caadcbc9
...
@@ -51,7 +51,7 @@ class Babi(Task):
...
@@ -51,7 +51,7 @@ class Babi(Task):
return
False
# TODO Necessary?
return
False
# TODO Necessary?
def
doc_to_decontamination_query
(
self
,
doc
):
def
doc_to_decontamination_query
(
self
,
doc
):
return
doc
[
'passage'
]
+
doc
[
'question'
]
return
f
"Passage:
{
doc
[
'passage'
]
}
\n
Question:
{
doc
[
'question'
]
}
\n
Answer:"
def
doc_to_target
(
self
,
doc
):
def
doc_to_target
(
self
,
doc
):
return
" "
+
doc
[
'answer'
]
return
" "
+
doc
[
'answer'
]
...
...
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