# Sentiment Label Distribution Calculator

> Sentiment Label Distribution Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-14).

Computes the label distribution (positive/neutral/negative balance) across a batch of up to 200 labelled sentiment text records

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-sentiment-label-balance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sentiment-label-distribution-calculator-396a2394
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JXBy0SaTZQvWlTrmkeoNq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sentiment-label-distribution-calculator-396a2394 -d '<json body>'
```

Example prompt: Can you check the label balance across my 150 labelled customer review records — I want to see how many are positive, neutral, and negative before I start training my sentiment model?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.01) computation of label distribution across a batch of pre-labelled sentiment records without needing model inference or predictions. Ideal for dataset auditing, class imbalance detection, and pre-training sanity checks. Not suitable when you need actual sentiment predictions on unlabelled text.

## Known failure modes

- Fewer than 2 records submitted — returns validation error
- More than 200 records submitted — exceeds maxItems limit
- Missing required fields (id, text, actual) on any record — rejected
- Invalid label value outside enum (positive/neutral/negative) — schema validation failure
- Empty text field — may process but produces unreliable output
- Payment not completed — 402 response, no result returned

## How this service works

Sentiment - Label distribution: Label distribution for Sentiment. Up to 200 supplied labelled text records. Local dataset tools, evaluation and small naive-Bayes baselines; no hosted model or foundation-model training. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded label distribution deliverable.

## Output

Returns a label distribution breakdown showing the count and/or proportion of records in each sentiment class (positive, neutral, negative) across the submitted batch of up to 200 labelled text records, enabling assessment of class balance.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "actual"
    ],
    "properties": {
     "id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "text": {
      "type": "string",
      "default": "",
      "maxLength": 1000
     },
     "actual": {
      "enum": [
       "positive",
       "neutral",
       "negative"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "positive sample document number 0 for this supplied dataset.",
     "actual": "positive"
    },
    {
     "id": "example-0-1",
     "text": "positive sample document number 1 for this supplied dataset.",
     "actual": "positive"
    },
    {
     "id": "example-0-2",
     "text": "positive sample document number 2 for this supplied dataset.",
     "actual": "positive"
    },
    {
     "id": "example-1-0",
     "text": "neutral sample document number 0 for this supplied dataset.",
     "actual": "neutral"
    },
    {
     "id": "example-1-1",
     "text": "neutral sample document number 1 for this supplied dataset.",
     "actual": "neutral"
    },
    {
     "id": "example-1-2",
     "text": "neutral sample document number 2 for this supplied dataset.",
     "actual": "neutral"
    },
    {
     "id": "example-2-0",
     "text": "negative sample document number 0 for this supplied dataset.",
     "actual": "negative"
    },
    {
     "id": "example-2-1",
     "text": "negative sample document number 1 for this supplied dataset.",
     "actual": "negative"
    },
    {
     "id": "example-2-2",
     "text": "negative sample document number 2 for this supplied dataset.",
     "actual": "negative"
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sentiment-label-distribution-calculator-396a2394/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
