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
d272c19f
Unverified
Commit
d272c19f
authored
Mar 01, 2024
by
Zehan Li
Committed by
GitHub
Mar 01, 2024
Browse files
Add multilingual truthfulqa targets (#1499)
parent
b177c82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
lm_eval/tasks/okapi/truthfulqa_multilingual/utils.py
lm_eval/tasks/okapi/truthfulqa_multilingual/utils.py
+1
-0
No files found.
lm_eval/tasks/okapi/truthfulqa_multilingual/utils.py
View file @
d272c19f
...
@@ -37,6 +37,7 @@ def process_docs(dataset: datasets.Dataset) -> datasets.Dataset:
...
@@ -37,6 +37,7 @@ def process_docs(dataset: datasets.Dataset) -> datasets.Dataset:
"query"
:
QA_PROMPT
+
"
\n\n
Q: "
+
preprocess
(
doc
[
"question"
])
+
"
\n
A:"
,
"query"
:
QA_PROMPT
+
"
\n\n
Q: "
+
preprocess
(
doc
[
"question"
])
+
"
\n
A:"
,
"mc1_choices"
:
doc
[
"mc1_targets_choices"
],
"mc1_choices"
:
doc
[
"mc1_targets_choices"
],
"mc2_choices"
:
doc
[
"mc2_targets_choices"
],
"mc2_choices"
:
doc
[
"mc2_targets_choices"
],
"mc2_targets"
:
{
"labels"
:
doc
[
"mc2_targets_labels"
]},
"gold"
:
" "
,
"gold"
:
" "
,
}
}
return
out_doc
return
out_doc
...
...
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