|
1 | 1 | /**
|
2 |
| -* (C) Copyright IBM Corp. 2018, 2020. |
| 2 | +* (C) Copyright IBM Corp. 2020. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -91,8 +91,11 @@ public LanguageTranslatorService(string versionDate, Authenticator authenticator
|
91 | 91 | /// <summary>
|
92 | 92 | /// List supported languages.
|
93 | 93 | ///
|
94 |
| - /// Lists all supported languages. The method returns an array of supported languages with information about |
95 |
| - /// each language. Languages are listed in alphabetical order by language code (for example, `af`, `ar`). |
| 94 | + /// Lists all supported languages for translation. The method returns an array of supported languages with |
| 95 | + /// information about each language. Languages are listed in alphabetical order by language code (for example, |
| 96 | + /// `af`, `ar`). In addition to basic information about each language, the response indicates whether the |
| 97 | + /// language is `supported_as_source` for translation and `supported_as_target` for translation. It also lists |
| 98 | + /// whether the language is `identifiable`. |
96 | 99 | /// </summary>
|
97 | 100 | /// <param name="callback">The callback function that is invoked when the operation completes.</param>
|
98 | 101 | /// <returns><see cref="Languages" />Languages</returns>
|
@@ -162,10 +165,13 @@ private void OnListLanguagesResponse(RESTConnector.Request req, RESTConnector.Re
|
162 | 165 | /// source language to have the service attempt to detect the language from the input text. If you omit the
|
163 | 166 | /// source language, the request must contain sufficient input text for the service to identify the source
|
164 | 167 | /// language.
|
| 168 | + /// |
| 169 | + /// You can translate a maximum of 50 KB (51,200 bytes) of text with a single request. All input text must be |
| 170 | + /// encoded in UTF-8 format. |
165 | 171 | /// </summary>
|
166 | 172 | /// <param name="callback">The callback function that is invoked when the operation completes.</param>
|
167 |
| - /// <param name="text">Input text in UTF-8 encoding. Multiple entries result in multiple translations in the |
168 |
| - /// response.</param> |
| 173 | + /// <param name="text">Input text in UTF-8 encoding. Submit a maximum of 50 KB (51,200 bytes) of text with a |
| 174 | + /// single request. Multiple elements result in multiple translations in the response.</param> |
169 | 175 | /// <param name="modelId">The model to use for translation. For example, `en-de` selects the IBM-provided base
|
170 | 176 | /// model for English-to-German translation. A model ID overrides the `source` and `target` parameters and is
|
171 | 177 | /// required if you use a custom model. If no model ID is specified, you must specify at least a target
|
@@ -501,9 +507,11 @@ private void OnListModelsResponse(RESTConnector.Request req, RESTConnector.Respo
|
501 | 507 | /// * **XLIFF** (`.xliff`) - XML Localization Interchange File Format (XLIFF) is an XML specification for the
|
502 | 508 | /// exchange of translation memories.
|
503 | 509 | /// * **CSV** (`.csv`) - Comma-separated values (CSV) file with two columns for aligned sentences and phrases.
|
504 |
| - /// The first row contains the language code. |
| 510 | + /// The first row must have two language codes. The first column is for the source language code, and the second |
| 511 | + /// column is for the target language code. |
505 | 512 | /// * **TSV** (`.tsv` or `.tab`) - Tab-separated values (TSV) file with two columns for aligned sentences and
|
506 |
| - /// phrases. The first row contains the language code. |
| 513 | + /// phrases. The first row must have two language codes. The first column is for the source language code, and |
| 514 | + /// the second column is for the target language code. |
507 | 515 | /// * **JSON** (`.json`) - Custom JSON format for specifying aligned sentences and phrases.
|
508 | 516 | /// * **Microsoft Excel** (`.xls` or `.xlsx`) - Excel file with the first two columns for aligned sentences and
|
509 | 517 | /// phrases. The first row contains the language code.
|
@@ -844,15 +852,15 @@ private void OnListDocumentsResponse(RESTConnector.Request req, RESTConnector.Re
|
844 | 852 | /// Translate document.
|
845 | 853 | ///
|
846 | 854 | /// Submit a document for translation. You can submit the document contents in the `file` parameter, or you can
|
847 |
| - /// reference a previously submitted document by document ID. |
| 855 | + /// reference a previously submitted document by document ID. The maximum file size for document translation is |
| 856 | + /// * 20 MB for service instances on the Standard, Advanced, and Premium plans |
| 857 | + /// * 2 MB for service instances on the Lite plan. |
848 | 858 | /// </summary>
|
849 | 859 | /// <param name="callback">The callback function that is invoked when the operation completes.</param>
|
850 |
| - /// <param name="file">The contents of the source file to translate. |
851 |
| - /// |
852 |
| - /// [Supported file |
853 |
| - /// types](https://cloud.ibm.com/docs/language-translator?topic=language-translator-document-translator-tutorial#supported-file-formats) |
854 |
| - /// |
855 |
| - /// Maximum file size: **20 MB**.</param> |
| 860 | + /// <param name="file">The contents of the source file to translate. The maximum file size for document |
| 861 | + /// translation is 20 MB for service instances on the Standard, Advanced, and Premium plans, and 2 MB for |
| 862 | + /// service instances on the Lite plan. For more information, see [Supported file formats |
| 863 | + /// (Beta)](https://cloud.ibm.com/docs/language-translator?topic=language-translator-document-translator-tutorial#supported-file-formats).</param> |
856 | 864 | /// <param name="filename">The filename for file.</param>
|
857 | 865 | /// <param name="fileContentType">The content type of file. (optional)</param>
|
858 | 866 | /// <param name="modelId">The model to use for translation. For example, `en-de` selects the IBM-provided base
|
|
0 commit comments