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
5e9f6752
Unverified
Commit
5e9f6752
authored
Jun 23, 2023
by
Moon Gi Cho
Committed by
GitHub
Jun 23, 2023
Browse files
Fix typo (#24440)
parent
a28325e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/text_classification.py
src/transformers/pipelines/text_classification.py
+1
-1
No files found.
src/transformers/pipelines/text_classification.py
View file @
5e9f6752
...
@@ -102,7 +102,7 @@ class TextClassificationPipeline(Pipeline):
...
@@ -102,7 +102,7 @@ class TextClassificationPipeline(Pipeline):
postprocess_params
[
"_legacy"
]
=
False
postprocess_params
[
"_legacy"
]
=
False
elif
return_all_scores
is
not
None
:
elif
return_all_scores
is
not
None
:
warnings
.
warn
(
warnings
.
warn
(
"`return_all_scores` is now deprecated, if want a similar funcionality use `top_k=None` instead of"
"`return_all_scores` is now deprecated, if want a similar func
t
ionality use `top_k=None` instead of"
" `return_all_scores=True` or `top_k=1` instead of `return_all_scores=False`."
,
" `return_all_scores=True` or `top_k=1` instead of `return_all_scores=False`."
,
UserWarning
,
UserWarning
,
)
)
...
...
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