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
d7ddf525
Unverified
Commit
d7ddf525
authored
Sep 19, 2023
by
Lintang Sutawika
Committed by
GitHub
Sep 19, 2023
Browse files
Merge pull request #842 from Hojjat-Mokhtarabadi/big-refactor
undefined type and output_type when using promptsource fixed
parents
91a37c90
a89b132d
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 @
d7ddf525
...
...
@@ -50,7 +50,9 @@ def main():
docs
=
join_iters
(
iters
)
with
open
(
os
.
path
.
join
(
args
.
output_base_path
,
task_name
),
"w"
)
as
f
:
with
open
(
os
.
path
.
join
(
args
.
output_base_path
,
task_name
),
"w"
,
encoding
=
"utf8"
)
as
f
:
for
i
,
doc
in
(
zip
(
range
(
args
.
num_examples
),
docs
)
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