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
a89b132d
Unverified
Commit
a89b132d
authored
Sep 19, 2023
by
Lintang Sutawika
Committed by
GitHub
Sep 19, 2023
Browse files
Update write_out.py
parent
0f3f1267
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
scripts/write_out.py
scripts/write_out.py
+3
-1
No files found.
scripts/write_out.py
View file @
a89b132d
...
@@ -48,7 +48,9 @@ def main():
...
@@ -48,7 +48,9 @@ def main():
docs
=
join_iters
(
iters
)
docs
=
join_iters
(
iters
)
with
open
(
os
.
path
.
join
(
args
.
output_base_path
,
task_name
),
"w"
,
encoding
=
"utf8"
)
as
f
:
with
open
(
os
.
path
.
join
(
args
.
output_base_path
,
task_name
),
"w"
,
encoding
=
"utf8"
)
as
f
:
for
i
,
doc
in
(
for
i
,
doc
in
(
zip
(
range
(
args
.
num_examples
),
docs
)
zip
(
range
(
args
.
num_examples
),
docs
)
if
args
.
num_examples
>
0
if
args
.
num_examples
>
0
...
...
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