GeneXus SDK for SAP Leonardo: Product Text Classification

Official Content

 The Product Text Classification service(API) allows you to classify each product to relevant categories based on its description.

 

How to use the Product Text Classification API

To use the Product Text Classification API you need to use the PostInferenceSync procedure

GeneXusSAPLeonardo.ProductTextClassification.PostInferenceSync(&files,&Text,&Response,&Message,&IsSuccess)

Where:

  • &files: This parameter is required only if the parameter &Text is null or empty. The file to be uploaded.
    • Archive file - one file with the format ‘*/zip’ without folder hierarchy containing the text files to be classified.
  • &Text: This parameter is required only if the parameter &files is null or empty. The text to be classified.
  • &Response: is a Structured Data Type(SDT) that contains the result.
  • &Message: is a Message that contains information about the request.
  • &IsSuccess: is a Boolean that is true if no errors were encountered.

 

&Response SDT Structure

ResponseSDT_png

 

Read more about the Product Text Classification API.

 

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.