Summarize Then Translate
A 2-step recipe with Hugging Face. We can help you get access.
Recipe · 2 steps
Summarize Then Translate
with Hugging Face · Artificial Intelligence Management
Summarize a document and translate the resulting summary.
- Summarize the source text into a shorter version using the summarization model.
- Translate the generated summary into the target language using the translation model.
What you'll need to have ready
- hfToken: Hugging Face access token used as a Bearer credential.
- summarizationModelId: Model id used for summarization (e.g. facebook/bart-large-cnn).
- translationModelId: Model id used for translation (e.g. Helsinki-NLP/opus-mt-en-fr).
- text: The long source text to summarize and then translate.
- minLength: Minimum length of the generated summary.
- maxLength: Maximum length of the generated summary.
For your developer
Arazzo workflow hugging-face:summarize-then-translate, 2 operations: summarization → translation. Specs on APIs.io.