Skip to main content

Labelator.io Serving (1.0.0)

Download OpenAPI specification:Download

Hosting API for Labelator.io models allows management via Labelator.io configuration

Get node status

Responses

Response samples

Content type
application/json
null

Get predictions for request

Allows query predictions for one or more texts

If final handling is manual or manual-review, data will be added to labelatorio project (unlest test mode is activated  ./predict?test=true)
For this it is recomended to list of string, but rather list of objects, cointaing key, text and optional contextData. This will allow additional data to be send to Labelator.io.

If explain mode activated ( ./predict?explain=true), response will contain explanations for all routing configuration for better understanding of the decision

Settings parameter is to enable query with custom settings for particular request. It is generaly not recomended to use this in production since it can rapidly decrease the performance. 
Especialy if new settings are pointing to model that has not been preloaded by defaul configuration
query Parameters
model_name
string (Model Name)
explain
boolean (Explain)
Default: false
test
boolean (Test)
Default: false
Request Body schema: application/json
required
Array of strings or PredictionRequestRecord (object) (Texts)
Settings (object) or ModelSettings (object) (Settings)

Responses

Request samples

Content type
application/json
{
  • "texts": [
    ],
  • "settings": { }
}

Response samples

Content type
application/json
{
  • "predictions": [
    ]
}

Force node to refresh latest configuration from Labelator.io

Responses

Response samples

Content type
application/json
null

errors

Get list of records, that were not uploaded to Labelator.io successfuly

Responses

Response samples

Content type
application/json
[
  • { }
]

Clear errors without pushing to Labelator.io

Responses

Response samples

Content type
application/json
{ }

Retry push documents to Labelator.io

Responses

Response samples

Content type
application/json
{ }