Amazon Translate PlatoBlockchain Data Intelligence کا استعمال کرتے ہوئے مشینی ترجمہ شدہ متن میں رسمی طور پر کنٹرول کریں۔ عمودی تلاش۔ عی

ایمیزون ٹرانسلیٹ کا استعمال کرتے ہوئے مشین سے ترجمہ شدہ ٹیکسٹ میں فارمیلیٹی کو کنٹرول کریں۔

ایمیزون ترجمہ is a neural machine translation service that delivers fast, high-quality, affordable, and customizable language translation. Amazon Translate now supports formality customization. This feature allows you to customize the level of formality in your translation output. At the time of writing, the formality customization feature is available for six target languages: French, German, Hindi, Italian, Japanese, and Spanish. You can customize the formality of your translated output to suit your communication needs. 

You have three options to control the level of formality in the output:

  • پہلے سے طے شدہ – No control over formality by letting the neural machine translation operate with no influence
  • رسمی – Useful in the insurance and healthcare industry, where you may prefer a more formal translation
  • غیر رسمی – Useful for customers in gaming and social media who prefer an informal translation

Formality customization is available in real-time translation operations in commercial AWS ریجنز where Amazon Translate is available. In this post, we walk you through how to use the formality customization feature and get a customized translated output securely.

حل جائزہ

To get formal or informal words and phrases in your translation output, you can toggle the formality button under the additional settings on the Amazon Translate console when you run the translations through real-time requests. The following sections describe using formality customization via the Amazon Translate console, AWS کمانڈ لائن انٹرفیس (AWS CLI), or the Amazon Translate SDK (Python Boto3).

ایمیزون ٹرانسلیٹ کنسول

To demonstrate the formality customization with real-time translation, we use the sample text “Good morning, how are you doing today? ” in English:

  1. ایمیزون ٹرانسلیٹ کنسول پر، منتخب کریں۔ انگریزی (en) لیے ماخذ کی زبان.
  2. میں سے انتخاب کریں ہسپانوی (S) لیے مطلوبہ زبان.
  3. Enter the quoted text in the ماخذ کی زبان لکھنے کی جگہ.
  4. میں اضافی ترتیبات سیکشن، فعال کریں رسمی، اور منتخب کریں غیر رسمی ڈراپ ڈاؤن مینو پر۔

The translated output is “Buenos días, ¿cómo te va hoy? ” which is casual way of speaking in Spanish.

English to Spanish informal translation

  1. اب، منتخب کریں رسمی on the drop-down رسمی مینو.

The translated output changes to “Buenos días, ¿cómo le va hoy? ” which is a more formal way of speaking in Spanish.

English to Spanish formal translation

You can follow the preceding steps to change the target language to other supported languages and note the difference between the informal and formal translations. Let’s try some more sample text.

In the following examples, we translate “لہذا آپ کو کیا لگتا ہے؟ ” from English to German. The first screenshot shows an informal translation.

English to German informal translation

The following screenshot shows the formal translation. English to German formal translation

In another example, we translate “کیا میں اپ کی مدد کر سکتا ہوں؟ ” from English to Japanese. The first screenshot shows an informal translation.

English to Japanese informal translation

The following screenshot shows the formal translation.

English to Japanese formal translation

AWS CLI

۔ translate-text AWS CLI کمانڈ کے ساتھ --settings Formality=FORMAL | INFORMAL translates words and phrases in your translated text appropriately.

درج ذیل AWS CLI کمانڈز یونکس، لینکس اور میک او ایس کے لیے فارمیٹ کیے گئے ہیں۔ ونڈوز کے لیے، بیک سلیش کو تبدیل کریں () ہر لائن کے آخر میں کیریٹ کے ساتھ یونکس تسلسل کا کردار (^).

In the following code, we translate “تم کیسے ہو ” from English to Hindi, using the FORMAL ترتیب:

aws translate translate-text --text "How are you?" --source-language-code "en" --target-language-code "hi" --settings Formality=FORMAL

آپ کو مندرجہ ذیل ٹکڑوں کی طرح جواب ملتا ہے:

{     "TranslatedText": "आप कैसे हो?",  "SourceLanguageCode": "en",      "TargetLanguageCode": "hi",  "AppliedSettings": {          "Formality": "FORMAL" } 
}

The following code translates the same text into informal Hindi:

aws translate translate-text --text "How are you?" --source-language-code "en" --target-language-code "hi" --settings Formality=INFORMAL

