Batch detect keyPhrase over pre-deployed model.
POST {{baseUrl}}/actions/batchDetectLanguageKeyPhrases
The API extracts key-phrases in text records. For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text. It supports passing a batch of records.
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
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"documents":[{"key":"ex ut","keyPhrases":[{"score":0.01501055918559513,"text":"minim sed"},{"score":0.1291859191770095,"text":"qui cupidatat vol"}],"languageCode":"t"},{"key":"sunt aliqua","keyPhrases":[{"score":0.4513947880564788,"text":"Lorem in"},{"score":0.32916356697713467,"text":"minim aliquip nulla"}],"languageCode":"do"}],"errors":[{"error":{"code":"elit sit veniam Duis","message":"dolor sint Duis culpa"},"key":"mollit minim amet cupidatat nulla"},{"error":{"code":"qui incididunt ad labore","message":"do deserunt ipsum eiusmod"},"key":"sunt sint mollit"}]}