Classify docs
Use a language library
Install the package for your language. Your first call downloads the compact model, about 1.6 GB. In Python, a match returns a string and an uncertain decision returns None.
from nativelang_classify import classify
result = classify("This is a terrible movie",
["positive", "negative", "neutral"])
print(result) # negative
Python installation · All language examplesRun a shared server
Install and start the Classify server, then send a request from the same machine.
curl http://127.0.0.1:8080/v1/classify \
-H 'Content-Type: application/json' \
-d '{"text":"This is a terrible movie",
"categories":["positive","negative","neutral"]}'
Server installation · Request and result fieldsHosted API
The managed endpoint is in development. It accepts the same JSON at POST /v1/classify, authenticates with Authorization: Bearer <key>, and returns source: "hosted". Keep the bearer key in your server-side application.
