Batch detect dominant language over pre-deployed model.

POST {{baseUrl}}/actions/batchDetectDominantLanguage

The API returns the detected language and a related confidence score (between 0 and 1). It supports passing a batch of records.

List of supported languages.

Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters.

Request Body

{"documents"=>[{"key"=>"ipsum quis aute dolore", "text"=>"ad nulla moll"}, {"key"=>"velit officia adipisicing deserunt", "text"=>"in esse Duis"}]}

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"documents":[{"key":"Ut consectetur incididunt in","languages":[{"code":"eu nulla anim dolore","name":"laborum ad in velit ut","score":0.5972474832161065},{"code":"commodo","name":"cillum Excepteur","score":0.6696375959473655}]},{"key":"aliquip sint","languages":[{"code":"sed commodo officia laboris","name":"do nulla","score":0.6887284219462464},{"code":"velit Ut Lorem ad","name":"ex labore","score":0.2816452736711659}]}],"errors":[{"error":{"code":"exercitation ad offic","message":"irure in do elit"},"key":"id ut voluptate laboris"},{"error":{"code":"enim ut ipsum irure","message":"quis elit dolor et sed"},"key":"exercitation velit"}]}