huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
135.63k stars 27.15k forks source link

pipeline("summarization") is extractive vs abstractive? #20047

Closed keyuchen21 closed 1 year ago

keyuchen21 commented 2 years ago

System Info

pipeline("summarization") is extractive vs abstractive?

use bart in pytorch

summarizer = pipeline("summarization") summarizer("An apple a day, keeps the doctor away", min_length=5, max_length=20)

use t5 in tf

summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-base", framework="tf") summarizer("An apple a day, keeps the doctor away", min_length=5, max_length=20)

Who can help?

No response

Information

Tasks

Reproduction

use bart in pytorch

summarizer = pipeline("summarization") summarizer("An apple a day, keeps the doctor away", min_length=5, max_length=20)

use t5 in tf

summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-base", framework="tf") summarizer("An apple a day, keeps the doctor away", min_length=5, max_length=20)

Expected behavior

pipeline("summarization") is extractive vs abstractive? there is no mention about it on the official documentation

sgugger commented 2 years ago

Please use the forums for such questions as we keep issues for bugs and feature requests only.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.