chore: regenerated natural language classifier
@@ -67,14 +67,13 @@ class NaturalLanguageClassifierV1(WatsonService):
use_vcap_services=True)
#########################
- # naturallanguageclassifier
+ # Classify text
#########################
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.
+ can use the classifier to classify text.
:param str classifier_id: Classifier ID to use.
:param str text: The submitted phrase.
@@ -92,6 +91,10 @@ class NaturalLanguageClassifierV1(WatsonService):
method='POST', url=url, json=data, accept_json=True)
return response
+ #########################
+ # Manage classifiers
+ #########################
+
def create_classifier(self,
metadata,
training_data,
@@ -103,8 +106,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/#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 file metadata: Metadata in JSON format. The metadata identifies the language of the data, and an optional name to identify the 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 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.
