Contextual Product Translation

Introduction

Contextual product translation is specifically developed for e-commerce scenarios, achieving translation among more than 60 languages. It leverages e-commerce-specific data for training to enhance translation quality and is equipped with intelligent brand recognition and customizable intervention features, providing an efficient multi-language market expansion solution for e-commerce platforms and developers.

Use Cases

Contextual product translation can be used to translate product titles, product descriptions, and reviews in the international e-commerce fields. Compared to other translation products on the market, it performs better in localizing product information and in e-commerce-specific expressions.

Samples

Key Features

1. Supported Language Pairs

The Contextual product translation API supports translation between the language pairs listed in the following table. More language pairs are continuously being added. Please contact us via navigation bar or email us (aidge_support@service.alibaba.com) if you have any specific requirements.

2. Supported Text Format

Currently, only text and HTML formats are supported.

3. Supported Intervention Ability

You only need to associate the corresponding intervention glossary ID with the input parameter to complete the intervention on the target translation result, which can more accurately meet your translation needs in different scenarios.

Currently independent uploading of intervention glossary is not supported. If you have any needs, please contact us via navigation bar or email us (aidge_support@service.alibaba.com).

Pricing

To use the API, you are required to choose and purchase an API resource pack from us on a subscription basis.

  • Each resource pack is valid for one calendar year upon successful purchase, and enables you to access the API up to the number of requests specified in the pack. No refunds can be provided.

  • If you need to purchase more QPS due to business requirements, please contact us via navigation bar or email us (aidge_support@service.alibaba.com).

  • Resource packs cannot be used across different products. For example, if you need to use both contextual product translation and image translation, you must purchase separate resource packs for each.

The prices are as follows:

Quick Start

1.Sample Request

The contextual product translation API requires the input of the following five key parameters: source text to be translated, source language, target language, text format type, and an additional field (used to specify the type of text being translated, such as product title/description/review).

  • The optional input is: product Intervention Glossary ID.

IopClient client = new IopClient(url, appkey, appSecret);
IopRequest request = new IopRequest();
request.setApiName("/ai/text/translation/and/polishment");
request.addApiParameter("sourceTextList", "[\"Pen for iPad, 13 mins Fast Charging Stylus with Palm Rejection, Tilt Sensitivity, Compatible with 2018-2022 iPad Air 3/4/5, iPad Mini 5/6, iPad 6/7/8/9/10, iPad Pro 11, iPad Pro 12.9 (Black)\"]");
request.addApiParameter("sourceLanguage", "en");
request.addApiParameter("targetLanguage", "ko");
request.addApiParameter("formatType", "text");
request.addApiParameter("glossary", "test_glossary");
request.addApiParameter("extension", "{}");
IopResponse response = client.execute(request, Protocol.TOP);
System.out.println(response.getBody());
Thread.sleep(10);

2.Sample Response

  • The output is the translation result.

{
  "data": {
    "usage": 143,
    "translated": [
      "iPad용 펜, 손바닥 거부 기능이 있는 13분 고속 충전 스타일러스, 기울기 감도, 2018-2022 iPad Air 3/4/, iPad Mini 5/6, iPad 6/7/8/9/10, iPad Pro 11, iPad Pro 12.9와 호환 가능(검은색)"
    ],
    "class": "com.aidc.service.api.client.translate.dto.CommonTranslationResponse"
  },
  "requestId": "2101364017192321239846748e03d8",
  "success": true,
  "resCode": 200,
  "resMessage": "success",
  "code": "0",
  "request_id": "2101236717192321239867892",
  "_trace_id_": "2101364017192321239846748e03d8"
}

Depending on the input parameters, the model will output different translated content.

FAQ

  1. What languages does the contextual product translation API support?

You can refer to the "Supported Languages" section. More languages are being added. If you have any needs, please contact us.

  1. How is the contextual product translation API pricing?

It is priced based on the number of characters translated. For details, please refer to the "Pricing"section in this document.

  1. Is the Intervention ability available in bulk?

Yes,it supports batch activation. You only need to associate multiple intervention glossary IDs for it to take effect. However, independent uploading of intervention is currently not supported. If you have any needs, please contact us via navigation bar or email us (aidge_support@service.alibaba.com).

  1. What performance-related information needs to be confirmed during the integration?

The maximum QPS supported by the interface is 15. If the required QPS exceeds 15, please contact your account manager to confirm the following information and arrange for resource allocation in advance.

  • Confirmation of SLA (Service Level Agreement) information, such as AVG RT / P99 RT / AVG QPS / peak QPS for different languages, etc.

  • Confirmation of traffic proportions for different translation scenarios. For example, the traffic proportions for scenarios such as Description / Review / Title, etc.

  • What should I do if an error occurs?

Please refer to the "Errors" section of the API reference for possible causes and recommended solutions.

  1. What action should be taken if the translation is of an unsatisfactory quality when being tested and used?

If you meet bad cases of translation quality, we highly encourage you to provide feedback. Please contact us via navigation bar or email us (aidge_support@service.alibaba.com) for collaborative handling. We will continuously work on optimizing translation quality for e-commerce scenarios.

Last updated