Open LMY-nlp0701 opened 5 years ago
Hi @LMY-nlp0701!
The instructions to run the notebook in the Watson studio are given in the documentation readme.md
file. I recommend you the run the notebook on the cloud. And also, if you want to run the notebook locally. Remove the credentials cell and import the config_classification.txt
and config_relation.txt
locally from your system. You can download these files under the folder data
.
Hi,@Neha-Setia I only want to run the notebook locally. I followed your advice and The following modifications have been made.
2.1 Import .docx
2.2 Import the config_classification.txt and config_relation.txt
3.1 Do I need to register Natural Language Understanding?
3.2 Error: Unauthorized: Access is denied due to invalid credentials , Code: 401
There is only one step away from success.Thank you!
@LMY-nlp0701 hey yes yes you need to register Natural Language Understanding on IBM Cloud.
Hi,@Neha-Setia Because I had something to do last week, so I didn't go on with this work. Today, I go on with this work.
I think I have successfully registered. The pictures of registering are as follows:
Note: I hope you can check that I registered correctly, and then I chose the free version. Must I choose the paid version?
I completed my username and password on jupyter, but I still encountered some new mistakes. The pictures of filling in are as follows:
The pictures of error are as follows:
I'm sorry to trouble you, but I hope you can solve it for me. Thank you !
in 3rd image in first column what i have to write in username and password..i want to use jupyter notebook globally..i dont want to use ibm cloud service.please hepl me.itz urgent.
@Prashant62S you can use the free version of Natural Language classifier. Under the credentials, you can use API key in the code. There may be the possibility, you have exhausted the free version on this id. I can support it end to end if you are using IBM cloud services in the code pattern, else I won't be able to help you as it's beyond my capability.
@Prashant62S did you manage to solve your issue? I ran into the same problem and solved it the following way: IBM cloud services recently changed the way the handle credentials. Simply use your "service credentials". It will look like this: natural_language_understanding = NaturalLanguageUnderstandingV1( username= 'apikey', password='DZ7Txxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', url = "https://gateway-lon.watsonplatform.net/natural-language-understanding/api", version='2017-02-27')
Hi,@Neha-Setia I have some questions and i hope you can answer.
1. I use Jupyter notebook directly to run your code which you provide rather than running using a Jupyter notebook in the IBM Watson Studio. So,Is there any problem?
2. I think I have successfully installed all the environments.
It is worth noting that Version of watson-developer-cloud is not ==1.5, Because I install this version will prompt errors.
3. So here comes the question:
3.1 What's the meaning of following?
&
Add credentials of config__relations.txt here
And, What do I need to do?
3.2 There is an error in running the next code.
ValueError Traceback (most recent call last)