---
title: "AI01 Drug DDT NER"
method: POST
path: "/ai/ner/ddt-ner"
tags: ["Others"]
---

# AI01 Drug DDT NER

`POST /ai/ner/ddt-ner`

## Request

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

To extract the names of Drug, Disease and Target (DDT) from Chinese and English patents, literature and news data

## Request body

- AI01NerDdtNerRequest
  - `source` string: text source：patent/literature/news, default patent
  - `text` string, required: The text of drug DDT information needs to be extracted. Chinese text is required to be no more than 500 characters or English text no more than 500 words
  - `lang` string, required: text language, support cn and en

## Response `200`

Successful ai01 drug ddt ner response.

- AI01NerDdtNerResponse
  - `data` AI01NerDdtNerNerDDTResult[]: response data
    - `end` integer: NER end position
    - `type` string: entity type
    - `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)
