"docs/vscode:/vscode.git/clone" did not exist on "3ec10e6c76362191b61260300fe1d6173a8dd7e1"
Unverified Commit 5e9f6752 authored by Moon Gi Cho's avatar Moon Gi Cho Committed by GitHub
Browse files

Fix typo (#24440)

parent a28325e2
...@@ -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 functionality 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,
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment