AWS Solutions Architect Associate Certification
Services Data and ML
Demo AWS Translate
In this article, we demonstrate how to use AWS Translate to convert text from one language to another. Whether you need real-time translation for quick text or batch translation for files, AWS Translate offers flexible workflows to suit your needs.
Real-Time Translation
To begin, navigate to the AWS Translate console. Within Amazon Translate, you will find two main options: real-time translation and batch translation.
When you select real-time translation, you will notice options for specifying the source and target languages. Simply copy the text you want to translate, paste it into the text input box, and let AWS Translate handle the rest. If the auto-detect option is enabled, the service automatically identifies the input language.
Currently, the service is set to auto-detect the language, correctly identifying English for the provided sentence. You also have the option to manually specify the source language if necessary. For example, to translate the text into Spanish, simply choose "Spanish" as the target language. The same process applies if you select another target language such as French or any other supported language.
In addition to text input, AWS Translate also supports document translation. For document translation:
- Specify the source and target languages.
- Upload your file.
- Indicate the document type (e.g., a text file, HTML, or a .docx file) to ensure proper handling by the service.
Quick Tip
For best results, always verify that the correct source and target languages are selected before initiating the translation.
Batch Translation
Batch translation is ideal for processing multiple files or large documents. To create a batch translation job, follow these steps:
- Provide a unique job name.
- Specify the source language.
- Indicate the S3 bucket where the files to be translated are stored.
- Define the file format.
- Choose the location where the translated files will be saved (either in a different S3 bucket or in a specific folder within the same bucket).
The batch translation process mirrors that of real-time translation—determine the source and destination languages, and select the appropriate files for translation.
For illustration, here is another example related to real-time translation:
Suppose you aim to translate the following sentence into Spanish:
"I graduated college in 2013. And I have over 10 years of experience working with Amazon Web Services. I mainly configure the networking side of things, like configuring virtual private clouds."
When translating, each word is processed individually. For example, "virtual private clouds" might be translated directly as "Nubes Privadas Virtuales." However, direct translations may not always capture the industry-specific meaning accurately.
Important
If you are not fluent in the target language, be cautious with direct translations as they might alter the intended meaning of technical terms.
Custom Terminology
AWS Translate offers custom terminology to ensure that industry-specific terms are preserved during the translation process. This feature allows you to manually define translations for specific phrases, preventing them from being altered by the auto-translation process.
To set up custom terminology:
- Navigate to the "Custom Terminology" section.
- Click on "Create Terminology."
- Name the terminology file (for example, "AWS term").
- Provide the terminology file in one of the supported formats: CSV, TMX, or TSV.
- Specify the translation directionality.
Below is an example CSV file format ensuring that "virtual private clouds" remains unchanged across multiple languages:
en,fr,es
virtual private clouds,virtual private clouds,virtual private clouds
This CSV file instructs AWS Translate to keep the term "virtual private clouds" intact in English, French, and Spanish. Once your file (e.g., "custom-terminology.csv") is ready, upload it to create your custom terminology entry. Afterward, return to the real-time translation interface, paste your sentence again, and select your desired target language. By enabling custom terminology in the additional settings and choosing your custom terminology (e.g., "AWS term"), "virtual private clouds" remains unchanged in the translated output.
Leveraging custom terminology ensures your translations are technically accurate and contextually appropriate, especially when handling specialized content.
Summary
AWS Translate is a versatile tool that supports both real-time and batch translation workflows. By incorporating custom terminology, you can maintain consistency in industry-specific language across different translations, ensuring clarity and precision in your communication.
For further reading and additional resources, check out the following links:
With these techniques, you can enhance your translation workflows, whether you're translating individual texts or managing complex document translations with AWS Translate.
Watch Video
Watch video content