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
9062d1ba
Unverified
Commit
9062d1ba
authored
May 01, 2023
by
Stephen Kaplan
Committed by
GitHub
May 01, 2023
Browse files
Fix grammar error in summarization pipeline (#23080)
Fix minor grammar issue
parent
849367cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/text2text_generation.py
src/transformers/pipelines/text2text_generation.py
+1
-1
No files found.
src/transformers/pipelines/text2text_generation.py
View file @
9062d1ba
...
@@ -273,7 +273,7 @@ class SummarizationPipeline(Text2TextGenerationPipeline):
...
@@ -273,7 +273,7 @@ class SummarizationPipeline(Text2TextGenerationPipeline):
if
input_length
<
max_length
:
if
input_length
<
max_length
:
logger
.
warning
(
logger
.
warning
(
f
"Your max_length is set to
{
max_length
}
, but you input_length is only
{
input_length
}
. You might "
f
"Your max_length is set to
{
max_length
}
, but you
r
input_length is only
{
input_length
}
. You might "
f
"consider decreasing max_length manually, e.g. summarizer('...', max_length=
{
input_length
//
2
}
)"
f
"consider decreasing max_length manually, e.g. summarizer('...', max_length=
{
input_length
//
2
}
)"
)
)
...
...
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