You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Named-Entity Recognition

language/named-entity-recognition@1.0.0
1 provider

Named-Entity Recognition

Identify and classify named entities such as people, organizations, locations, dates, and other categories of words in a given text.

Input
Text
Text Language
Result
List of Entities

1.Choose a provider

2.Use NamedEntityRecognition with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

text
The text you wish to identify and classify named entities from. Note that most providers require the text to be less than 1000 characters
languageCode
Optionally specify the exact language of the text. Useful for phrases that might be ambigous. Uses ISO 639-1 format (e.g. `en`, `fr`, `es`)

Example

Result (object)

entities
Each entity refers to a specific real-world object or a finding, such as a person, place, organization, or product.
text
The named entity detected in a given text
category
Entity Category
importance
A number between 0 and 1 indicating importance of the entity within a given text

Example

Implementation details

Provider
mock
Use case
NamedEntityRecognition
Author
@superface
Source
Verified