lxaSetSalienceOptionWithString

<< lxaSetSalienceCallback | Back to Salience 6 C API Index | lxaSetSalienceOptionsWithFile >>

Summary

Sets one or more options via a specially formatted string. This is an alternative to lxaSetSalienceOption which requires you to programmatically define your option settings. You can also use lxaSetSalienceOptionsWithFile to load options from a file on disk. Refer to Options documentation for the available options that may be set and their purpose.

Syntax

int lxaSetSalienceOption(SalienceSession* pSession, 
                         const char* acOptionString,
                         const char* acConfigurationID);

Parameters

pSession Pointer to a SalienceSession structure previously returned by a call to lxaOpenSalienceSession
acOptionString Character string that sets desired options.
acConfigurationID Character string specifying the configuration for the option, blank for the default configuration

Returns

This method returns an integer return code.

Option String Format

Each line in the string sets one option, and the format is "<option name>"<tab><option value>. The quotes around the option name are required. If the option value is a string that should be double quoted as well. The name of each option is available on the Options page.

Example Option String

"Tagging Threshold" 50
"Lists and Tables" 1
"User Entity List" "C:/Salience/user.dat"

<< lxaSetSalienceCallback | Back to Salience 6 C API Index | lxaSetSalienceOptionsWithFile >>