cognitive-catalyst / WA-Testing-Tool

Scripts that run against Watson Assistant for K fold validation on training set, testing on blind test, and draw precision curves for comparison.
Apache License 2.0
78 stars 60 forks source link

Cannot import name 'NaturalLanguageClassifierV1' #212

Closed thedalewilliams closed 2 years ago

thedalewilliams commented 2 years ago

Just recieved this error when trying to run our KFOLD tests

Traceback (most recent call last):
  File "run.py", line 27, in <module>
    from ibm_watson import NaturalLanguageClassifierV1
ImportError: cannot import name 'NaturalLanguageClassifierV1'

This is caused by an API depreciation in the ibm-watson python sdk

From https://github.com/watson-developer-cloud/python-sdk

As of this major release, 6.0.0, the NLC api has been removed in preparation for deprecation. If you wish to continue using this sdk to make calls to NLC until its final deprecation, you will have to use a previous version.