getLastWarnings

<< getVersion | Back to Salience 6 python Index | dumpEnvironment >>

Summary

Retrieves any warnings issues regarding the last API call made. Documentation of the warning codes can be found on the Errors and Warning Codes page.

This method provides a wrapper around the underlying C API method lxaGetLastWarnings.

Syntax

salience6.getLastWarnings(oSession)

Parameters

oSession A SalienceSession object previously created via openSession

Returns

If successful, returns an integer that is a bitmask of possible warning codes as specified on the Errors and Warning Codes page.

Example

    import salience6 as se6
    session = se6.openSession('/path/to/license.v5','/path/to/data')
    ret = se6.prepareTextFromFile(session,'/path/to/file.txt')
    if (ret==0):
        ...extract results from text...
    else:
        if (ret==6):
            print se6.getLastWarnings(session) 

    se6.closeSession(session)

<< getVersion | Back to Salience 6 python Index | dumpEnvironment >>