The text translation model translates text between a wide range of languages.
The model deploys the M2M100 418M model from Hugging Face. The model requires the source language code, target language code, and source text, and it returns the translated text. The source text can be a maximum of 3,000 characters. To see the list of languages that the model supports and the language codes, refer to the Hugging Face documentation.
The results from the text translation model might differ from the results you see on Hugging Face for the M2M100 418M model. Hugging Face sometimes changes the model on their website, while the text translation model is static.
Note: This model is sourced from a third party. Informatica does not assume ownership of its behavior, functionality, or any associated liabilities. Any issues, updates, or concerns related to this artifact should be directed to the original provider or creator. We provide this artifact as-is and without warranties.
Example
You're designing the website for a local government. In order to make the information accessible to speakers of different languages, you use the text translation model to render the website in the language configured in the user's browser.
The following image shows an example test of the text translation model: