Skip to Content

Set Up the Python SDK for Business Entity Recognition

Create a virtual environment and install the Python SDK (Software Development Kit) for Business Entity Recognition.
You will learn
  • How to set up a virtual environment
  • How to install the Python SDK for Business Entity Recognition
noravthNora von ThenenJune 29, 2022
Created by
June 29, 2022

Use Business Entity Recognition (one of the SAP AI Business Services in SAP Business Technology Platform) to identify and extract named entities from your text data. For more information, see Business Entity Recognition help portal documentation.

The Python SDK is available in GitHub.

  • Step 1

    First, you need to make sure that you have Python 3 installed. You need a Python version 3 or higher in order for the SDK to work!

    In case you have a Python installation, it will output the version.

    In case command not found is printed, you do not have Python installed. Head over here and install an up-to-date version. Then, close down and open up a new command prompt or terminal and run the command python --version again to check if the installation was successful.

    Log in to complete tutorial
  • Step 2

    Next, you will set up a virtual environment using the Python package venv. With this package you avoid installing Python packages globally which could break system tools or other projects.

    You can tell that the environment is activated as it is added to your current path.

    Log in to complete tutorial
  • Step 3

    Finally, you can install the SDK of Business Entity Recognition.

    Within your virtual environment, run the command pip install sap-business-entity-recognition-client-library to install the SDK.

    Install SDK

    You will then receive a similar output as above.

    As a first test, enter the command python -c "import sap_ber_client" to import the SDK. If there is no error the installation was successful and you can move onto the next tutorial.

    Import SDK
    Log in to complete tutorial
  • Step 4

    What are virtual environments in Python used for?

    Log in to complete tutorial
Back to top