API ReferenceKadambini
Predict Ner
Run NER on a single Sanskrit text (IAST or Devanagari). Returns entities with type, confidence score, and word-level positions. Entity types: DEITY, PERSON, RISHI, PLACE, TEXT, CONCEPT, CELESTIAL, FLORA, LINEAGE, MANTRA.
POST /kadambini/v1/ner
Run NER on a single Sanskrit text (IAST or Devanagari).
Returns entities with type, confidence score, and word-level positions.
Entity types: DEITY, PERSON, RISHI, PLACE, TEXT, CONCEPT, CELESTIAL, FLORA, LINEAGE, MANTRA.
Parameters
No query parameters.
Request Body
NerRequest
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text |
threshold | number | No | Threshold |
Response
| Field | Type | Description |
|---|---|---|
entities | NerEntity[] | Entities |
text | string | Text |
model | string | Model |
Examples
curl
curl -X POST "https://api.vibz.art/kadambini/v1/ner" \
-H "X-API-Key: vz_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "अर्जुन उवाच"}'Python
from vibzart import Vibzart
client = Vibzart(api_key="vz_live_...")
result = client.kadambini.ner(text="अर्जुन उवाच")
print(result.data)TypeScript
import { Vibzart } from "@vibzart/sdk";
const client = new Vibzart({ apiKey: "vz_live_..." });
const result = await client.kadambini.ner({ text: "अर्जुन उवाच" });
console.log(result.data);