NamedEntityRecognition

免费增值
通过 vbachani | 已更新 месяц назад | Text Analysis
人气

7.8 / 10

延迟

924ms

服务等级

100%

Health Check

N/A

关注者:1
API 创建者:
V
vbachani
vbachani
登录并给 API 打分
打分:5 - 投票:1

README

Endpoint: /ner

Description:
The /ner endpoint of the Named Entity Recognition (NER) API is used to extract named entities from a given text. Named entities can include entities such as people, organizations, locations, dates, and more. The endpoint processes the input text using advanced natural language processing (NLP) techniques and returns the identified named entities in a structured format.

Request:
The request to the /ner endpoint should be a POST request containing a JSON object with a single property, text, which represents the input text to be analyzed for named entities.

Request Body Format:

{
  "text": "Input text to be analyzed for named entities"
}

Response:
The response from the /ner endpoint is a JSON object with a single property, entities, which is an array of objects representing the identified named entities and their respective labels.

Response Format:

{
  "entities": [
    {
      "text": "Text of the named entity",
      "label": "Entity label (e.g., ORG, PERSON, GPE)"
    },
    ...
  ]
}

Example Response:

{
  "entities": [
    {"text": "Apple", "label": "ORG"},
    {"text": "Cupertino", "label": "GPE"},
    {"text": "California", "label": "GPE"}
  ]
}

The text property in the response object represents the text of the identified named entity, and the label property represents the entity label, such as “ORG” for organizations, “PERSON” for people, “GPE” for geopolitical entities, etc.