Regenerate nbc
# coding: utf-8
-# Copyright 2017 IBM All Rights Reserved.
+# Copyright 2018 IBM All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -72,10 +72,9 @@ class NaturalLanguageClassifierV1(WatsonService):
def classify(self, classifier_id, text):
"""
- Returns label information for the input.
-
- The status must be `Available` before you can use the classifier to classify text.
- Use `Get information about a classifier` to retrieve the status.
+ Returns label information for the input. The status must be `Available` before you
+ can use the classifier to classify text. Use `Get information about a classifier`
+ to retrieve the status.
:param str classifier_id: Classifier ID to use.
:param str text: The submitted phrase.
@@ -104,8 +103,8 @@ class NaturalLanguageClassifierV1(WatsonService):
Sends data to create and train a classifier and returns information about the new
classifier.
- :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/python.html?python#create-classifier).
- :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).
+ :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).
+ :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).
:param str metadata_filename: The filename for training_metadata.
:param str training_data_filename: The filename for training_data.
:return: A `dict` containing the `Classifier` response.
