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
Sends data to create and train a classifier and returns information about the new
107
132
classifier.
108
133
109
-
:param file metadata: Metadata in JSON format. The metadata identifies the language of the data, and an optional name to identify the classifier.
110
-
: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://console.bluemix.net/docs/services/natural-language-classifier/using-your-data.html).
134
+
:param file metadata: Metadata in JSON format. The metadata identifies the language of the data, and an optional name to identify the classifier. Specify the language with the 2-letter primary language code as assigned in ISO standard 639. Supported languages are English (`en`), Arabic (`ar`), French (`fr`), German, (`de`), Italian (`it`), Japanese (`ja`), Korean (`ko`), Brazilian Portuguese (`pt`), and Spanish (`es`).
135
+
:param file training_data: Training data in CSV format. Each text value must have at least one class. The data can include up to 20,000 records. For details, see [Data preparation](https://console.bluemix.net/docs/services/natural-language-classifier/using-your-data.html).
111
136
:param str metadata_filename: The filename for training_metadata.
112
137
:param str training_data_filename: The filename for training_data.
113
138
:return: A `dict` containing the `Classifier` response.
@@ -190,8 +215,8 @@ class Classification(object):
190
215
"""
191
216
Response from the classifier for a phrase.
192
217
193
-
:attr str classifier_id: (optional) Unique identifier for this classifier.
194
-
:attr str url: (optional) Link to the classifier.
218
+
:attr str classifier_id: (optional) Unique identifier for this classifier. Not returned by the request to classify multiple phrases.
219
+
:attr str url: (optional) Link to the classifier. Not returned by the request to classify multiple phrases.
195
220
:attr str text: (optional) The submitted phrase.
196
221
:attr str top_class: (optional) The class with the highest confidence.
197
222
:attr list[ClassifiedClass] classes: (optional) An array of up to ten class-confidence pairs sorted in descending order of confidence.
@@ -206,8 +231,8 @@ def __init__(self,
206
231
"""
207
232
Initialize a Classification object.
208
233
209
-
:param str classifier_id: (optional) Unique identifier for this classifier.
210
-
:param str url: (optional) Link to the classifier.
234
+
:param str classifier_id: (optional) Unique identifier for this classifier. Not returned by the request to classify multiple phrases.
235
+
:param str url: (optional) Link to the classifier. Not returned by the request to classify multiple phrases.
211
236
:param str text: (optional) The submitted phrase.
212
237
:param str top_class: (optional) The class with the highest confidence.
213
238
:param list[ClassifiedClass] classes: (optional) An array of up to ten class-confidence pairs sorted in descending order of confidence.
@@ -223,16 +248,16 @@ def _from_dict(cls, _dict):
223
248
"""Initialize a Classification object from a json dictionary."""
0 commit comments