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
d51f3e7f
"vscode:/vscode.git/clone" did not exist on "4c6c750ac88b4573fd6e6690adec4aabfd1dbf8f"
Commit
d51f3e7f
authored
Oct 24, 2020
by
Charles Foster
Browse files
Small typos
parent
9291edaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lm_eval/tasks/naturalqs.py
lm_eval/tasks/naturalqs.py
+1
-2
No files found.
lm_eval/tasks/naturalqs.py
View file @
d51f3e7f
...
@@ -20,9 +20,8 @@ class NaturalQs(HFTask):
...
@@ -20,9 +20,8 @@ class NaturalQs(HFTask):
def
training_docs
(
self
):
def
training_docs
(
self
):
# Cache training for faster few-shot.
# Cache training for faster few-shot.
# Data is too large to fit in memory.
# Data is too large to fit in memory.
self
.
data
[
"train"
])
return
self
.
data
[
"train"
]
)
return
self
.
data
[
"train"
]
def
doc_to_text
(
self
,
doc
,
include_target
=
True
):
def
doc_to_text
(
self
,
doc
,
include_target
=
True
):
question
=
doc
[
'question'
][
'text'
]
question
=
doc
[
'question'
][
'text'
]
...
...
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