openSession

<< | Back to Salience 6 python Index | openShortFormSession >>

Summary

This method creates a Salience 6 session using the provided license file and path to data directory. The session can be used to access further functionality of Salience 6.
The method provides a wrapper around the underlying C API methods lxaLoadLicense and lxaOpenSalienceSession.

Syntax

salience6.openSession(sLicensePath, sDataPath)

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

Returns

If successful, the method returns a SalienceSession object that can be used for processing text.

Example

>>> import salience6 as se6
>>> session = se6.openSession('/path/to/license.v5','/path/to/data')
>>> session
<SalienceSession object at 0x2b5d6b006db0>
>>> 

<< | Back to Salience 6 python Index | openShortFormSession >>