Description:
This step detects the language of the text, powered by Google AI services.
Inputs
- textToDetect - Enter text to detect
- varGlobalToStoreValue - Variable / Global to store the language
- varGlobalToStoreReliability - Variable / Global to store reliability
- varGlobalToStoreConfidence - Variable / Global to store confidence level
Returns
- True – step executed successfully
- False – step failed to execute
Usage:
Example:
Let’s build and execute the googleDetectLanguageDef example.
- Create a new definition called “googleDetectLanguageDef”
- Select the definition and click the “design” button
- Drag a googleDetectLanguage step from the toolbox
- Connect the dots between the start and googleDetectLanguage step
- Click on the “googleDetectLanguage” step to configure its “Settings” properties. Provide a step name. Provide the non-English text to detect. Provide the variable/global to store the language result. Click Save to confirm.
- Click on the “googleDetectLanguage” step to configure its “Settings” properties.
- Save the process definition, create a process instance, and execute. The Step should detect the language of the text provided during runtime. Render the process instance and verify the step properties.