getDocumentIntentions

<< getDocumentClasses | Back to Salience 6 python Index | getNamedEntities >>

Summary

Retrieves the intentions expressed within the document content. Intentions are returned as a list of SalienceIntention structures.
This method provides a wrapper around the underlying C API method lxaGetIntentions.

Syntax

salience6.getDocumentIntentions(oSession, acConfigurationID)

Parameters

oSession A SalienceSession object previously created via openSession
acConfigurationId An identifier for a configuration added through addConfiguration

Returns

If successful, returns a Python list consisting of items that contain the following information about each intention identified in the document:
type The intention type, out of the set of defined intention types, that was detected
who The expresser of the intention, if detected. Otherwise, this list entry will be empty.
what The object of the intention, if detected. Otherwise, this list entry will be empty.
evidence The phrase expressing the intention
who_chunk A child list containing positional information about the chunk identifying the expresser of the intention. This will be an empty list if "who" has not been detected.
what_chunk A child list containing positional information about the chunk identifying the object of the intention
evidence_chunk A child list containing positional information about the chunk containing the intention

<< getDocumentClasses | Back to Salience 6 python Index | getNamedEntities >>