nl-classifier

when training data using IBM Bluemix natural language classifier api, return data too small

天涯浪子 提交于 2021-02-10 12:47:57
问题 When I follow "Getting started with the Natural Language Classifier service" guide line, I meet problem at Stage 2: Create and train a classifier: $ curl -i -u "<username>":"<password>" \ -F training_data=@<path_to_file>/weather_data_train.csv \ -F training_metadata="{\"language\":\"en\",\"name\":\"TutorialClassifier\"}" \ "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers" It returns: { "code" : 400, "error" : "Data too small", "description" : "The number of

IBM Cloud-Watson NLC - TypeError: __init__() got an unexpected keyword argument 'iam_apikey'

无人久伴 提交于 2020-07-07 07:33:28
问题 I am currently trying to deploy an application from a repo. (https://github.com/IBM/nlc-icd10-classifier#run-locally) But it gives me this error: Traceback (most recent call last): File "app.py", line 34, in <module> iam_apikey=nlc_iam_apikey TypeError: __init__() got an unexpected keyword argument 'iam_apikey' I am on Python 3.6.8 app.py: load_dotenv(os.path.join(os.path.dirname(__file__), ".env")) nlc_username = os.environ.get("NATURAL_LANGUAGE_CLASSIFIER_USERNAME") nlc_password = os