API Reference
Token classification
POST
/
v1
/
classifications
/
token
Token classification
curl --request POST \
--url https://api.synapsai.cloud/v1/classifications/token \
--header 'Content-Type: application/json' \
--data '
{
"inputs": "<string>"
}
'import requests
url = "https://api.synapsai.cloud/v1/classifications/token"
payload = { "inputs": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"word": "<string>",
"score": 123,
"entity": "<string>",
"index": 123,
"start": 123,
"end": 123
}
]Body
application/json
Request to perform token-level classification (NER / POS style).
Text string or list of strings for token classification. Required.
⌘I
Token classification
curl --request POST \
--url https://api.synapsai.cloud/v1/classifications/token \
--header 'Content-Type: application/json' \
--data '
{
"inputs": "<string>"
}
'import requests
url = "https://api.synapsai.cloud/v1/classifications/token"
payload = { "inputs": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)[
{
"word": "<string>",
"score": 123,
"entity": "<string>",
"index": 123,
"start": 123,
"end": 123
}
]