documents

Sentiment Classification

Lexicon-based sentiment scoring: label a text positive, negative or neutral with a score and the positive and negative word hits behind it (AFINN-derived word list, not a trained model). POST /v1/sentiment with {text}. Deterministic. Pay per request in USDC; no account, no API key.

post/v1/sentiment-classification

Request

  • Base URL: https://agent.pocket.network
  • URL: https://agent.pocket.network/v1/sentiment-classification
  • Auth: none required

Request body

textstring required

The text to score.

Response

The upstream response, served after payment settles.

labelstring
scorenumber
positive_hitsnumber
negative_hitsnumber
lexiconstring
deterministicboolean
servicestring

Changes

No recorded changes to this operation across all 1 revision of this API.