Files
HuggingFace_transformer/src/transformers
Nicolas Patry c2d0ffec8c Adding a new return_full_text parameter to TextGenerationPipeline. (#9852)
* Adding a new `return_full_text` parameter to TextGenerationPipeline.

For text-generation, it's sometimes used as prompting text.
In that context, prefixing `generated_text` with the actual input
forces the caller to take an extra step to remove it.

The proposed change adds a new parameter (for backward compatibility).
`return_full_text` that enables the caller to prevent adding the prefix.

* Doc quality.
2021-01-29 10:27:32 +01:00
..
2021-01-19 15:22:17 -05:00
2021-01-27 03:20:09 -05:00
2021-01-27 03:20:09 -05:00
2020-12-07 18:36:34 -05:00
2020-12-22 19:52:47 +01:00
2020-12-07 18:36:34 -05:00
2021-01-27 11:28:11 +01:00
2020-12-07 18:36:34 -05:00
2020-12-22 11:33:44 -05:00
2020-12-27 21:57:50 +01:00