AI Agent [AI11]News Entity Recognition(NER)
[AI11]News Entity Recognition(NER)PublicV1
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.
Note: Note:
1.If you need to recognize other types of texts (non-news-texts), the interface can also support it, such as paper texts. However, the recognition effectiveness may be lower compared to news texts.
Basic Information
Resource URL: /ai/ner/news-ner
Request Mode: post
Return Format: application/json
The API can only be called after logging in, click to log in
Try in Sandbox
Debug Here
API Description Document Download
Request Parameters
body
NewsNerRequest
Parameter | Type | Required | Description | Sample |
lang | string | true | Choose the language of the input text:
CN:Chinese
EN:English | cn |
text | string | true | News text content. Chinese text is required to be no more than 500 characters or English text no more than 500 words | 药鼎记:生物医药新生力量
7964682698844491.jpg
2018年3月以来,国家药品监督管理局采取了各种措施加快全球创新药进入中国的速度,通过参与全球同步开发引进新药的模式也正在逐步实现;同时,中国创新药产业进入收获期,国产IND(新药临床研究申请)被受理的数量持续升高,且中国创新药Licence-out在数量和金额上都呈现快速增长态势。 |
Request Sample
curl -X POST "https://connect.patsnap.com/ai/ner/news-ner?apikey="
-H "Content-Type:application/json"
-H "authorization:Bearer {token}"
-d '{"lang":"cn","text":"药鼎记:生物医药新生力量\n\n\n\n\n\n7964682698844491.jpg\n\n2018年3月以来,国家药品监督管理局采取了各种措施加快全球创新药进入中国的速度,通过参与全球同步开发引进新药的模式也正在逐步实现;同时,中国创新药产业进入收获期,国产IND(新药临床研究申请)被受理的数量持续升高,且中国创新药Licence-out在数量和金额上都呈现快速增长态势。"}'
Copy
Response Parameters
CommonResponse
Parameter | Type | Required | Description | Sample |
data | array | false | response data | no sample |
status | boolean | true | Status | false |
error_msg | string | false | Error Message | The request parameter format is incorrect! |
error_code | integer | true | Error Code | 0 |
NerNewsResult
Parameter | Type | Required | Description | Sample |
end | integer | false | NER end position | 59 |
type | string | false | entity type:
COM:company
GOV:government
GPE:address
ACA:academic
PPL:personal name
NPO:non-profit
CDO:hospital | GOV |
start | integer | false | NER start position | 50 |
entity | string | false | entity name | 国家药品监督管理局 |
Response Error Details
error_code | Description |
0 | Success |
201 | Created |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
68300004 | Invalid parameter! |
68300005 | Search api failure! |
68300006 | Analytic basic access error! |
68300007 | Bad request! |
68300008 | Service error, please try again later! |
68300010 | The file does not comply with upload specifications! |
67200001 | API call exceeds the total limit set by the platform! |
67200002 | Quota exceeds the limit! |
67200003 | Access token expired or authentication error! |
67200004 | No permission or API package quota has exceeded the limit! |
67200005 | Insufficient balance, call failed! |
67200006 | This client has expired and call failed! |
67200007 | Exceeded the call limit, call failed! |
Response Body
{
"data": [
{
"end": 59,
"type": "GOV",
"start": 50,
"entity": "国家药品监督管理局"
}
],
"status": true,
"error_code": 0
}
Copy
[AI10]Query and export OCR recognition results