# Product Category Local Text Classifier (Train & Classify)

> Product Category Local Text Classifier (Train & Classify) 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-15).

Trains a naive-Bayes text classifier on up to 200 labelled product-category records and classifies new query texts into apparel, home, electronics, or other.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-product-category-local-classifier?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/product-category-local-text-classifier-train-classify-f38d45ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zS9i-qZu8D5fHswAIIhpQ

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 product-category-local-text-classifier-train-classify-f38d45ac -d '<json body>'
```

Example prompt: Train a local naive-Bayes text classifier on these 50 labelled product records (mix of apparel, home, and electronics examples) and then classify these 5 new product descriptions: 'wireless noise-cancelling headphones', 'cotton knit sweater', 'stainless steel cookware set', 'smart LED desk lamp', 'running shoes for men'.

## When to prefer this

Choose this endpoint when you need a fast, cheap, on-the-fly text classification baseline for product categories (apparel, home, electronics, other) without needing a hosted model, foundation model, or persistent trained artifact. Ideal for quick feasibility checks, baseline benchmarking, or lightweight classification pipelines where cost and simplicity matter more than peak accuracy.

## Known failure modes

- Fewer than 2 records supplied — fails minimum input validation
- More than 200 records supplied — exceeds maximum and is rejected
- Record text exceeds 1000 characters — individual record rejected
- More than 20 query texts submitted — exceeds maximum query count
- Missing required record fields (id, text, actual) — schema validation error
- Label outside allowed enum (apparel, home, electronics, other) — rejected
- Insufficient labelled examples per class — poor classifier performance or failure

## How this service works

Product category - Train local text baseline and classify: Train local text baseline and classify for Product category. 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 train local text baseline and classify deliverable.

## Output

Returns predictions for each query text, classifying them into one of the four categories (apparel, home, electronics, other) based on a naive-Bayes model trained locally on the supplied labelled records. May include evaluation metrics and confidence signals from the baseline model run.

## 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": [
       "apparel",
       "home",
       "electronics",
       "other"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "apparel sample document number 0 for this supplied dataset.",
     "actual": "apparel"
    },
    {
     "id": "example-0-1",
     "text": "apparel sample document number 1 for this supplied dataset.",
     "actual": "apparel"
    },
    {
     "id": "example-0-2",
     "text": "apparel sample document number 2 for this supplied dataset.",
     "actual": "apparel"
    },
    {
     "id": "example-1-0",
     "text": "home sample document number 0 for this supplied dataset.",
     "actual": "home"
    },
    {
     "id": "example-1-1",
     "text": "home sample document number 1 for this supplied dataset.",
     "actual": "home"
    },
    {
     "id": "example-1-2",
     "text": "home sample document number 2 for this supplied dataset.",
     "actual": "home"
    },
    {
     "id": "example-2-0",
     "text": "electronics sample document number 0 for this supplied dataset.",
     "actual": "electronics"
    },
    {
     "id": "example-2-1",
     "text": "electronics sample document number 1 for this supplied dataset.",
     "actual": "electronics"
    },
    {
     "id": "example-2-2",
     "text": "electronics sample document number 2 for this supplied dataset.",
     "actual": "electronics"
    },
    {
     "id": "example-3-0",
     "text": "other sample document number 0 for this supplied dataset.",
     "actual": "other"
    },
    {
     "id": "example-3-1",
     "text": "other sample document number 1 for this supplied dataset.",
     "actual": "other"
    },
    {
     "id": "example-3-2",
     "text": "other sample document number 2 for this supplied dataset.",
     "actual": "other"
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "query_texts": {
   "type": "array",
   "items": {
    "type": "string",
    "default": "",
    "maxLength": 1000
   },
   "default": [
    "apparel sample"
   ],
   "maxItems": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/product-category-local-text-classifier-train-classify-f38d45ac/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)
