GeneXus SDK for SAP Leonardo: Language Detection

Official Content

The Language Detection service(API) allows you to detect the language of any given string of text data.

How to use the Language Detection API

To use the Language Detection API you have to use PostUsingPOST procedure.

GeneXusSAPLeonardo.LanguageDetection.PostUsingPOST(&textToTranslate, &CustomDetectedLanguage, &Message, &IsSuccess)

Where:

  • &textToTranslate: is a Structured Data Type(SDT) that contains the text for which the language needs to be detected.
  • &CustomDetectedLanguage: is a SDT that contains the detected language code and string and also the confidence if no errors were found.
  • &Message: is a Message that contains information about the request.
  • &IsSuccess: is a Boolean that is true if no errors were encountered.

 

&textToTranslateSDT Composition

image_2018122692224_1_png

&CustomDetectedLanguage SDT Composition

 

Read more about the Language Detection API.

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