lxaSetSalienceOptionsWithFile

<< lxaSetSalienceOptionWithString | Back to Salience 6 C API Index | LexalyticsLicense >>

Summary

Sets one or more options via a specially formatted file. This is an alternative to lxaSetSalienceOption which requires you to programmatically define your option settings. You can also use lxaSetSalienceOptionWithString to load options from an in memory string. 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 Path to file 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 File Format

Each line in the file 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"

<< lxaSetSalienceOptionWithString | Back to Salience 6 C API Index | LexalyticsLicense >>