mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
rename string in pipeline
This commit is contained in:
parent
7420a6a9cc
commit
311970546f
@ -1307,7 +1307,7 @@ class TranslationPipeline(Pipeline):
|
|||||||
):
|
):
|
||||||
r"""
|
r"""
|
||||||
Args:
|
Args:
|
||||||
*texts: (list of strings) articles to be summarized
|
*texts: (list of strings) texts to be translated
|
||||||
return_text: (bool, default=True) whether to add a decoded "translation_text" to each result
|
return_text: (bool, default=True) whether to add a decoded "translation_text" to each result
|
||||||
return_tensors: (bool, default=False) whether to return the raw "translation_token_ids" to each result
|
return_tensors: (bool, default=False) whether to return the raw "translation_token_ids" to each result
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user