This workshop is here to give you an introduction to IBM Bluemix and their personality insights api. I have written a simple wrapper for making http requests to their api.
Feel free to use the code that is provided in this workshop. In addition IBM offers docs for HTTP, node, and Java for this api. There is also a sample python application you can look at. You can play around and build off of it if you choose.
Bluemix Personality Insights Api Docs
Other samples using Bluemix Api's
- Log in to your Bluemix account
- Go to API's or Catalog
- Under Watson services click on Personality Insights
- Click create "Create"
-
Make a new python virtual environment for the tutorial in python3. You can do this by doing the following,
virtualenv -p python3 personality_venv
Then to activate,source personality_venv/bin/activate
Then do a pip install for requests by doing the followingpip install requests
-
Get your service credentials. To do this go to "Service Credentials"
-
Copy and paste your credentials into the
personaliy_insights_interface.py
file.
-
Create three different .txt files of content coming from different places. These can be a collection of blog posts, articles, or even Facebook. Try to make sure each file has at least 3,500 words in it.
-
Add the file names to the
files
list in thepersonaliy_insights_interface.py
file. -
Run
python personality_insights_interface.py
and be amazed!