getDocumentClasses

<< getDocumentCategories | Back to Salience 6 python Index | getDocumentIntentions >>

Summary

This method retrieves the classifications for a document based on the provided classification model.
This method provides a wrapper around the underlying C API method lxaGetDocumentClasses.

Syntax

salience6.getDocumentClasses(oSession, acClassificationFile, acConfigurationID)

Parameters

oSession A SalienceSession object previously created via openSession
acClassificationFile A path to a Salience-compatible classification model
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 a document classification:
topic The label for the classification
score A float value indicating the score for the classification. A threshold can be set using setOption_ClassificationThreshold.

<< getDocumentCategories | Back to Salience 6 python Index | getDocumentIntentions >>