Batch Detect entities over pre-deployed model

POST {{baseUrl}}/actions/batchDetectLanguageEntities

The API extracts entities in text records. For each entity, its type/subtype and confidence score (between 0 and 1) is returned. It supports passing a batch of records.

List of supported entities.

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":[{"entities":[{"length":34744092,"offset":-65489506,"score":0.2868613940123119,"subType":"ut","text":"cillum sint Ut pariatur","type":"id"},{"length":20374250,"offset":-50234112,"score":0.6181454547300318,"subType":"labore adipisicing eu nulla exercitation","text":"commodo laboris","type":"exercitation amet"}],"key":"laboris","languageCode":""},{"entities":[{"length":60624935,"offset":-14962232,"score":0.23364597847090063,"subType":"labore enim aute occaecat","text":"anim eu","type":"magna consectetur dolore laborum"},{"length":65675861,"offset":-25055618,"score":0.5692370367811628,"subType":"ut","text":"mollit","type":"dolore irure eiusmod"}],"key":"tempor et","languageCode":""}],"errors":[{"error":{"code":"veniam aliqua","message":"ut"},"key":"do quis in Excepteur labore"},{"error":{"code":"dolor aliqua","message":"comm"},"key":"in"}]}