watson_developer_cloud.natural_language_classifier_v1 module¶
The v1 Natural Language Classifier service (https://www.ibm.com/watson/developercloud/nl-classifier.html)
-
class
NaturalLanguageClassifierV1
(url='https://gateway.watsonplatform.net/natural-language-classifier/api', **kwargs)[source]¶ Bases:
watson_developer_cloud.watson_developer_cloud_service.WatsonDeveloperCloudService
-
default_url
= 'https://gateway.watsonplatform.net/natural-language-classifier/api'¶
-
create
(training_data, name=None, language='en')[source]¶ Parameters: - training_data – A csv file representing the training data
- name – The optional descriptive name for the classifier
- language – The language of the input data, i.e. ‘en’
Returns: A JSON object with the classifier_id of the newly created classifier, still in training
-