|
1 | 1 | /* |
2 | | - * Copyright 2017 IBM Corp. All Rights Reserved. |
| 2 | + * Copyright 2018 IBM Corp. All Rights Reserved. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
5 | 5 | * the License. You may obtain a copy of the License at |
|
12 | 12 | */ |
13 | 13 | package com.ibm.watson.developer_cloud.language_translator.v2; |
14 | 14 |
|
15 | | -import okhttp3.MultipartBody; |
16 | | -import okhttp3.RequestBody; |
17 | | -import com.ibm.watson.developer_cloud.util.RequestUtils; |
18 | 15 | import com.google.gson.JsonObject; |
19 | 16 | import com.ibm.watson.developer_cloud.http.RequestBuilder; |
20 | 17 | import com.ibm.watson.developer_cloud.http.ServiceCall; |
|
32 | 29 | import com.ibm.watson.developer_cloud.language_translator.v2.model.TranslationResult; |
33 | 30 | import com.ibm.watson.developer_cloud.service.WatsonService; |
34 | 31 | import com.ibm.watson.developer_cloud.util.GsonSingleton; |
| 32 | +import com.ibm.watson.developer_cloud.util.RequestUtils; |
35 | 33 | import com.ibm.watson.developer_cloud.util.ResponseConverterUtils; |
36 | 34 | import com.ibm.watson.developer_cloud.util.Validator; |
| 35 | +import okhttp3.MultipartBody; |
| 36 | +import okhttp3.RequestBody; |
37 | 37 |
|
38 | 38 | /** |
39 | 39 | * Language Translator translates text from one language to another. The service offers multiple domain-specific models |
@@ -140,6 +140,10 @@ public ServiceCall<IdentifiableLanguages> listIdentifiableLanguages() { |
140 | 140 | /** |
141 | 141 | * Uploads a TMX glossary file on top of a domain to customize a translation model. |
142 | 142 | * |
| 143 | + * Depending on the size of the file, training can range from minutes for a glossary to several hours for a large |
| 144 | + * parallel corpus. Glossary files must be less than 10 MB. The cumulative file size of all uploaded glossary and |
| 145 | + * corpus files is limited to 250 MB. |
| 146 | + * |
143 | 147 | * @param createModelOptions the {@link CreateModelOptions} containing the options for the call |
144 | 148 | * @return a {@link ServiceCall} with a response type of {@link TranslationModel} |
145 | 149 | */ |
|
0 commit comments