Closed PhilippeComte closed 5 years ago
@PhilippeComte the classifier can take a few minutes to build. That error message is expected while it's building. Give it a few minute (maybe 10?) and see if it builds.
From the docs:
Check the training status periodically until you see a status of Available. With this sample data, training takes about 6 minutes:
Issue a call to the Get information about a classifier method to retrieve the status of the classifier. Replace {apikey} and {url} with the credentials that you copied in the prerequisites. Replace {classifier_id} with your information.
curl -u "apikey:{apikey}" "{url}/v1/classifiers/{classifier_id}"
There's a bunch of docs here: https://console.bluemix.net/docs/services/natural-language-classifier/getting-started.html#natural-language-classifier
Hi Thank you ! I'll be patient !
@PhilippeComte Is this still an issue for you?
No. Thanks for your help .
To support a NLC instance in Frankfurt with apikey:
I've added a line in the .env file and commented the password line NATURAL_LANGUAGE_CLASSIFIER_USERNAME=apikey /#/ NATURAL_LANGUAGE_CLASSIFIER_PASSWORD=
NATURAL_LANGUAGE_CLASSIFIER_IAM_APIKEY='xxxxxxxxx....xxx'
NATURAL_LANGUAGE_CLASSIFIER_URL='https://gateway-fra.watsonplatform.net/natural-language-classifier/api'
I've modified the welcome.py file (the line with the url)
and
Not sure it's enough, but at least my credentials are recognised . As the model is not trained yet , I still have an error :