Skip to main content

CLI

Quickstart: Instantly extract entities from Text using our pretrained models!

Open In Collab Run in Postman

Let us learn how to extract entities for a given text using NeuralSpace CLI or API commands.

Prerequisites

Make sure to follow Getting Started to log in and install NeuralSpace Entity Recognition Service. If you are using APIs, save your authorization token in a variable called AUTHORIZATION_TOKEN before moving ahead.

Language Support and Entity Basket

Instantly use our pre-trained models in 87 languages to parse your text and extract entities. Our entity basket corresponds to 36 different entities.

Each language supports a different set of entities, please read here to know more!

Extract Entities

Using CLI

To extract entities in a given text using the CLI, use the command mentioned below. Simply pass text in -t and the text's language code in -L.

neuralspace ner parse -t "TEXT TO EXTRACT ENTITIES" -L "en"

Using APIs

Pass your text in the text attribute and set the language of the text in the language attribute.

curl --location --request POST 'https://platform.neuralspace.ai/api/ner/v1/entity' \
--header 'Accept: application/json, text/plain, */*' \
--header "authorization: ${AUTHORIZATION_TOKEN}" \
--header 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{
"text": "Sally is going to Paris on 3rd July",
"language":"en"
}'