SalienceCollection Constructor

<< Salience.GetUserOpinionTaggedText | Back to Salience 6 .Net Index | SalienceCollection.GetSalienceVersion >>

Summary

The constructor instantiates a SalienceCollection object which provides access to collection-level API functionality. For document-level functionality, a Salience object should be instantiated.
The constructor provides a wrapper around the underlying C API methods lxaLoadLicense and lxaOpenSalienceSession.

Syntax

SalienceCollection(string sLicensePath, string sDataPath)
SalienceCollection(string sLicensePath, string sDataPath, string sUserDir)
SalienceCollection(string sLicensePath, string sDataPath, string sUserDir, string sLogPath)
SalienceCollection(string sLicensePath, SalienceStartup oStartup)

Parameters

sLicensePath String containing the path to the required license file
sDataPath String containing the path to the data directory to use for the session
sUserDir String containing the path to a user directory of data file customizations
sLogPath String containing the path to writable location for a startup log
oStartup A SalienceStartup object containing startup information for the session

Returns

If successful, the constructor returns a SalienceCollection object that can be used for processing a related set of text. Otherwise, an exception is thrown with information about the failure of the constructor.

Example

TODO: Example needed for Salience 6

<< Salience.GetUserOpinionTaggedText | Back to Salience 6 .Net Index | SalienceCollection.GetSalienceVersion >>