Collaborate

Expose sentiment labels in Pulsar API

A client, ClinicalMind, requested that we expose sentiment labels on the Trac API. Currently, sentiment scores are sent through the API, for example:

"sentiment": 0.868862

Clients using the API need to then write their own logic for assigning a sentiment label such as positive, negative or neutral to a content item, based on the score. They said it would be easier if they can simply use the labels shown in the Trac UI.

  • Guest
  • Jun 28 2023
  • Attach files