Named Entity Recognition
text-nerExtract PER / ORG / LOC / MISC entities with per-entity confidence scores.
POST {texts: [...]}. Each text produces one results[] entry with a flat entities list plus grouped persons / organizations / locations / misc arrays.
POST
/v1/proxy/text-nerExtract named entities (sync)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
texts | array<string> | required | Array of texts. One results[] entry per text. |
curl -X POST https://api.cn8.io/v1/proxy/text-ner \
-H "X-API-Key: <cn8_api_key>" \
-H "Content-Type: application/json" \
-d '{"texts":["your text here"]}'Response
{
"status": "success",
"data": {
"results": [
{
"entities": [
{ "text": "Apple Inc", "type": "ORG", "score": 0.9994 },
{ "text": "Steve Jobs", "type": "PER", "score": 0.9732 },
{ "text": "Cupertino", "type": "LOC", "score": 0.9977 }
],
"persons": ["Steve Jobs"],
"organizations": ["Apple Inc"],
"locations": ["Cupertino"],
"misc": []
}
]
}
}