Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options for the "translation" pipeline when using Xenova/t5-small #762

Open
lucapivato opened this issue May 13, 2024 · 0 comments
Open
Labels
question Further information is requested

Comments

@lucapivato
Copy link

Question

The translation pipeline is documented to use {src_lang and tgt_lang} options to translate from the src language to the tgt language. However, when using Xenova/t5-small none of the options seem to be used. Instead looking at the demo code it appears that you have to change the pipeline.task field to "translation_{fromLanguage}to{targetLanguage}" but I can't find a way to normalize the usage of the translation pipeline with different models.

Is this task pattern documented somewhere or am I missing some other option settings when calling the translation pipeline?

@lucapivato lucapivato added the question Further information is requested label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant