AWS AI Services Programming Series - Part4 (Comprehend)

   Go back to the Task List

  « 1: Pre-requisite    3: Detect Entities in the Text »

2: Setup Development Environment

AWS Cloud9 is a cloud-based integrated development environment (IDE) from Amazon Web Services. The Cloud9 IDE provides the software and tooling needed for dynamic programming with around 40 languages including JavaScript, Python, PHP, Ruby, Go, and C++. In this task, you configure AWS Cloud9 environment with AWS SDK for Python Boto3 in order to program with AWS Machine Learning APIs.

  1. Login to the AWS Console. Select an AWS Region of your choice where AWS Cloud9 and Machine Learning APIs are available. You will see the exercise using the Ireland region.

  2. Goto the AWS Cloud9 console and click on the Create environment button.

    Cloud9

  3. On the next screen, enter dojoenvironment as the name and click on the Next step button.

    Cloud9

  4. On the next screen, select Environment type as Create a new instance for environment (direct access). Select Instance type as t2.micro (1 GiB RAM + 1 vCPU). Select Ubuntu Server 18.04 LTS for the Platform. The development environment will have Ubuntu as the operating system. Keep rest of the fields with the default values and click on the Next step button.

    Cloud9

  5. On the next screen, click on the Create environment button.

  6. It will take couple of minutes to create the environment. Wait for the environment to be ready. Once it is ready, you can see bash console window in the bottom part of the screen. It provides console based access to the development machine.

  7. You will now configure the environment for the Python Boto3 SDK. Run the following command in the console to update the environment.

     sudo apt-get update
    

    `

    Cloud9

  8. Python3 is already installed in the environment. You can check it by running the command bellow in the console.

     python3 --version
    

    `

    Cloud9

  9. AWS SDK for Python Boto3 is not installed in the environment. Run the following command to install Boto3 package in the environment. When it asks for the confirmation; you type in Y and enter.

     sudo apt install python-boto3
    

    `

    Cloud9

  10. The Cloud9 environment is ready for the AWS Machine Learning programming with AWS SDK Boto3. Let’s get started with Amazon Comprehend.