---
title: "AI03 News Entity Recognition(NER)"
method: POST
path: "/ai/ner/news-ner"
tags: ["Others"]
---

# AI03 News Entity Recognition(NER)

`POST /ai/ner/news-ner`

## Request

- Base URL: `https://connect.patsnap.com`
- URL: `https://connect.patsnap.com/ai/ner/news-ner`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/docs/ai/ner/news-ner/post.ts> (a function with typed inputs; its response is checked against the schema)

News Entity Recognition helps you recognize entity type in Chinese/English news text, it supported entity types include companies, personal names, addresses, academic institutions, government institutions, and more.

## Request body

- AI03NerNewsNerRequest
  - `lang` string, required: Choose the language of the input text： CN：Chinese EN：English
  - `text` string, required: News text content. Chinese text is required to be no more than 500 characters or English text no more than 500 words

## Response `200`

Successful ai03 news entity recognition(ner) response.

- AI03NerNewsNerResponse
  - `data` AI03NerNewsNerNerNewsResult[]: response data
    - `end` integer: NER end position
    - `type` string: entity type: COM：company GOV：government GPE：address ACA：academic PPL：personal name NPO：non-profit CDO：hospital
    - `start` integer: NER start position
    - `entity` string: entity name
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

## Other responses

- `201`: Created.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found.

---

[API](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api.md) - [All operations](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/revisions/c2264a0de595?raw)
