huggingface / transformers

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

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

Closed km5ar closed 1 year ago

km5ar commented 1 year 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 1 year 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.