mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Minor typo in pipeline FillMaskPipeline's documentation. (#22339)
This commit is contained in:
parent
506e7c6361
commit
59b9351b78
@ -234,7 +234,7 @@ class FillMaskPipeline(Pipeline):
|
||||
- **sequence** (`str`) -- The corresponding input with the mask token prediction.
|
||||
- **score** (`float`) -- The corresponding probability.
|
||||
- **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)
|
||||
if isinstance(inputs, list) and len(inputs) == 1:
|
||||
|
Loading…
Reference in New Issue
Block a user