closeSession

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

Summary

Closes a Salience 6 session, freeing any remaining memory associated with the session. This method provides a wrapper around the underlying C API method lxaCloseSalienceSession.

Syntax

salience6.closeSession(oSession)

Parameters

oSession A SalienceSession object previously created via openSession

Returns

If successful, returns 0.

Example

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

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