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
59b9351b
Unverified
Commit
59b9351b
authored
Mar 23, 2023
by
Samuel Larkin
Committed by
GitHub
Mar 23, 2023
Browse files
Minor typo in pipeline FillMaskPipeline's documentation. (#22339)
parent
506e7c63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/fill_mask.py
src/transformers/pipelines/fill_mask.py
+1
-1
No files found.
src/transformers/pipelines/fill_mask.py
View file @
59b9351b
...
@@ -234,7 +234,7 @@ class FillMaskPipeline(Pipeline):
...
@@ -234,7 +234,7 @@ class FillMaskPipeline(Pipeline):
- **sequence** (`str`) -- The corresponding input with the mask token prediction.
- **sequence** (`str`) -- The corresponding input with the mask token prediction.
- **score** (`float`) -- The corresponding probability.
- **score** (`float`) -- The corresponding probability.
- **token** (`int`) -- The predicted token id (to replace the masked one).
- **token** (`int`) -- The predicted token id (to replace the masked one).
- **token** (`str`) -- The predicted token (to replace the masked one).
- **token
_str
** (`str`) -- The predicted token (to replace the masked one).
"""
"""
outputs
=
super
().
__call__
(
inputs
,
**
kwargs
)
outputs
=
super
().
__call__
(
inputs
,
**
kwargs
)
if
isinstance
(
inputs
,
list
)
and
len
(
inputs
)
==
1
:
if
isinstance
(
inputs
,
list
)
and
len
(
inputs
)
==
1
:
...
...
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