rename string in pipeline

This commit is contained in:
Patrick von Platen 2020-03-26 14:59:49 +01:00
parent 7420a6a9cc
commit 311970546f

View File

@ -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