NLCSetLanguage

Sets the language of the page to be classified.

Syntax

bool NLCSetLanguage (string LanguageCode)

Parameters

string LanguageCode - The two-letter code associate with the language of the page to be classified

Returns

True, if the action succeeds. Otherwise, False.

Level

All level.

Details

This action sets the language of the page to be classified. The LanguageCode can be a smart parameter. The possible values for the Language code are:
  • 'en' : English
  • 'ar' : Arabic
  • 'fr' : French
  • 'de' : German
  • 'it' : Italian
  • 'ja' : Japanese
  • 'ko' : Korean
  • 'pt' : Portuguese (Brazilian)
  • 'es' :Spanish

This action must be called before the Classify action.

Example
NLCSetLanguage("en") 
NLCSetCredentials("@APPVAR(values/gen/NLCUserName)","@APPVAR(values/adv/NLCPassword)") 
NLCSetMinConfidence(0.9) 
Recognize() 
NLCClassify("@APPVAR(values/gen/NLCClassifierName)")