{"uid":"cap_8JWbULpy9Hi4DFsEYJ4wF","slug":"language-routing-train-local-text-baseline-and-classify-252f84c3","name":"Language Routing — Train Local Text Baseline and Classify","description":"Language routing - Train local text baseline and classify: Train local text baseline and classify for Language routing. 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.","url":"https://market.datapackvibe.com/x402/assistant-sector-ml-language-routing-local-classifier?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":["english","french","spanish","other"],"type":"string"}},"additionalProperties":false},"default":[{"id":"example-0-0","text":"english sample document number 0 for this supplied dataset.","actual":"english"},{"id":"example-0-1","text":"english sample document number 1 for this supplied dataset.","actual":"english"},{"id":"example-0-2","text":"english sample document number 2 for this supplied dataset.","actual":"english"},{"id":"example-1-0","text":"french sample document number 0 for this supplied dataset.","actual":"french"},{"id":"example-1-1","text":"french sample document number 1 for this supplied dataset.","actual":"french"},{"id":"example-1-2","text":"french sample document number 2 for this supplied dataset.","actual":"french"},{"id":"example-2-0","text":"spanish sample document number 0 for this supplied dataset.","actual":"spanish"},{"id":"example-2-1","text":"spanish sample document number 1 for this supplied dataset.","actual":"spanish"},{"id":"example-2-2","text":"spanish sample document number 2 for this supplied dataset.","actual":"spanish"},{"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":["english sample"],"maxItems":20,"minItems":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TaJyMJkFVuHgGPg0wXd68","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Trains a naive-Bayes text classifier on up to 200 labelled records (english/french/spanish/other) and classifies new query texts against that local model.","exampleAgentPrompt":"Train a local naive-Bayes language classifier on these labelled text samples — I have 12 examples (4 english, 4 french, 4 spanish) — and then classify these two new query texts: 'Bonjour le monde' and 'Hello world'.","exampleUseCases":[{"title":"Multilingual support ticket router","prompt":"I have 50 labelled support tickets in english, french, and spanish — train a quick local classifier on them and then tell me which language these 5 new incoming tickets are written in so I can route them to the right team."},{"title":"Language detection for content moderation","prompt":"Train a baseline language detector using my 80 labelled text samples across english, french, spanish, and other, then classify these 10 new posts so I know which moderation queue to send them to."},{"title":"Validating language tagging on a small dataset","prompt":"I have a small dataset of 30 texts I've already tagged as english, french, or other — can you train a naive-Bayes baseline on them and re-classify the same texts so I can see how well the model agrees with my labels?"}],"resultDescription":"The endpoint returns classification predictions for each query text (predicted language label from english/french/spanish/other), along with evaluation metrics for the trained naive-Bayes baseline model derived from the supplied labelled records.","failureModes":["Fewer than 2 labelled records supplied — minimum input not met","More than 200 records provided — exceeds maximum and will be rejected","Query texts array is empty or exceeds 20 items","Text fields exceed 1000 characters — truncation or rejection","Only one class present in training data — classifier cannot generalise","Payment of 0.01 USDC not attached — 402 payment required response","Invalid label value outside enum (english/french/spanish/other)"],"whenToPreferThis":"Choose this endpoint when you need a cheap, disposable, local text classification baseline for language routing without relying on a hosted or foundation model. Ideal for small datasets (up to 200 records), rapid prototyping, or cost-sensitive pipelines where a naive-Bayes approximation is sufficient. Prefer alternatives if you need high accuracy on multilingual text, support for languages beyond english/french/spanish/other, or a persistent hosted model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:01.054Z","isFirstParty":false,"canonicalSlug":"language-routing-train-local-text-baseline-and-classify-252f84c3"}