POST
/
models
/
v2
/
2rtl3
/
mn-xlm-roberta-base-named-entity
curl --request POST \
  --url https://api.bytez.com/models/v2/2rtl3/mn-xlm-roberta-base-named-entity \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "Paris is the capital of France."
}'
{
  "output": [
    {
      "token": "Paris",
      "label": "LOCATION"
    },
    {
      "token": "France",
      "label": "LOCATION"
    }
  ]
}

Authorizations

Authorization
string
header
required

Provide your API key as Key your-key-here in the Authorization header.

Body

application/json
text
string
required

Input text for token classification.

Example:

"Paris is the capital of France."

Response

200 - application/json
Successful response with classified tokens.
output
any[]

Classified tokens and their labels.