You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: watson_developer_cloud/language_translator_v2.py
+3-9Lines changed: 3 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -140,11 +140,8 @@ def create_model(self,
140
140
forced_glossary=None,
141
141
parallel_corpus=None,
142
142
monolingual_corpus=None,
143
-
forced_glossary_content_type=None,
144
143
forced_glossary_filename=None,
145
-
parallel_corpus_content_type=None,
146
144
parallel_corpus_filename=None,
147
-
monolingual_corpus_content_type=None,
148
145
monolingual_corpus_filename=None):
149
146
"""
150
147
Uploads a TMX glossary file on top of a domain to customize a translation model.
@@ -154,11 +151,8 @@ def create_model(self,
154
151
:param file forced_glossary: A TMX file with your customizations. The customizations in the file completely overwrite the domain data translation, including high frequency or high confidence phrase translations. You can upload only one glossary with a file size less than 10 MB per call.
155
152
:param file parallel_corpus: A TMX file that contains entries that are treated as a parallel corpus instead of a glossary.
156
153
:param file monolingual_corpus: A UTF-8 encoded plain text file that is used to customize the target language model.
157
-
:param str forced_glossary_content_type: The content type of forced_glossary.
158
154
:param str forced_glossary_filename: The filename for forced_glossary.
159
-
:param str parallel_corpus_content_type: The content type of parallel_corpus.
160
155
:param str parallel_corpus_filename: The filename for parallel_corpus.
161
-
:param str monolingual_corpus_content_type: The content type of monolingual_corpus.
162
156
:param str monolingual_corpus_filename: The filename for monolingual_corpus.
163
157
:return: A `dict` containing the `TranslationModel` response.
:param file metadata: Metadata in JSON format. The metadata identifies the language of the data, and an optional name to identify the classifier. For details, see the [API reference](https://www.ibm.com/watson/developercloud/natural-language-classifier/api/v1/#create_classifier).
108
108
:param file training_data: Training data in CSV format. Each text value must have at least one class. The data can include up to 15,000 records. For details, see [Using your own data](https://www.ibm.com/watson/developercloud/doc/natural-language-classifier/using-your-data.html).
109
-
:param str training_metadata_filename: The filename for training_metadata.
109
+
:param str metadata_filename: The filename for training_metadata.
110
110
:param str training_data_filename: The filename for training_data.
111
111
:return: A `dict` containing the `Classifier` response.
0 commit comments