Skip to content

Latest commit

 

History

History
45 lines (24 loc) · 2.92 KB

Getting-Started.md

File metadata and controls

45 lines (24 loc) · 2.92 KB

Getting Started with Watson NLP on TechZone

This guide will show you how to set up a Python notebook environment using Watson Studio on IBM Cloud so that you can use the Watson NLP library. This guide demonstrates how to set things up for the Sentiment Analysis tutorial. The flow for Emotion Classification is similar.

Steps:

Reserve your env

  1. Under the Sentiment Analysis tab, find the environment tile and click Reserve to reserve a Watson Studio environment.

reserve

  1. Shortly, you will receive an email inviting you to join an IBM cloud account. Follow the instructions in the email to join. Your environment should be ready within a few minutes. When it is ready, you will recieve a second email similar to the following.

env_details

  1. Log in to IBM Cloud Pak for Data. Once logged in, ensure that you are using cloud account 2577353 - tsglwatson. You can check the name of the current account in the bar the top of the screen. Change the account if necessary using the drop-down menu. From the IBM Cloud Pak for Data dashboad, find the tile for the Project that you want to work with. For the Sentiment Analysis tutorial, the name of this Project will have the prefix sentiment-analysis. Once the Project is open, you can view the notebooks and data assets of the project using the Assets tab.

assets

  1. Before working with the notebooks, you need to define the environment in which these notebooks will run. To get started on that, click on the Manage tab.

manage_tab

  1. Click on Environments from the side Navbar. Next click on Templates tab. Finally, click on New template

env

  1. We will create an environment template that contains the Watson NLP library. Give your environment template a name like Watson NLP. In the Hardware configuration, select at least 4 vCPU and 16 GB RAM. For Software, select DO + NLP Runtime 22.1 on Python 3.9. Finally click Create

new_env_settings

  1. Now we will set an environment for a notebook. Click on the Assets tab. Find the notebook you want to work with among the assets. Click on the ellipsis (the three dots) to the right of the notebook name in order to open a drop-down menu. Within this menu click Change environment.

change_env

  1. Select the environment template that you created previously and click Change.

change

  1. You will be able to run the notebook by clicking the ellipsis and selecting Edit.

edit

  1. Your notebook will load. You can follow the instructions in your notebook to complete the tutorials on Watson NLP.

loaded