آپ کو مندرجہ ذیل ٹکڑوں کی طرح جواب ملتا ہے:

{     "TranslatedText": "तुम कैसे हो?",      "SourceLanguageCode": "en",      "TargetLanguageCode": "hi",      "AppliedSettings": {          "Formality": "INFORMAL"      } 
}

Amazon Translate SDK (Python Boto3)

The following Python Boto3 code uses the real-time translation call with both formality settings to translate “تم کیسے ہو ” from English to Hindi.

import boto3
import json translate = boto3.client(service_name='translate', region_name='us-west-2') result = translate.translate_text(Text="How are you?", SourceLanguageCode="en", TargetLanguageCode="hi", Settings={"Formality": "INFORMAL"})
print('TranslatedText: ' + result.get('TranslatedText'))
print('SourceLanguageCode: ' + result.get('SourceLanguageCode'))
print('TargetLanguageCode: ' + result.get('TargetLanguageCode'))
print('AppliedSettings: ' + json.dumps(result.get('AppliedSettings'))) print('') result = translate.translate_text(Text="How are you?", SourceLanguageCode="en", TargetLanguageCode="hi", Settings={"Formality":"FORMAL"})
print('TranslatedText: ' + result.get('TranslatedText'))
print('SourceLanguageCode: ' + result.get('SourceLanguageCode'))
print('TargetLanguageCode: ' + result.get('TargetLanguageCode'))
print('AppliedSettings: ' + json.dumps(result.get('AppliedSettings')))

نتیجہ

You can use the formality customization feature in Amazon Translate to control the level of formality in machine translated text to meet your application context and business requirements. You can customize your translations using Amazon Translate in multiple ways, including اپنی مرضی کی اصطلاحات, گستاخانہ ماسکنگ، اور active custom translation.


مصنفین کے بارے میں

Amazon Translate PlatoBlockchain Data Intelligence کا استعمال کرتے ہوئے مشینی ترجمہ شدہ متن میں رسمی طور پر کنٹرول کریں۔ عمودی تلاش۔ عیشیوا راجمانی۔ AWS میں بوسٹن کی بنیاد پر انٹرپرائز سلوشنز آرکیٹیکٹ ہے۔ اسے صارفین کے ساتھ مل کر کام کرنے اور ان کی ڈیجیٹل تبدیلی اور AWS اپنانے کے سفر کی حمایت کرنے میں لطف آتا ہے۔ اس کی توجہ کے بنیادی شعبے سرور لیس، ایپلیکیشن انضمام، اور سیکیورٹی ہیں۔ کام سے باہر، وہ باہر کی سرگرمیوں اور دستاویزی فلمیں دیکھنے سے لطف اندوز ہوتا ہے۔

Amazon Translate PlatoBlockchain Data Intelligence کا استعمال کرتے ہوئے مشینی ترجمہ شدہ متن میں رسمی طور پر کنٹرول کریں۔ عمودی تلاش۔ عیسدھانشو ملہوترا AWS کے لیے بوسٹن میں مقیم انٹرپرائز سلوشنز آرکیٹیکٹ ہے۔ وہ ٹیکنالوجی کا شوقین ہے جو پیچیدہ کاروباری چیلنجوں کے لیے جدید حل تلاش کرنے میں صارفین کی مدد کرنے سے لطف اندوز ہوتا ہے۔ اس کی توجہ کے بنیادی شعبے DevOps، مشین لرننگ، اور سیکیورٹی ہیں۔ جب وہ کلاؤڈ کے سفر پر گاہکوں کے ساتھ کام نہیں کر رہا ہوتا ہے، تو اسے پڑھنے، پیدل سفر کرنے، اور نئے کھانوں کی تلاش میں لطف آتا ہے۔

Amazon Translate PlatoBlockchain Data Intelligence کا استعمال کرتے ہوئے مشینی ترجمہ شدہ متن میں رسمی طور پر کنٹرول کریں۔ عمودی تلاش۔ عیواٹسن جی سریواتھسن AWS کی قدرتی زبان کی پروسیسنگ سروس، Amazon Translate کے لیے سینئر پروڈکٹ مینیجر ہیں۔ اختتام ہفتہ پر آپ اسے بحر الکاہل کے شمال مغرب میں باہر کی تلاش کرتے ہوئے پائیں گے۔

ٹائم اسٹیمپ:

سے زیادہ AWS مشین لرننگ