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

Detect and Highlight Entities from Unstructured Text with Pre-trained Models

Use the Business Entity Recognition pre-trained models to get machine learning entity predictions for the text you submit to the service.

Overview

🎓 beginner 20 min. Machine LearningBeginnerArtificial IntelligenceCloudSAP Business Technology PlatformSAP Ai ServicesBusiness Entity RecognitionFree Tier

You will learn

  • โœ”How to call and test Business Entity Recognition
  • โœ”How to access and use the Business Entity Recognition Swagger UI (User Interface)
  • โœ”How to use the Business Entity Recognition pre-trained models to extract entities from unstructured text
Juliana Morais J Juliana Morais December 11, 2023
Created by July 20, 2020
Contributors

Prerequisites

Steps

Intro

The core functionality of Business Entity Recognition is to automatically detect and highlight any given type of named entity in unstructured text and classify it in accordance with predefined categories. When you finish this tutorial, you will get named entity predictions for the texts you submit to the service.

Business Entity Recognition is a customizable machine learning service, but you can also use the following pre-trained machine learning models:

  • sap_address_entity
  • sap_email_business_entity
  • sap_generic_entities
  • sap_invoice_header

See Extracted Entities by Pre-trained Model and Free Tier Option Technical Constraints.

This tutorial gives you an introduction to the service using the free tier option for Business Entity Recognition and the available pre-trained machine learning models. If you want to try out the Business Entity Recognition training endpoints to create your own model, check out the tutorial group Use Custom Machine Learning Models to Process Unstructured Text.


Step 1 Authorize Swagger UI
โ€”

You will use Swagger UI, via any web browser, to call the Business Entity Recognition service APIs. Swagger UI allows developers to effortlessly interact and try out every single operation an API exposes for easy consumption. For more information, see Swagger UI.

In the service key you created for Business Entity Recognition in the previous tutorial: Create Service Instance for Business Entity Recognition, you should find (outside the uaa section of the service key) an entry called url (as highlighted in the image below).

  1. To access the Business Entity Recognition Swagger UI, add /api/v1 to the url value, paste it into any web browser and press Enter.

    BER
    BER

  2. To be able to use the Swagger UI endpoints, you need to authorize yourself. In the top right corner, click Authorize.

    BER
    BER

  3. Get the access_token value created in the previous tutorial: Get OAuth Access Token for Business Entity Recognition Using Any Web Browser, then add bearer in front of it, and enter in the Value field.

    Code
    bearer <access_token>

    BER
    BER

  4. Click Authorize and then click Close.

    BER
    BER

Step 2 Enter inference text for sap_address_entity
+
Step 3 Get inference response from sap_address_entity
+
Step 4 Enter inference text for sap_email_business_entity
+
Step 5 Get inference response from sap_email_business_entity
+
Step 6 Enter inference text for sap_generic_entities
+
Step 7 Get inference response from sap_generic_entities
+
Step 8 Enter inference text for sap_invoice_header
+
Step 9 Get inference response from sap_invoice_header
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 9
1. Authorize Swagger UI 2. Enter inference text for sap_address_entity 3. Get inference response from sap_address_entity 4. Enter inference text for sap_email_business_entity 5. Get inference response from sap_email_business_entity 6. Enter inference text for sap_generic_entities 7. Get inference response from sap_generic_entities 8. Enter inference text for sap_invoice_header 9. Get inference response from sap_invoice_header

Learn more →