SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Use the Python SDK for Business Entity Recognition

Use the Python SDK to access the pre-trained models of Business Entity Recognition.

Overview

🎓 intermediate 30 min. Machine LearningIntermediateFree TierArtificial IntelligenceCloudSAP Business Technology PlatformSAP Ai ServicesBusiness Entity Recognition

You will learn

  • โœ”How to use your service instance of Business Entity Recognition for authentication
  • โœ”How to do a single inference using a pre-trained model
  • โœ”How to upload data and do a batch inference using a pre-trained model
Nora von Thenen N Nora von Thenen December 11, 2023
Created by June 20, 2022
Contributors

Prerequisites

Steps

Windows macOS Linux BAS

Intro

The repository, initial setup documentation and example code of the Python SDK can be found here. The pre-trained models and the entities you can extract can be found here. The Tech Byte video of this tutorial you can find here:


Step 1 Create service key
โ€”

First, you need to make the service key of your service instance available to the Python SDK so that it can be used for authorization when communicating with your service instance. The service key will be saved in a file named ber_service_key.json.

Enter echo > ber_service_key.json to create an empty JSON file.

Enter touch ber_service_key.json to create an empty JSON file.

Enter touch ber_service_key.json to create an empty JSON file.

Go ahead and open the newly created file in a simple text editor. Then, paste the complete service key that you created in Use Free Tier to Set Up Account for Business Entity Recognition and Get Service Key into the file and save it.

Service Key
Service Key

Now you are all set to start using the service.

Step 2 List all pre-trained models
+
Step 3 Post inference job
+
Step 4 Access the inference response
+
Step 5 Post a batch inference job
+
Step 6 Access batch inference result
+
Step 7 Delete dataset
+
Step 8 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Create service key 2. List all pre-trained models 3. Post inference job 4. Access the inference response 5. Post a batch inference job 6. Access batch inference result 7. Delete dataset 8. Test yourself

Learn more →