Salience

The Salience Developer Hub

Welcome to the Salience developer hub. You'll find comprehensive guides and documentation to help you start working with Salience as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Python Wrapper

The python wrapper provided for Salience 6 allows the underlying Salience 6 engine to be integrated easily into python scripts.

Note that it is a wrapper around the Salience 6 C API. When deploying the wrapper, you will also need to ensure the underlying Salience Engine and third-party libraries are also available to your python environment. Also, the Salience wrapper must be compiled against the major and minor version of Python you are using (e.g. 3.9) The Windows Salience 6 distribution includes a pre-compiled python wrapper compatible with Python3.9. In Linux, simply run python setup.py install from /sdk/python/src or /sdk/python2/src. In windows, you must use visual studio to compile the shipped py_salience6.vcxproj project file if you aren't using 3.9.

openSession
openShortFormSession
closeSession
addConfiguration
removeConfiguration
getVersion
getLastWarnings
dumpEnvironment
resetThemes
runModelSmokeTest

prepareText
prepareTextFromFile
addSection
addSectionFromFile
correctOCRErrors
prepareCollectionFromList
prepareCollectionFromFile

getDocumentDetails
getSummary
getDocumentSentiment
getDocumentThemes
getQueryDefinedTopics
getConceptDefinedTopics
explainConceptMatches
getDocumentCategories
getDocumentClasses
getDocumentIntentions

getNamedEntities
getUserEntities
getNamedEntityRelationships
getNamedEntityOpinions
getUserEntityRelationships
getUserEntityOpinions

getCollectionThemes
getCollectionFacets
getCollectionQueryDefinedTopics
getCollectionConceptDefinedTopics
getCollectionEntities
getCollectionUserEntities

getNamedEntityTaggedText
getUserEntityTaggedText
getNamedOpinionTaggedText
[getUserOpinionTaggedText](doc:python-marked-text#section-getuseropiniontaggedtext
getPOSTaggedText
getSentimentTaggedText

Updated 4 months ago

Python Wrapper


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.