Minor typo in pipeline FillMaskPipeline's documentation. (#22339)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user