Entity Detection from List

Task Description

An entity detection endpoint analyzes input text and extracts specific entity types based on a given list of entity types.

Inputs

  • Text: The text content to be analyzed for entity detection.
  • Entity Types: A list of specific entity types to search for within the provided text.

Output

Description

The service returns a JSON object with a entities field containing an array of detected entities. Each entity includes the exact text found, its type (from the requested entity types), and optionally the character span positions in the original text.

Example

1{
2 "entities": [
3 {
4 "text": "New York",
5 "type": "LOCATION",
6 },
7 {
8 "text": "John Smith",
9 "type": "PERSON",
10 },
11 {
12 "text": "Apple Inc.",
13 "type": "ORGANIZATION",
14 }
15 ]
16 }