Batch detect text classification over pre-deployed model.

POST {{baseUrl}}/actions/batchDetectLanguageTextClassification

The API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified.

It supports passing a batch of records.

Learn more about text classification here.

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"=>"Red Bull", "text"=>"Red Bull Racing Honda, the four-time Formula-1 World Champion team, has chosen Oracle Cloud Infrastructure (OCI) as their infrastructure partner.", "languageCode"=>"en"}, {"key"=>"sit proident qui", "text"=>"OCI recently added new services to existing compliance program including SOC, HIPAA, and ISO to enable our customers to solve their use cases. We also released new white papers and guidance documents related to Object Storage, the Australian Prudential Regulation Authority (APRA), and the Central Bank of Brazil. These resources help regulated customers better understand how OCI supports their regional and industry-specific compliance requirements. Not only are we expanding our number of compliance offerings and regulatory alignments, we continue to add regions and services at a faster clip.", "languageCode"=>"en"}]}

HEADERS

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

RESPONSES

status: OK

{"documents":[{"key":"nulla ut","languageCode":"e","textClassification":[{"label":"ut irure nostrud","score":0.5668027174321539},{"label":"ullamco fugiat incididunt dolore","score":0.5664346600027814}]},{"key":"in deserunt mollit anim sunt","languageCode":"e","textClassification":[{"label":"pariatur aliquip Ut","score":0.8985698261455619},{"label":"ipsum ad","score":0.586590065829405}]}],"errors":[{"error":{"code":"sed in","message":"deserunt tempor aute Lorem"},"key":"laboris"},{"error":{"code":"culpa ullamco","message":"nostrud eiusmod ullamco "},"key":"pariatur"}]}