A capability that makes AI powerful is its translation abilities because of the vast amount of languages and colloquialisms that it is trained on. With Displayr's AI Translate features, you only need to provide a text variable and the language you want to translate to, and you can even edit the prompt to give further instructions for translating. This article describes how to go from text responses in either a single language or multiple languages:
To text responses that are translated into the language of your choice in a new variable:
If you'd like to translate and categorize the text in one go using Displayr's text categorization tools, please see: How to Automatically Translate Text When Classifying Text Data.
Requirements
- You will need a Text variable. Text variables are represented by an A next to the variable in the Data Sources tree:
- Familiarity with how to customize Displayr AI widgets and prompts, see Using Customizable Displayr AI Features.
Method
- Select the text variable to be translated in the Data Sources tree.
- Select + > Text Manipulation > Translate.
- A new text variable will appear just below the original. The new variable will be selected, and in the object inspector, you will see the settings for the translation:
- The first line of the Prompt indicates what language you want to translate to. The default Prompt is to translate to English, but you can edit it to any language.
- Change the Source language field to whatever language your original text variable is in, or to Auto-detect if your text variable has multiple languages or if you want the AI to determine the language used. This is automatically used in the prompt where
{Source language}is referenced. - Click Calculate.
- The new variable with the translated text will appear in your Data Sources tree.
- [OPTIONAL] You can further customize your Prompt to add in more guidance for translating (such as do not change references to x, y, z). You can also add new fields via the Customize tab, and reference those fields by name inside curly brackets in your Prompt. For example, the Text variable field is used in the prompt anywhere
{Text variable}is used. See Using Customizable Displayr AI Features for a more detailed example.
If you want to classify the resulting text variable, see How to Classify Text Data.
Next
How to Automatically Translate Unstructured Text in Other Languages with Automatic Categorization
How to Automatically Translate Text When Classifying Text Data
UPCOMING WEBINAR: 10 Market Research Predictions Over the Next 4 Years