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
chenpangpang
transformers
Commits
5b3000d9
Commit
5b3000d9
authored
Mar 05, 2020
by
Patrick von Platen
Browse files
renamed min_len to min_length
parent
aceb3fba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/summarization/bart/evaluate_cnn.py
examples/summarization/bart/evaluate_cnn.py
+1
-1
No files found.
examples/summarization/bart/evaluate_cnn.py
View file @
5b3000d9
...
@@ -28,7 +28,7 @@ def generate_summaries(lns, out_file, batch_size=8, device=DEFAULT_DEVICE):
...
@@ -28,7 +28,7 @@ def generate_summaries(lns, out_file, batch_size=8, device=DEFAULT_DEVICE):
num_beams
=
4
,
num_beams
=
4
,
length_penalty
=
2.0
,
length_penalty
=
2.0
,
max_length
=
140
,
max_length
=
140
,
min_len
=
55
,
min_len
gth
=
55
,
no_repeat_ngram_size
=
3
,
no_repeat_ngram_size
=
3
,
)
)
dec
=
[
tokenizer
.
decode
(
g
,
skip_special_tokens
=
True
,
clean_up_tokenization_spaces
=
False
)
for
g
in
summaries
]
dec
=
[
tokenizer
.
decode
(
g
,
skip_special_tokens
=
True
,
clean_up_tokenization_spaces
=
False
)
for
g
in
summaries
]
...
...
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